Commit Graph

2507 Commits (move)

Author SHA1 Message Date
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