MiroslavR
d4e29e3e0c
Clear projectiles on non-incremental time advances
9 years ago
Allofich
c1236f4113
Simplified code
9 years ago
Allofich
c02695e56d
Cleanups and fixes
9 years ago
Allofich
64d298d2b5
Use raycast distance when player activates trapped object
9 years ago
Allofich
64d53a2314
Avoid double raycasts when using getFacedObject
9 years ago
Allofich
574e40db5e
Don't allow telekinesis on activators
9 years ago
scrawl
d96e49c04a
Do not set change flag when running forEach on an empty cell
9 years ago
scrawl
b9b73d7b12
Replace "sys::default" with ESM::CellId::sDefaultWorldspace
9 years ago
scrawl
96757a3b7c
Fix non-predefined cells not being saved correctly
9 years ago
MiroslavR
54f52f7bae
Implement effect removal for abilities ( Fixes #3455 )
9 years ago
Allofich
b29e9e9c77
Don't allow telekinesis on actors or teleport doors
9 years ago
MiroslavR
72d2daae90
Fix InventoryStore::purgeEffect being reverted by the next recalculation of mMagicEffects
9 years ago
scrawl
f549b5fb7a
Add missing include
9 years ago
scrawl
c18de84798
Fix a crash that could occur when two or more plugins move a deleted ref to another cell ( Fixes #3446 )
9 years ago
scrawl
844cbc5a14
Add isNullAction() method to fix compiler warning
9 years ago
scrawl
a85932a62b
Ignore the collision box offset when launching projectiles ( Fixes #3201 )
9 years ago
scrawl
c6601ab2ab
Do not use the collision box offset for combat hit tests ( Fixes #3201 )
9 years ago
scrawl
12eea9ed69
Remove magic number in getMaxActivationDistance
9 years ago
scrawl
f417d7780a
Fix the enemy nearby check (Bug #3423 )
9 years ago
scrawl
3645b3357e
Fix improper assignement of spawn point in placeAt for non-actors (Bug #3417 )
9 years ago
scrawl
a2153a6213
Remove outdated comment
9 years ago
scrawl
5d4f58c828
Fix being unable to activate objects when scripts are disabled
...
The if statement was a leftover of the previous activate implementation and is no longer needed.
9 years ago
scrawl
3f1df4caa6
Don't auto-equip ammunition ( Fixes #3401 )
9 years ago
scrawl
b0180cb6b4
Fix current region check (Bug #3391 )
9 years ago
scrawl
fcbcc004a3
Don't use unordered_map
9 years ago
scrawl
59cfcb38e2
Scale the sunlight specular color by weather's GlareView value ( Fixes #3375 )
9 years ago
scrawl
3584e59402
Fix incorrect parameter to changeCell ( Fixes #3388 )
9 years ago
Roman Proskuryakov
d5dfa89060
Rewrite NAME_T into FIXED_STRING.
9 years ago
scrawl
c64b8ab297
Merge pull request #928 from Salgat/bug-1320
...
AiWander - Creatures in cells without pathgrids do not wander (Bug #1320 )
9 years ago
Austin Salgat
84179c262f
Update manual wandering to prevent actor from leaving/entering water
...
Water creatures will stay in the water, while land creatures will stay on land when wandering.
9 years ago
scrawl
d784a77f4c
Set the default player cell in the StateManager ( Fixes #3269 )
9 years ago
Bret Curtis
2c90b0b78d
fix a few spelling mistakes
9 years ago
scrawl
cf62d860b2
Fix the adjustPlayerPos parameter not being respected in all cases
9 years ago
scrawl
e1dda9675d
Add "preload instances" setting, disabling this may help if you are low on memory.
9 years ago
scrawl
5cda89c15d
Don't attempt to preload more exterior cells than the cache can hold (Bug #3273 )
9 years ago
scrawl
83f1ab6d25
Add a time threshold to the removing of preloaded cells when the maximum cache size is reached (Bug #3273 )
9 years ago
scrawl
4ac276b06c
Update the resource cache every frame (Bug #3273 )
...
Not much of a point in limiting this to cell loadings, since the update is done from a background thread and should be fairly cheap anyway if there's nothing to unload.
9 years ago
scrawl
2f8be401cc
Add the unref work items to the front of the workqueue (Bug #3273 )
...
Ensures that memory still gets freed even if the workqueue is overloaded.
9 years ago
scrawl
5bd8ef247d
Do not adjust the player position when loading a savegame ( Fixes #2089 )
9 years ago
scrawl
3e6cf17665
Warn about cellrefs with an empty refId (Bug #3238 )
9 years ago
scrawl
d0aba0d9ee
Catch exceptions thrown during reference loading (Bug #3238 )
9 years ago
scrawl
004f0d37d5
Fix the projectile launch position for spells cast from objects ( Fixes #3235 )
9 years ago
scrawl
76b47c6d5d
PlaceAt: don't correct spawn points for non-actors
9 years ago
scrawl
16dca126dd
PlaceAt: don't use actor's X/Y rotation
9 years ago
scrawl
3d6323f13a
Force-enable hasWater() for exterior cells ( Fixes #3222 )
9 years ago
scrawl
2821f46a18
Corpse clearing fix
9 years ago
scrawl
36bb255bc0
Use safePlaceObject in spawnRandomCreature
9 years ago
scrawl
be62ae758a
Fall back to sides first
9 years ago
scrawl
6df71f6250
Factor out safePlaceObject function
9 years ago
scrawl
11f00e3aa9
Rename safePlaceObject to placeObject
9 years ago
scrawl
27577ce765
Add ESM::Land::DEFAULT_HEIGHT
9 years ago
scrawl
fc3de3302e
Create a collision shape for the default terrain
9 years ago
scrawl
f2f601b958
Implement corpse clearing ( Fixes #2363 )
9 years ago
scrawl
c3ef387208
Vanilla-compatible creature/NPC respawning ( Fixes #2369 , Fixes #2467 )
9 years ago
scrawl
f99cd15f00
Vanilla-compatible activate / onActivate ( Fixes #1629 )
...
See https://forum.openmw.org/viewtopic.php?f=6&t=3074&p=34618#p34635
9 years ago
scrawl
8bd16e4d5a
Don't compute the world matrix multiple times
9 years ago
scrawl
6fb0022b35
Update preloading settings
...
Disable 'preload fast travel' by default.
Add 'min cache size' and 'max cache size' settings.
Split the 'cache expiry delay' into 'preload cell expiry delay' and 'cache expiry delay'.
9 years ago
scrawl
383524c688
Run physics in fixed timesteps, use the remainder to interpolate between current and previous state
...
Based on http://gafferongames.com/game-physics/fix-your-timestep/
9 years ago
scrawl
6bfeb118d7
Fix cleanup issue
9 years ago
scrawl
9f729667fb
Remove debug output
9 years ago
scrawl
0865cea211
Preload terrain
9 years ago
scrawl
1457a0de78
Use the UnrefQueue to delete BulletShapeInstances
9 years ago
scrawl
246566cef4
Preload instances in BulletShapeManager
9 years ago
scrawl
e28dc3e72f
Preload instances in SceneManager
9 years ago
scrawl
f6f9eff9a6
Preload levelled creatures
9 years ago
scrawl
6806741d9b
Add settings for disabling the individual preloading types
9 years ago
scrawl
10a3e270a3
Preload fast travel destinations
9 years ago
scrawl
1cda2bf796
Preload sky & water from the main menu
9 years ago
scrawl
f9082502f8
Move construction of WorkQueue to RenderingManager
9 years ago
scrawl
d16450bff2
Fix correctActorModelPath in preloader not being used
9 years ago
scrawl
effe022bb2
Move preload model list to MWClass, preload NPC head/hair
9 years ago
scrawl
fc0be77e4c
Preload keyframes
9 years ago
scrawl
ef5de94548
Fix correctActorModelPath
9 years ago
scrawl
e4e313fe12
Remove outdated comment
9 years ago
scrawl
c8054424c9
Preload items equipped by NPCs
9 years ago
scrawl
a81b10b415
Make the cache expiryDelay configurable
9 years ago
scrawl
5efaa9817c
Add preloading settings
9 years ago
scrawl
610257cd3a
Preload the exterior cell grid
9 years ago
scrawl
8592166eeb
Preload surrounding cells when preloading an exterior cell destination
9 years ago
scrawl
023c87b215
Preload cell when the player goes near a teleport door. It works!
9 years ago
scrawl
d855a13b44
Clear the resource cache from the worker thread
9 years ago
scrawl
6f9ca0f68f
Add basic cell preloader class
...
Not properly in use yet, but seems to be working.
9 years ago
scrawl
a72af4a1a3
cout that should be cerr
9 years ago
scrawl
6ef848b7c5
Remove TextureManager::getTexture2D
...
Instead use getImage and let the caller create the Texture. Sharing of textures is then handled in post by the SharedStateManager.
This is closer to what the OSG serializer does.
Streamlines the TextureManager and will make it easier to multithread.
9 years ago
scrawl
c9a67ab423
Do not add scripts from levelled creatures twice (Bug #2806 )
...
Do not insert objects from within a CellStore visitor
9 years ago
scrawl
bd655c20fd
Refactor local map updates
...
We don't need the delay any more because the rendering itself is part of the normal rendering traversal - so it's delayed anyway.
Don't request maps that we're not actually using (i.e. with cell grid sizes higher than the default 3, we were rendering more maps than the map window could show).
9 years ago
scrawl
300379617e
Accept a const CellStore in findInteriorPositionInWorldSpace
9 years ago
scrawl
41ebf62fb1
Accept a const CellStore in getNorthVector
9 years ago
Marc Zinnschlag
11a4a31bfd
Merge remote-tracking branch 'scrawl/localscripts'
9 years ago
scrawl
69c2c4fcc1
updateMergedRefs before reading MVRF tags ( Fixes #3161 )
9 years ago
scrawl
cc3563359e
Refactor local script iteration ( Fixes #2806 , Fixes #3108 )
...
This should be much safer. Don't use recursion. Don't fail if mIgnore happens to be in the list twice. Don't rely on preconditions / assertions.
9 years ago
scrawl
187d2bccda
Warn about adding a local script twice (Bug #2806 )
9 years ago
scrawl
c403a6b113
Don't apply constant magic effects to dead actors ( Fixes #3174 )
9 years ago
scrawl
aec8c38461
Move observer_ptr include where it belongs
9 years ago
Tobias Kortkamp
0659687bfb
Some fixes for building on FreeBSD
9 years ago
scrawl
b0431833a1
Fix some defects reported by Coverity CI
9 years ago
scrawl
f0971ee8ad
Implement Fixme script instruction
9 years ago
scrawl
ce9a18fb87
Merge pull request #879 from jordan-ayers/bugfix/1544
...
Improve Drop Command - Bugfix/1544
9 years ago
Jordan Ayers
c82d9a1e87
Adjust ContainerStore / InventoryStore to allow partial unequip of items.
9 years ago
scrawl
41c571d4f4
Merge branch 'master' of https://github.com/OpenMW/openmw into lighting
...
Conflicts:
apps/opencs/view/render/instancemode.cpp
9 years ago
scrawl
4f2a031f4e
Improve error message
9 years ago
scrawl
0b84b3c2cf
Don't crash when region weather chances don't add to 100
...
The invalid weather ID was resulting in out-of-bounds vector access later in the code.
9 years ago
Jordan Ayers
2ce2e8a1e7
Add missing OOB slot check to InventoryStore.
9 years ago
scrawl
ef1a1125e0
Fix an error in restocking logic ( Fixes #3131 )
9 years ago
scrawl
4e6a60672d
When a spell explodes on an actor do not apply it to that actor twice ( Fixes #3142 )
9 years ago
scrawl
6546c05428
Move Fallback map to components/
9 years ago
scrawl
4f8f166f69
Fix GetPcInJail to work as in the original engine
9 years ago
scrawl
1905f0bf2d
Add support for placing BodyParts in a cell (Bug #3118 )
9 years ago
scrawl
6fde02ea42
LocalScripts: initialize mIter
9 years ago
scrawl
f052c05018
Move werewolf functions from World to MechanicsManager
9 years ago
scrawl
a1e163ed20
Correct an error in the timestamp subtracting logic ( Fixes #3105 )
9 years ago
scrawl
e5d9ee30f4
Add count argument to copyObjectToCell
...
Fixes the gold bug introduced in c9ca5bc946
9 years ago
scrawl
32d5dece58
Add count argument to getToolTipInfo
9 years ago
scrawl
0d4729dcd5
Use the const version of CustomData::as*
9 years ago
scrawl
b0894ea20d
Accept a ConstPtr in hasToolTip
9 years ago
scrawl
29d0f448b4
Add const version of World::getAnimation
9 years ago
scrawl
51c77c5045
Accept a ConstPtr in getDoorState
9 years ago
scrawl
7a2ca5580a
Accept a ConstPtr in RippleSimulation
9 years ago
scrawl
53f4b92426
AiEscort do not follow target through doors
...
Testing revealed a problem where the guard on the prison ship would incorrectly follow the player outside. Upon further investigation in vanilla MW, it appears that with AiEscort the actor only follows the target through doors once the AiEscort package has completed, *and* no new AI package is running yet.
9 years ago
scrawl
2c51e7345f
Use a separate collision type for doors ( Fixes #1962 )
9 years ago
scrawl
a0fb31e3b1
Accept a ConstPtr in getLOS
9 years ago
scrawl
029d467ea5
Accept a ConstPtr in getItemsOwnedBy, getContainersOwnedBy
9 years ago
scrawl
388aed1748
Accept a ConstPtr in findContainer, collision script functions, getUnderwater functions
9 years ago
scrawl
ed101ad35a
Remove redundant getPlayerAnimation function
9 years ago
scrawl
c9ca5bc946
Accept a ConstPtr in placeObject
9 years ago
scrawl
6c505ca06f
Accept a ConstPtr in getHitContact
9 years ago
scrawl
0796f49c17
Accept a ConstPtr in various physics getters
9 years ago
scrawl
553132cb51
Accept a ConstPtr in launchProjectile
9 years ago
scrawl
8f9fc87565
Accept a ConstPtr in LocalScripts::setIgnore
9 years ago
scrawl
1212c07266
Pass a string by reference
9 years ago
scrawl
f35ab12979
Accept a ConstPtr in InventoryStore::isEquipped
9 years ago
scrawl
3856f931db
Accept a ConstPtr in ContainerStore::addNewStack
9 years ago
scrawl
e1c6261fee
Accept a ConstPtr in ContainerStore::getType
9 years ago
scrawl
edde5bd065
Accept a ConstPtr in ContainerStore::stacks
9 years ago
scrawl
04f7a8f8eb
Remove redundant getId function
9 years ago
scrawl
266fbbef48
Accept a ConstPtr in canLock
9 years ago
scrawl
c43f80633a
Accept a ConstPtr in getEnchantmentPoints
9 years ago
scrawl
303521002d
Accept a ConstPtr in adjustScale
9 years ago
scrawl
09bdb0ad4b
Accept a ConstPtr in getServices
9 years ago
scrawl
648ee6e7fb
Accept a ConstPtr in applyEnchantment
9 years ago
scrawl
3c98f8dde3
Accept a ConstPtr in isPersistent
9 years ago
scrawl
3fe3091275
Accept a ConstPtr in isEssential
9 years ago
scrawl
4a47fc32fa
Accept a ConstPtr in getBloodTexture
9 years ago
scrawl
2bd8d60e9f
Accept a ConstPtr in getPrimaryFaction, getPrimaryFactionRank
9 years ago
scrawl
2ac92012e8
Accept a ConstPtr in isClass
9 years ago
scrawl
5b082be79f
Accept a ConstPtr in getBaseGold
9 years ago
scrawl
da7ebfde99
Accept a ConstPtr in copyToCell
9 years ago
scrawl
954186fe1e
Accept a ConstPtr in canFly, canSwim & canWalk
9 years ago
scrawl
b09bdd6af5
Accept a ConstPtr in isBipedal
9 years ago
scrawl
92a3acfa56
Accept a ConstPtr in getBaseFightRating
9 years ago
scrawl
d120f76031
Accept a ConstPtr in getSound
9 years ago
scrawl
d77f785cbc
Accept a ConstPtr in get*SoundId
9 years ago
scrawl
dc92fefd2b
Accept a ConstPtr in canBeEquipped, getEquipmentSlots & hasItemHealth
9 years ago
scrawl
e0bb284804
Accept a ConstPtr in getWeight
9 years ago
scrawl
0047a2d330
Accept a ConstPtr in canSell
9 years ago
scrawl
2bc851c7d3
Accept a ConstPtr in getEnchantment
9 years ago
scrawl
beb8805a12
Accept a ConstPtr in getInventoryIcon
9 years ago
scrawl
f258c5c508
Accept a ConstPtr in getModel
9 years ago
scrawl
d9bbd83b09
Accept a ConstPtr in getToolTipInfo
...
Accept a ConstPtr in functions used by getToolTipInfo
9 years ago
scrawl
bc50587e71
Remove comment
9 years ago
scrawl
a344183247
Comment fix
9 years ago
scrawl
ed3486e816
Improve const-correctness in writeAdditionalState
9 years ago
scrawl
b48445dea7
Accept a ConstPtr in getScript
9 years ago
scrawl
19d87c78f2
Add CellStore::forEachConst
9 years ago
scrawl
d4eba794c3
Add ConstPtr
9 years ago
scrawl
2fe2f53b02
Set the changed flag in CellStore::search ( Fixes #3089 )
9 years ago
scrawl
04b6571d7d
Fix logic for scripting access of deleted objects
9 years ago
scrawl
e564c26314
Fix deleted objects being accessible in the Cells cache
9 years ago
scrawl
689dea4cb3
Add instant spell effects to the actor's magic effect list
...
Via http://forum.openmw.org/viewtopic.php?f=2&t=3212&start=20#p36208
9 years ago
scrawl
d6bcb7906d
Fix crash in a warning message
9 years ago
scrawl
271fcb80c6
Remove container scripts before deleting container
9 years ago
scrawl
359b0b3772
Rename for clarity
9 years ago
scrawl
18cce3a6f9
Don't reset delete flag when loading reference from a save game ( Fixes #2724 )
9 years ago
scrawl
850092a5e5
Store: be consistent about struct / class usage
...
Don't inherit a struct from a class, and vice versa.
9 years ago
scrawl
cc2315a0de
Minor fix
9 years ago
scrawl
b856460f86
ESMStore: fill mIds in setUp()
9 years ago
Chris Robinson
808f701013
Use the actor's Head position for Say streams
9 years ago
Chris Robinson
a47bdecac7
Add missing include
...
Since Ptr is used directly in the header, a forward declaration isn't good
enough.
9 years ago
scrawl
57b7cac13f
Merge pull request #850 from MatthewRock/fix-2952-2
...
Fix for bug #2952 : Enchantment Merchant Items reshuffled EVERY time 'barter' is clicked
9 years ago
MatthewRock
ddd4004c95
Fix: remove space
9 years ago
MatthewRock
3b254ad631
Allows the same item to have multiple ancestors
9 years ago
scrawl
bdae572264
Merge pull request #840 from scrawl/movedrefs
...
Object movement between cells
9 years ago
scrawl
bc1f7499ab
Do not allow deleting the player object ( Fixes #2982 )
9 years ago
MatthewRock
b0e6a52595
Replace ancestor with parent
9 years ago
MatthewRock
aa721fe1f6
Fix bug 2952 with merchant and levelled items
9 years ago
Marc Zinnschlag
071ba3a4df
Merge remote-tracking branch 'scrawl/werewolf'
9 years ago
scrawl
07b064f616
Rename to lowerCaseInPlace
9 years ago
scrawl
136a425cec
Use the Werewolf field of view override ( Fixes #3064 )
...
Need to re-run the settings importer for the feature to work.
9 years ago
scrawl
621347b20f
Remove moved ref handling from listRefs()
...
Not needed since we now load cells when a reference is moved there.
9 years ago
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