scrawl
1875aa4a18
Restore getNearbyDoor
9 years ago
scrawl
f9dd549bff
Restore FindContainerVisitor
9 years ago
scrawl
965bea45c0
AiEscort makes the actor side with target in fights (Bug #2697 )
...
Also will follow the player through teleport doors.
9 years ago
scrawl
4b0ecaa0a0
Fix physics bug
9 years ago
scrawl
51b892195b
Restore getReadOnlyDoors()
9 years ago
scrawl
abcf91be5b
Port over more game logic to the visitor pattern
9 years ago
scrawl
9ea475d00c
Port LocalScripts::addCell to new CellStore interfaces
9 years ago
scrawl
a517f4f9ba
Add CellStore::forEachType to help with porting over game logic to the new interfaces
9 years ago
scrawl
0af33b5abd
Throw exception if moveTo() is passed an object not part of *this
9 years ago
scrawl
176a3c16f4
Resolve moved references loaded from a save game
9 years ago
scrawl
671561ea37
Write moved references to the save game file (not resolved on loading yet)
9 years ago
scrawl
2219231230
Missing updateMergedRefs()
9 years ago
scrawl
138957c49a
Special case objects with no refnum
9 years ago
scrawl
5e99a3eda6
Rename CellStore Functor to Visitor
9 years ago
scrawl
2301080c63
Load CellStore when an object is moved there
9 years ago
scrawl
811df1e97b
Pass the ESM reader list to CellStore constructor
9 years ago
scrawl
67a6a8f5d4
Make projectiles receive lighting
9 years ago
scrawl
6181594251
Disable freezeOnCull for magic projectile particles
9 years ago
scrawl
a8938589f6
Magic projectiles rotate during flight
9 years ago
scrawl
3f93af4181
Projectiles interact with the water surface ( Fixes #2986 )
9 years ago
scrawl
3dcefd17fc
Fix CellStore::count()
9 years ago
scrawl
3aa53f3cb4
Object cell movement tracker works. Savegame handling is still missing and some game functionality is still stubbed out.
9 years ago
scrawl
64b4926127
Add reference moving logic - untested
9 years ago
scrawl
7a983340bf
Add comment
9 years ago
scrawl
fc449233be
Restore support for inserting objects into a cell
9 years ago
scrawl
0975f60d59
Stub out CellStore::get<T> accessors in preparation of reference movement between cells
9 years ago
Marc Zinnschlag
e0c9265148
Merge remote-tracking branch 'origin/master'
9 years ago
scrawl
d0c6b407b4
Fix isUnderwater checks being off by one for exterior cells
9 years ago
scrawl
86881bcf39
In first person mode, attach sound listener to the camera
9 years ago
Chris Robinson
816015d6e6
Avoid inheriting from Sound for sound types
9 years ago
scrawl
3d12b2ca9d
Add NifFileManager to avoid duplicate parsing of the NIFFile in SceneManager and BulletShapeManager.
9 years ago
scrawl
cd4a1ffd16
Fast version of dynamic_cast for MWClass
9 years ago
scrawl
c9bfe01120
Fix applying of weather changes after serving a jail sentence
9 years ago
Marc Zinnschlag
6facce9d13
Merge remote-tracking branch 'origin/master'
9 years ago
scrawl
d97dda05c9
Don't attempt to play unset weather sounds
9 years ago
scrawl
4687c4baad
Do not assert() for invalid land data in plugins (Bug #3037 )
...
The resizing of LTEX store to the correct number of plugins was done in the load() method, but the load method won't be called if a plugin contains LAND records but doesn't contain LTEX records. For such plugins the Store<ESM::LandTexture>::search() function would then fail an assertion.
9 years ago
scrawl
89783e047b
Fix typo
9 years ago
Marc Zinnschlag
7cc950ed64
Merge remote-tracking branch 'origin/master'
9 years ago
scrawl
44dd62067e
Remove some unnecessary per-frame store searches
9 years ago
scrawl
783594033a
Optimize MWMechanics::Spells
...
Use pointers as map keys instead of string IDs. Resolves a nasty performance bottleneck on functions like hasCommonDisease() that previously had to look up all contained spells from the ESM store on every call. hasCommonDisease() is called hundreds of times per frame by the AI target update since it's used to calculate target disposition.
The total cost of hasCommonDisease() was 2.7% of the frame loop, now it's negligible.
9 years ago
Chris Robinson
aac903484c
Remove a really unnecessary method
9 years ago
Chris Robinson
73448c72f6
Replace Play_NoTrack with playManualSound3D, and rename the latter
9 years ago
scrawl
edfcb45ad7
Fix crash when onPcEquip script removes the equipped item ( Fixes #3016 )
9 years ago
scrawl
71cd57a3b5
Optimize World::getTimeStamp
...
World::getTimeStamp was searching through the globals store on every call. Not a big issue, but slow enough to show up in the profiler.
9 years ago
scrawl
62169a7039
Use a single-precision PositionAttitudeTransform in speed critical places
9 years ago
scrawl
43de13fa99
Do not allow resting on lava
9 years ago
scrawl
2d302aef99
Implement stayOutside script variable
9 years ago
scrawl
27617468c8
Fix the collision shape not updating when scaling an object via script
9 years ago
scrawl
5f143dee2d
Fix lighting incontinuity at nightfall and sunrise
9 years ago
scrawl
3453353091
AiCombat distance check takes into account collision box ( Fixes #1699 )
9 years ago
scrawl
71d9e7dc52
Read Ambient Loop Sound ID and Rain Loop Sound ID from the INI file
9 years ago
Marc Zinnschlag
de98ee0062
Merge remote-tracking branch 'scrawl/esm_rewrite'
9 years ago
scrawl
05498ad592
Refactor: InputManager no longer depends on Engine
9 years ago
scrawl
b8e11cf197
Merge commit 'pull/upstream/678' into HEAD
...
Conflicts:
apps/esmtool/record.cpp
apps/opencs/model/doc/savingstages.cpp
apps/opencs/model/world/land.cpp
apps/opencs/model/world/land.hpp
apps/opencs/model/world/landtexture.cpp
apps/openmw/mwworld/store.cpp
components/esm/loadland.cpp
components/esm/loadland.hpp
9 years ago
scrawl
8cd41f0ed4
Increase the ray distance for dropObjectOnGround ( Fixes #3010 )
9 years ago
scrawl
9e3eb8291f
Rotations: fix the rotation order for doors
9 years ago
scrawl
3647af8d73
Rotations: use different rotation order when object is rotated via script ( Fixes #2062 )
9 years ago
scrawl
b4ce73f179
Rotations: remove LocalRotation
...
This never existed in vanilla MW in the first place. The reason we got confused was because of a strange behaviour where the order of applying rotations changes as soon as a script touches the object's rotation.
9 years ago
scrawl
666fbba1e0
Rotations: World::rotateObject takes radians instead of degrees
...
Cuts down on the amount of redundant degree<->radians conversions in the codebase.
9 years ago
scrawl
6405049add
Rotations: move doors via Rotation rather than LocalRotation
...
Now LocalRotation is unneeded, will remove in next commit.
9 years ago
scrawl
8aacbc398f
Rotations: don't wrap the angle values for non-actors
...
It's not really necessary, and just complicates logic elsewhere. Neither does vanilla MW do it. As well, the question is if wrapping to [-PI, PI] or [0, 2*PI] would be the desired range.
9 years ago
MatthewRock
a662a00c62
Fixing bug for merchant
9 years ago
scrawl
682f30ef9c
Fix incorrect uses of PhysicsSystem::getHalfExtents
...
Did not account for translation of collision box (mMeshTranslation in actor.cpp)
9 years ago
scrawl
a5f8ffb83d
aimToTarget: Fix the collision box translation not being taken into account
9 years ago
scrawl
de97a8a3da
Do not allow disabling the player object
9 years ago
scrawl
802620a86b
Use TimeOfDayInterpolator for Land Fog Depth
...
Fixes the sudden fog jump at nightfall.
9 years ago
scrawl
45bf3e6788
Create TimeOfDayInterpolator class to refactor time handling in WeatherManager
9 years ago
scrawl
8da4530957
Use INI-imported underwater fog settings ( Fixes #2907 , Fixes #1511 )
9 years ago
scrawl
bd9dc58560
Use the correct scale for actor swim height ( Fixes #2833 )
9 years ago
scrawl
e13eb625d3
New water WIP
...
Changes compared to old (Ogre) water:
- Uses depth-texture readback to handle the underwater fog in the water shader, instead of handling it in the object shader
- Different clipping mechanism (glClipPlane instead of a skewed viewing frustum)
- Fixed bug where the reflection camera would look strange when the viewer was very close to the water surface
- Toned down light scattering, made the waterColor a bit darker at night
- Fixed flipped water normals and strange resulting logic in the shader
Still to do: see comments...
9 years ago
scrawl
f36d463617
Enchantment error handling fix ( Fixes #2959 )
...
Catch errors about missing enchantments before they propagate up the stack and interrupt the whole frame update.
9 years ago
Marc Zinnschlag
379d13c7b9
Merge remote-tracking branch 'scrawl/unstack_script'
9 years ago
scrawl
91bf5ae237
Add new script instance when a container item is unstacked (Bug #2962 )
9 years ago
scrawl
7b6fe149f2
getSpellSuccessChance return 0 for used powers ( Fixes #2944 )
9 years ago
Marc Zinnschlag
9279ae4ba0
Merge remote-tracking branch 'zelurker/removed_items'
9 years ago
scrawl
b9c6a6862a
Don't reset god mode, scripts enabled and sky enabled flags when loading a save game
...
These flags aren't stored in the save file, so it makes no sense to reset them to their default each time a save game is loaded. Instead, reset on "new game".
9 years ago
Emmanuel Anne
2fff6b06cc
removed items by mods do not break cell loading
...
like fortify intelligence potions removed by sris_alchemy which break the
loading of the firewatch mages guild
9 years ago
Alexander "Ace" Olofsson
caa119f13c
Fix instantiation on non-Visual Studio
9 years ago
Alexander "Ace" Olofsson
7d4125d97f
Fixes for building with unity build
9 years ago
scrawl
385f4f729c
Implement SunDiscSunsetColor, fade the sun during sunrise & sunset
9 years ago
scrawl
a2a4532e71
Add the full-screen sun glare effect
9 years ago
scrawl
8de3ce90a7
Add comments for weather IDs
9 years ago
Marc Zinnschlag
96880b4dfe
Merge remote-tracking branch 'scrawl/tabs'
9 years ago
scrawl
c4b5a41ac3
Improve combat AI vertical aiming ( Fixes #1366 , Fixes #1330 )
9 years ago
scrawl
a47617c21f
Fix tab indentations in apps/ and components/
9 years ago
Marc Zinnschlag
2a981a5272
make sure local variables are loaded when trying to access them from outside of a script ( Fixes #2659 )
9 years ago
Marc Zinnschlag
2c37731494
Merge remote-tracking branch 'dteviot/MagicEffectsRefactorDraft3'
9 years ago
Marc Zinnschlag
0ff786bebd
Merge remote-tracking branch 'origin/master'
9 years ago
Marc Zinnschlag
a445683312
Merge branch 'mergetool'
...
Conflicts:
apps/opencs/CMakeLists.txt
apps/opencs/model/tools/tools.cpp
9 years ago
dteviot
e9c796166a
Added MWMechanics::isPlayerInCombat()
9 years ago
scrawl
cd0f8e556b
Merge pull request #753 from slothlife/thunderstorm-support
...
Improve thunderstorm support.
9 years ago
slothlife
29d74f0249
Improve thunderstorm support.
...
Reversed settings for thunderstorms. Added thunder support to all
weather types. Implemented a simple lightning flash effect similar to
MW.
9 years ago
scrawl
e5d54fb539
Check for actor being the player in various actions
9 years ago
scrawl
acbea2461b
Fix a typo
9 years ago
Marc Zinnschlag
69b9eadb52
refactored loading of land data
9 years ago
Marc Zinnschlag
4b7a034cf9
Merge remote-tracking branch 'slothlife/weather-transition-fix'
9 years ago
slothlife
2b48a20b76
Fix weather transition bugs
9 years ago
slothlife
d9a7986b3a
Remove redundant fast forward check
9 years ago
slothlife
4fd00a75d5
Merge advanceTime and advanceTimeByFrame
9 years ago
slothlife
cd8ec5c11e
Improve checking for older weather records
9 years ago
slothlife
7817c52cbb
Discard old save game weather records
9 years ago
slothlife
c907ed517d
Remove C++11 explicit on conversion operator
9 years ago
slothlife
54fa5273dc
Refactor weather transitions to act more like MW
...
Fixed several issues:
* Waiting/jail time/training all now properly skip remaining transitions
* ChangeWeather no longer permanently sets the region's weather
* ChangeWeather being called during a transition now correctly queues up
another transition
* Corrected transition delta and factor calculations
* ModRegion settings are now saved
9 years ago
scrawl
b509a18065
Remove code setting PcRace ( Fixes #2886 )
...
This is already handled by the RaceCheck script.
10 years ago
Marc Zinnschlag
a52b947efe
Merge remote-tracking branch 'dteviot/MagicEffectsRefactorDraft3'
10 years ago
scrawl
542c648e69
Fix incorrect assignment of PcRace, need to sort race IDs ( Fixes #2884 )
10 years ago
Marc Zinnschlag
50ec8b10f5
Merge remote-tracking branch 'dteviot/Bug2871'
10 years ago
scrawl
ba8e4c22aa
Avoid using loops to wrap angle values ( Fixes #2882 )
10 years ago
dteviot
77a1d947cc
extracted MWMechanics::getPlayer()
10 years ago
dteviot
85bc41dedb
replaced FLT_MAX with numeric_limits.
10 years ago
dteviot
ff5ef7055e
extracted function CreatureStats::isParalyzed()
10 years ago
scrawl
67bd6cd708
Remove empty line at the beginning of files
...
git ls-files -z | xargs -0 sed -i '1{/^$/d}'
10 years ago
Marc Zinnschlag
e888fd7034
Merge remote-tracking branch 'scrawl/delete_noop'
10 years ago
Marc Zinnschlag
3992125b61
Merge remote-tracking branch 'scrawl/master'
10 years ago
Marc Zinnschlag
b5f3f0522a
Merge remote-tracking branch 'slothlife/weather-settings-fix'
10 years ago
scrawl
b583a2ec33
Make SetDelete a no-op for items in containers ( Fixes #2864 )
10 years ago
Jordan Ayers
be7bd9529d
Classes shouldn't use MWBase::Environment to access their own members.
10 years ago
slothlife
3d419a612a
Corrected some weather transition calculations
...
Reversed some formulas for Transition Delta and Clouds Maximum Percent
and implemented them. Refactored Weather some to encapsulate those
formulas (to more closely match MoonModel). Did some small cleanup of
WeatherManager.
10 years ago
scrawl
8426d376f0
Use separate touch spell raycasts for actors and objects ( Fixes #2849 )
10 years ago
scrawl
1e18a73b1c
Don't play magic effect sounds & visual effects for unsuitable targets ( Fixes #2811 )
10 years ago
scrawl
211deeb63e
Don't attempt to lock or unlock unsuitable objects ( Fixes #2826 )
10 years ago
scrawl
86f0e505e9
Add a fixPosition for the --start exterior cell ( Fixes #2790 )
10 years ago
scrawl
56b7196bea
Remove incorrect implementation of "Clouds Maximum Percent" weather setting
10 years ago
slothlife
3235cecddf
Use Glare View for visibility of celestial bodies
...
Fixed memory leak from Sun and Moon objects by pulling Updaters back out
into separate objects. Removed code related to
mCelestialBodyTransparency.
10 years ago
slothlife
ea2f88a355
Fix several sky rendering bugs, maybe also #639
...
Added code to hide the moons, sun, and stars for certain weather
effects. Lightly refactored CelestialBody and derived classes. Fixed
moons switching phase at 24:00.
10 years ago
slothlife
67a63cc662
Add some const correctness to MoonModel
10 years ago
Stanislav Bas
d13766cb3c
Remove redundant template specializations
10 years ago
Stanislav Bas
f15adb4e4f
Store::load() overwrites loaded records with the same IDs
10 years ago
slothlife
a4e1630ec2
Remove unreferenced member in MoonModel
10 years ago
slothlife
8dc7e158c6
Fix forward declaration of MoonState
10 years ago
slothlife
24ba54f4fe
Implement accurate moon settings ( fixes #672 )
10 years ago
scrawl
7ba399fc92
Change a message to upper case spelling
...
More consistent with other loading messages
10 years ago
Marc Zinnschlag
bafa86d3e9
Merge remote-tracking branch 'scrawl/master'
10 years ago
scrawl
278076e609
Include cleanup
10 years ago
scrawl
3f3c3d0ad3
Remove an already resolved todo comment
10 years ago
scrawl
4f6e5345cc
Include cleanup
10 years ago
Pawel Kubik
47922f6c35
Changed a settings variable responsible for number of loaded exterior cells.
10 years ago
scrawl
7f66339790
Remove a redundant function
10 years ago
scrawl
71bc22401f
Include cleanup
10 years ago
scrawl
7e4e59efb9
Fix excessive auto-equipping in InventoryStore::removeItem ( Fixes #2792 )
10 years ago
scrawl
7900631d51
Print the missing player cell to error output
10 years ago
Stanislav Bas
daaff1284e
Remove unused includes
10 years ago
Stanislav Bas
67c8f95c4e
Load/read methods (for ESM records) accept a deleted flag in OpenMW
10 years ago
Koncord
6c3c85f0d4
Fix indent
...
Remove misc.hpp in containerstore.cpp
10 years ago
Koncord
a24df8cb66
Revert addImp() and remove()
...
add isGold() in MWWorld::Class
10 years ago
Koncord
9485aa5e44
Fix "removeitem gold_100" behavior
10 years ago
Koncord
aefcd1ad07
Fix "additem gold_100" behavior
10 years ago
Koncord
75e5023590
fix code duplication
10 years ago
Stanislav Bas
5fd48efd28
Some refactoring. Remove unused code
10 years ago
Stanislav Bas
e8a9567be3
Move DELE handling to CellRef record
10 years ago
Stanislav Bas
c8c79dc1ef
Move ID loading into a separate method for Dialogue and DialInfo records
10 years ago
Stanislav Bas
c266315a35
Load/read methods in MWWorld::Store return a pair (record ID, deleted flag)
10 years ago
Stanislav Bas
2ed182b144
Update to upstream/master. Resolve merge conflicts in MWWorld::Store
10 years ago
Stanislav Bas
e0983c815c
Some fixes for ESM Dialogues and Infos
10 years ago
Alexander "Ace" Olofsson
12f413ba9b
Don't instantiate specialized templates
...
This fixes the VS2012 build issue
10 years ago
Marc Zinnschlag
ba9a9d16bb
Merge remote-tracking branch 'scrawl/master'
10 years ago
scrawl
f12619b86a
Implement fStromWindSpeed ( Fixes #2764 )
10 years ago
Stanislav Bas
20723581a1
Letter case fix for MWWorld::Globals
10 years ago
Stanislav Bas
00bf87b561
Convert IDs of loaded records to lower case in MWWorld::Store
10 years ago
Stanislav Bas
897a52cdda
Remove NAME handling from MWWorld::Globals
10 years ago
Stanislav Bas
9301bc148e
Remove NAME handling from MWWorld::ESMStore
10 years ago
Stanislav Bas
89e44c8f1f
Remove explicit record ID in load/read methods of MWWorld::Store
10 years ago
Alexander "Ace" Olofsson
b3b55a5842
Explicitly instantiate MWWorld::Store
10 years ago
Alexander "Ace" Olofsson
b1cc74dd9a
Explicity instantiate MWMechanics::Stat
10 years ago
Alexander "Ace" Olofsson
3655ef16af
Explicitly instantiate ESM::StatState
10 years ago
scrawl
a1432b0255
Move attackingOrSpell flag to the CharacterController
10 years ago
scrawl
519fb9482a
Minor cleanup
10 years ago
scrawl
ca21e9ecb1
Fix magic hit VFX showing when casting on a static object
10 years ago
scrawl
882e359008
Move attackStrength to the CharacterController, where it should have been to begin with
...
Only relevant for actors in active cells, so doesn't belong in CreatureStats. This change should slightly reduce the game's memory usage.
10 years ago
scrawl
5bc6513e2d
Fix projectile hit bug where the incorrect attackStrength would be used if a new attack has been performed in the meantime
10 years ago
scrawl
a5670b5133
Merge branch 'master' of https://github.com/OpenMW/openmw into osg
...
Conflicts:
apps/opencs/CMakeLists.txt
apps/opencs/main.cpp
apps/openmw/mwworld/player.hpp
10 years ago
scrawl
2ce269c0fc
Werewolf stats compatibility with old save files
10 years ago
scrawl
d6a7255391
Loading/saving for player's original skills/attributes (prior to becoming a werewolf)
10 years ago
scrawl
44582fe3b3
Don't use separate werewolf skills/attributes for non-player werewolves
...
Still need to deal with save files.
10 years ago
scrawl
38d90f47a6
Moon fading fix (Bug #2713 )
10 years ago
scrawl
b648722d3b
Don't use the ParticleSystem for computing placeable bounds (Bug #2700 )
10 years ago
scrawl
1c151f2f0a
Re-enable some outcommented sky code
10 years ago
scrawl
3da8f6e62e
Water ripples
10 years ago
scrawl
cad18969e3
Merge branch 'master' of https://github.com/OpenMW/openmw into osg
...
Conflicts:
apps/openmw/mwmechanics/aicombat.cpp
apps/openmw/mwmechanics/aitravel.cpp
10 years ago
scrawl
2476cd4f9a
Error message fix
10 years ago
scrawl
28caeadef4
Improve error message for not found records
10 years ago
scrawl
76bdf7a5b7
Add night-eye effect
10 years ago
scrawl
f81c3bcd6d
Fix for broken InitWorldSpaceParticles on projectile effects
10 years ago
scrawl
16e080e252
Fix the physics debug drawer lagging a frame behind
10 years ago
scrawl
b33fe8fb62
Fix the inventory listener bug
10 years ago
scrawl
4c09ecef72
Normalize fixes
10 years ago
scrawl
ddfed35d1c
Object placement raycasts should use the rendering meshes
10 years ago
scrawl
4bb3cbf0fb
Remove last remains of Ogre
10 years ago
scrawl
b70383d127
Remove last remains of Ogre math
10 years ago
scrawl
cc6d5a3ba0
Fix player setup bug
10 years ago
scrawl
7bacb9418d
Various math code ported to osg
10 years ago
scrawl
2a85a22dba
Write savegame screenshot
10 years ago
scrawl
974fda5bde
Merge branch 'master' of https://github.com/OpenMW/openmw into osg
...
Conflicts:
extern/sdl4ogre/sdlwindowhelper.cpp
10 years ago
scrawl
292fa0b5e3
Unify raycasting techniques for "on touch" magic
...
We don't want pixel-precise raycasting here. Gets annoying when trying to hit a skeleton.
10 years ago
scrawl
cee1db532f
Improve area orb positioning for "on touch" spells
10 years ago
scrawl
2883ecc19a
Fix the hilarious bug of NPCs falling to their deaths in interiors
10 years ago
scrawl
cdd0623009
Terrain rendering
10 years ago
scrawl
01944c33f5
Basic water rendering
10 years ago
scrawl
de8e5f0db1
Restore projectiles
10 years ago
scrawl
bed31996c9
Camera raycast
10 years ago