Commit Graph

2796 Commits (d3b623b5d32e8eba6c135ba62acfe049840040a4)

Author SHA1 Message Date
Allofich 5aad1d81f4 Remove no longer used parameter 8 years ago
MiroslavR 55e670c5fe Fix animation state not saving
References with animation state changed but otherwise identical to their content file counterparts
were previously considered unchanged and thus dropped while saving.
8 years ago
Allofich 322a0ba8bb Initialize speed for magic projectiles 8 years ago
Allofich 7eb62b5d3a Initialize speed for magic projectiles 8 years ago
Allofich dc8ff5e49b Play all sfx and use particle textures for permanent enchantments 8 years ago
Allofich 01774c656c Fix for blood effect texture overrides 8 years ago
Allofich a033ba3bd2 Override spell textures by NiTexturingProperty 8 years ago
Allofich 34851349de Pass hitPosition by const reference 8 years ago
Allofich bce0166931 Don't play blood effects for resisted hits 8 years ago
Allofich 368828b217 Update TODO comments 8 years ago
Allofich f31342894a Put simpler condition first 8 years ago
Allofich bca477ca8a Apply particle textures like original engine does 8 years ago
Allofich 85349da26c Add comments 8 years ago
Allofich 502a758eff Use particle texture for "hit" effects 8 years ago
Allofich fe3a033642 Use particle textures for spell projectiles 8 years ago
Allofich 02610828c1 Don't play area vfx for non-area spells on actors. 8 years ago
Allofich 88d992a020 Create area effect visual for non-area spells 8 years ago
scrawl fbc9b90ebe Cleanup 8 years ago
scrawl 8677a6f803 Merge pull request #1044 from Allofich/magic
Changes to multi-effect spells
8 years ago
Allofich c617e90755 Fix for loading projectile speed 8 years ago
Allofich f8270f6bd5 Consolidations and cleanup for multi-effect spells 8 years ago
Allofich dbd7c038b2 Add loading code for multi-effect projectiles 8 years ago
Allofich c6cd1f813b Attach projectiles to nodes of multi-effect bolts 8 years ago
Allofich 5a0d3feb98 Use C++ int-to-string conversion 8 years ago
Allofich a36f7babc1 Double scaling of spell explosions 8 years ago
Allofich 60384399ee Fix errors and warnings 8 years ago
Allofich f49ebee56a Play sounds for multi-effect projectile 8 years ago
Allofich 37f07f7435 Combine into one multi-effect magic projectile 8 years ago
Allofich 10842462c7 Send lists of models and sounds to launchMagicBolt 8 years ago
Allofich ecec7d8215 Fix spells having explosions for wrong range type 8 years ago
Allofich a6216d883f Don't allow casting Water Walking in deep water 8 years ago
Bret Curtis 0547d4b937 clang says that these must be in the MWWorld namespace 9 years ago
Allofich cb9bb92b26 Play locked sounds on locked objects instead of actors 9 years ago
MiroslavR b65f379b7f Save scripted animation state (Fixes #1931, #2150, #3393) 9 years ago
MiroslavR 4a3529488b Fix possible reference duplication when the refID is modified by a plugin (Bug #3471) 9 years ago
MiroslavR dafe184220 Fix moved references disappearing when modified by a plugin 9 years ago
MiroslavR d790747389 Implement deletion of moved references (Bug #3471) 9 years ago
scrawl 2329812988 Merge pull request #995 from Allofich/traps
Trap and lock fixes
9 years ago
scrawl 67d3571fac Fix activation distance in third person mode 9 years ago
Allofich d4e656ceaf Play trap activation sound on trapped object, not actor 9 years ago
scrawl 6f376bd499 Merge pull request #983 from Allofich/telekinesis
Don't allow telekinesis on actors or teleport doors
9 years ago
Allofich 7a0f9a7989 Clean up, remove unnecessary code changes 9 years ago
Allofich 4e54338ce0 Implement and use getDistanceToFacedObject() 9 years ago
Allofich 0e5c3f781f Only allow trap distance check to apply to player 9 years ago
Allofich 7de3afaa7d Cleanups 9 years ago
Allofich cb621939fd Streamline trap code 9 years ago
Allofich 35a23c3b49 Implement and use new method allowTelekinesis() 9 years ago
Allofich 8014f37879 Avoid duplicate code 9 years ago
Allofich 538209b0a2 Change variable to mRatio and initialize it 9 years ago
Allofich e25e698978 Fix telekinesis check for activators 9 years ago
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