Commit Graph

352 Commits (master)

Author SHA1 Message Date
scrawl 1636fd66db Don't add creature base damage to weapon damage (UESP was wrong) 11 years ago
scrawl 28a0899d2b Implement difficulty scaling (Fixes #1505) 11 years ago
scrawl 5bbf07976f Consider Shield spell effect for creature armor rating 11 years ago
scrawl 691ba02115 Reduce wepaon condition even if attack misses 11 years ago
scrawl 123157b216 Implement elemental shield damage to attacker (Feature #1121) 11 years ago
scrawl 3d9bdad8ba Correct run speed for creatures (by Hrnchamd - Fixes #1136) 11 years ago
scrawl cc3c6ae7b8 Fix very slow movement on some creatures, e.g. rats (Bug #1136)
Neither fAthleticsRunBonus, fBaseRunMultiplier or the creature's athletics skill (i.e. Combat stat) have any effect on the run speed (tested by setting those to absurd values). The new formula is just a guess and doesn't seem to be completely accurate.
11 years ago
scrawl 6760f4c897 Make cached GMSTs in MWClass::Npc/Creature safer 11 years ago
scrawl 4234c70232 Savegame: Disable CustomData load optimization for npcs and creatures for now to preserve compatibility (still enabled for containers) 11 years ago
scrawl 2193977eec Savegame: Don't fill CustomData from ESM records if the savegame overwrites it anyway
This gets rid of some junk in ContainerStores (since clear() only sets count to 0 and doesn't really delete references), and significantly speeds up loading savegames (by about 80% in my test)
11 years ago
scrawl 28feb260eb Implement disposition/distance based aggression (Fixes #1520) 11 years ago
scrawl 3b7119ba0d Make Bipedal creatures always able to walk and swim (Fixes #1509)
This is necessary since the vanilla CS greys out the walk/swim checkboxes when Bipedal is checked.
11 years ago
scrawl 395f98e476 Fix triggering changed flag for all references when cell is visited
The InsertFunctor for cells was calling localRotateObject() for all references which set the mChanged flag in RefData to true.

Also clean up RefData interface slightly.
11 years ago
scrawl 881ae33b74 Don't allow Creatures with no movement abilities to move (Fixes #1457) 11 years ago
scrawl 039398c8ae Basic RefData and CellRef change tracking
Wrapped item charge handling in getItemHealth function
11 years ago
Emanuel Guevel 1e4a854433 Remove static method MWWorld::Class::get(&Ptr)
It was just adding a level of indirection to Ptr.getClass().
All the call were replaced by that instead. The number of lines changed
is important, but the change itself is trivial, so everything should be
fine. :)
11 years ago
scrawl a872c9f83a Feature #1323: handle restocking levelled items 11 years ago
scrawl b4ed828e21 Feature #1323: Implement restocking items (does not handle levelled lists yet) 11 years ago
scrawl ae66d28c87 Feature #32: Implement respawn for containers, creatures and NPCs 11 years ago
scrawl 67e942e733 Bug #869: Some fixes to the previous fix 11 years ago
scrawl 1c8c26072d Crime and self defense fixes
- NPCs should still shout messages such as "thief" even if they did not report the crime
 - Fixed self defense for NPCs (they no longer attack the player when they were attacked by a non-player actor)
 - Fixed self defense for creatures (Fixes #1203)
11 years ago
Jeffrey Haines 9efef31bb8 Feature #953 Trader Gold - Unused code/warning resolved
Removed unused code
getBaseGold throws proper error
11 years ago
Jeffrey Haines 401d21b4ee getBaseGold implemented in MWWorld::Class for NPC and Creature
Implemented a getBaseGold() to get the vendor gold base
NPC gold base now can come from mNpdt12 and mNpdt52
11 years ago
Jeffrey Haines 895748f18d Gold Pool implemented for Vendors
It appears that my solution breaks persuasion gold for some reason. I
may be wrong. I can’t see where this could be happening as the files
I’ve changes should not affect persuasion at all.
11 years ago
Jeffrey Haines 6896142db1 Trader Gold Reset Delay
Trade Time initialized to 0
Gold pot set correctly for npc’s and creatures
11 years ago
Jeffrey Haines 2a8bf46607 Trader Gold Reset Delay
Implemented traded gold reset delay.

Note:
Traders gold pool is still in inventory.
11 years ago
scrawl c8c0e5de38 Fixed code issues found with unity build. Missing include guards, duplicated functions, ... 11 years ago
cc9cii 43757efdc4 Feature #1030 - partial fix to stop creatures unable to walk/fly to come out of water. Does not necessarily handle situations where they are already out of water, however. 11 years ago
scrawl 072dc6d438 Feature #50: Implement marksman mechanics. 11 years ago
Marc Zinnschlag 83ded18af0 encapsulated reference collections 11 years ago
Marc Zinnschlag 367919200f moved CellRefList into a separate file 11 years ago
Marc Zinnschlag 9788bbcab9 partially store creature state in saved game files (only attributes and dynamics for now) 11 years ago
scrawl e1e7a492e2 Fix movement speed formula for flying creatures 11 years ago
Marc Zinnschlag 1b5301eec0 Merge branch 'savedgame'
Conflicts:
	apps/openmw/mwbase/mechanicsmanager.hpp
	apps/openmw/mwbase/soundmanager.hpp
	apps/openmw/mwgui/mapwindow.hpp
	apps/openmw/mwmechanics/actors.cpp
	apps/openmw/mwmechanics/mechanicsmanagerimp.hpp
	apps/openmw/mwsound/soundmanagerimp.hpp
	components/esm/loadcell.cpp
11 years ago
Marc Zinnschlag 5b04c10e1d added creature/NPC state to saved games (only container/inventory for now) 11 years ago
scrawl 305e78c981 Fix creature attack bug 11 years ago
mrcheko 5ee1dc6be8 attacktypes error fix 11 years ago
scrawl 194413c955 Feature #1119: Implement Resistance/Weakness to normal weapons magic effect. Handle fWereWolfSilverWeaponDamageMult. 11 years ago
scrawl 16f5f5862d Feature #956: Implement blocking melee attacks 11 years ago
scrawl 1617a4f7d9 Use fCombatDistance 11 years ago
scrawl 851a7d5014 Feature #957: Handle area effects for "on touch" range 11 years ago
scrawl 0adc0f56ed Issue #777: Consider weapons in Creature::hit 11 years ago
scrawl 9723263730 Bug #1126: Tweak creature attack distance a bit (still no idea where this should come from) 11 years ago
scrawl 198bb0de60 Issue #777: Add CreatureAnimation variant for creatures with weapons/shields 11 years ago
scrawl 589fbbd871 Issue #777: Create InventoryStore for creatures with weapons/shields 11 years ago
scrawl 149d77dedf Feature #960: Add knockdown and hit recovery for creatures 11 years ago
scrawl 9b32b1403b Feature #960: Implement Creature::hit 11 years ago
scrawl 805843d7ff Closes #1086: Implement blood effects 11 years ago
scrawl f070d9966d Implement movement speed formula for creatures. Still moving a bit too slow. 11 years ago
scrawl ea8f60eddf Implement movement speed formula for creatures. Still moving a bit too slow. 11 years ago
scrawl d544551f61 Added getSkill to Class interface, since creatures also have skills (which are provided by generalized Combat, Magic and Stealth attributes which substitute for the specific skills, in the same way as specialization)
Information provided by Hrnchamd.
11 years ago
scrawl 0f5dc59176 Remove useless dependencies on InventoryWindow for getting player gold. Don't use string literals for gold_001 id, just to be sure. 11 years ago
scrawl 0285d18fc2 Respect items belonging to a faction 11 years ago
scrawl ce013315ba Nothing to see here, move along.
Fine... it's flying cliff racers. But did you really want to know?
11 years ago
scrawl 14b70a3ce6 Implement AI related magic effects (calm, frenzy, rally, demoralize, turn undead) 11 years ago
scrawl 2a8ab932ef Bug #951: Only recalculate derived stats when attributes change 11 years ago
Emanuel Guevel fc8bd1aacb Allow fatigue stat to become negative when fatigue damages are taken 11 years ago
scrawl b6c22ad5d9 Add starting gold for NPCs and creatures. Refactor gold removal in some gui windows (use containerstore method instead of a dependency on TradeWindow). Use real gold amount in trade window, not refill amount. 11 years ago
Chris Robinson 6fd4cdb5fb Play randomized werewolf sounds 12 years ago
Chris Robinson 89c7f5bc70 Handle object activation as a werewolf 12 years ago
Chris Robinson dfdd2dc308 Handle swimleft and swimright soundgen keys 12 years ago
scrawl 7dc30a01cd Some changes suggested by cppcheck 12 years ago
Marc Zinnschlag 6ce2b962e1 Merge remote-tracking branch 'scrawl/inventory' 12 years ago
scrawl 16cacb338a Initialize MWMechanics::AiSequence from ESM::AiPackageList 12 years ago
scrawl 45006ea193 Fix inventory/container content loading so that it's done for dynamically spawned objects as well 12 years ago
Chris Robinson 54f91d4b3a Implement hand-to-hand attacks 12 years ago
Chris Robinson db4f34b332 Play hit sounds when hitting creatures and NPCs 12 years ago
Chris Robinson 3298eb1b37 Implement HitOnMe script function 12 years ago
Chris Robinson 5379e607cb Handle the OnPCHitMe script variable 12 years ago
Chris Robinson bec420c69b Add Class::onHit for creatures 12 years ago
Chris Robinson 92cc566fdc Rename the Class::attack method to Class::hit 12 years ago
Chris Robinson d9a9c3d6bd Handle the "land" soundgen type 12 years ago
Chris Robinson 0c8d4d9be2 Add beginnings of melee hits 12 years ago
Chris Robinson 9ea6b22a83 Handle soundgen animation keys 12 years ago
scrawl 0c7f48ec8a Implement movement for creatures (formula is a stub) 12 years ago
scrawl 8a3d3f954b NPC/creature persistence flag 12 years ago
scrawl 0c4a963132 Container UI rewrite 12 years ago
scrawl ebaf80d539 Trace actors onto the ground after load, when moved to a different cell by the console or on player cell change. 12 years ago
scrawl 95e1cdc07d Move getArmorRating to MWWorld::Class. 12 years ago
scrawl dd57eabc3e Better use an enum for magic effect IDs 12 years ago
scrawl 0ee0dbdb97 Added "dispose corpse" button, added stealing (all items visible and no penalty yet) 12 years ago
Chris Robinson 8d98f3649c Use a separate class to handle activator mechanics 12 years ago
Chris Robinson efca5ded47 Clean up some header includes to reduce nesting 12 years ago
Marc Zinnschlag ceaf1677ce Issue #219: rewrote AI settings and implemented AI settings filters 12 years ago
Marc Zinnschlag 918316168f Merge remote-tracking branch 'greye/store' into next
Conflicts:
	apps/openmw/mwclass/light.cpp
	apps/openmw/mwworld/worldimp.cpp
12 years ago
emoose 7a7825577a Changed: use MWWorld::Ptr for PhysicsSystem arguments 12 years ago
greye 3c2ce25f5f m prefix for mwworld/cellstore.hpp 12 years ago
scrawl a04df37f83 implemented looting corpses 12 years ago
Marc Zinnschlag ed3641b214 Issue #68: check for essential actors 12 years ago
Marc Zinnschlag bdca5aff87 Issue #68: simplified the dynamic stats interface 12 years ago
greye 721324c1db rm record inheritance, rework esmtool accordingly 12 years ago
greye 7606ebafd6 resolving conflicts, minor update 12 years ago
Marc Zinnschlag 6c928e93d3 added missing initialisation of NPC/creature spell lists from ESX records 12 years ago
greye a90547bbbe code formatting 13 years ago
Marc Zinnschlag 6534c2a55a Issue #107: WindowManager is accessed only through the interface class from now on 13 years ago
Marc Zinnschlag b68f9d6a28 Issue #107: MechanicsManager is accessed only through the interface class from now on 13 years ago
greye 26595f22f6 float* -> Vector3, moveToCell -> copyToCell, fixed placeObject() 13 years ago
greye e7666d3a7f move responsibility for cell changing from CellStore::insertObject to Class::moveToCell 13 years ago
greye 6a3a728a56 Class::getModel implementation 13 years ago
greye 32b1350b63 CreatureStats class 13 years ago
Marc Zinnschlag 5a7b95bf7a Issue #107: cleaned up includes in apps/openmw/mwworld/class.hpp 13 years ago
Marc Zinnschlag 7fcd41c69d Issue #107: Detemplateised CellStore; some include cleanup 13 years ago
Marc Zinnschlag 76174098c7 Issue #107: CellStore moved from ESMS to MWWorld 13 years ago
Marc Zinnschlag ea29b74bb4 added per NPC/creature basic AI-settings (hello, fight, flee, alarm) 13 years ago
Alexander "Ace" Olofsson f675d8d039 Merge branch 'master' 13 years ago
Marc Zinnschlag 36885b2e40 Issue #176: removed enable/disable functions from Creature, Npc and Light 13 years ago
scrawl e9ea1fba4e fixed typo getCapacity method 13 years ago
Marc Zinnschlag fdfddc8be7 some todo comment cleanup 13 years ago
Marc Zinnschlag 7e00fea18b added getEncumbrance function 13 years ago
Marc Zinnschlag c6493fb133 added getCapacity function 13 years ago
Alexander "Ace" Olofsson b1af18e98d Merged next 13 years ago
scrawl 1b5bfc52a1 Merge branch 'next' of https://github.com/zinnschlag/openmw into tooltips
Conflicts:
	apps/openmw/engine.cpp
	apps/openmw/mwclass/apparatus.cpp
	apps/openmw/mwclass/book.cpp
	apps/openmw/mwclass/container.cpp
	apps/openmw/mwclass/ingredient.cpp
	apps/openmw/mwclass/misc.cpp
	apps/openmw/mwclass/npc.cpp
	apps/openmw/mwclass/potion.cpp
	apps/openmw/mwclass/repair.cpp
	apps/openmw/mwgui/window_manager.cpp
13 years ago
Marc Zinnschlag 35f478071e Issue #255: deleted the old environment class and using the new one instead 13 years ago
scrawl cdd4d83d9e moved the tooltip info to the appropriate MWWorld::Class classes 13 years ago
Alexander "Ace" Olofsson 290d09de64 Switching creature and npc to using the same id storage as the rest of the records 13 years ago
Marc Zinnschlag f2972b1ca0 turned ContainerStore from a template into a simple struct 13 years ago
Marc Zinnschlag c081160591 replaced container store in ref data with new custom data implementation 13 years ago
Marc Zinnschlag aa87bd4030 replaced creature stats in ref data with new custom data implementation 13 years ago
Jason Hooks 7fde576dd9 actor physics again 13 years ago
Jason Hooks a615369189 Warning and different physics 13 years ago
Jason Hooks d855bb4fc6 physics reenabled 13 years ago
Jason Hooks a6b88b48ec A different way 13 years ago
Jason Hooks 1b835d6702 Cell changing fixes 13 years ago
Jason Hooks 0902a3db89 Filled out NpcAnimation and CreatureAnimation classes 13 years ago
Jason Hooks 835c3f2603 Working towards npc rendering 13 years ago
Jason Hooks 7bd911b401 Problems with handles 13 years ago
Jason Hooks 7319f7a8c6 Many bugs fixed related to changing cells 13 years ago
Jason Hooks 15fcdc8b72 Physics working 13 years ago
Jason Hooks 4dc59dfbdd Scenenode flip 13 years ago
Jason Hooks bc58ef28cd Made corrections 13 years ago
Jason Hooks c7dadec840 Updating the rest of mwclass 13 years ago
Jason Hooks f4e7bd6dfd Made some recommended changes 13 years ago
Jacob Essex 9aac625000 Changes to move the mutable ESM::Position data to RefData 13 years ago
Marc Zinnschlag 0f2df4e2b8 more cleanup 14 years ago
Jason Hooks 92509d3b70 Trying to animate creatures 14 years ago
Marc Zinnschlag 88b0908104 adding physics when insertering objects into the OGRE scene 14 years ago
Pieter van der Kloet dd4d022301 Converted all tabs to four spaces 14 years ago
Marc Zinnschlag 2527fe92a7 implemented creature/NPC level 15 years ago
Marc Zinnschlag 7bb2041418 made rendering more robust (no more crashes, even if Ogre throws an exception) 15 years ago
Marc Zinnschlag 2cfe5f0697 Merge branch 'master' into dialogue
Conflicts:
	apps/openmw/mwclass/creature.cpp
	apps/openmw/mwclass/creature.hpp
	apps/openmw/mwclass/npc.cpp
	apps/openmw/mwclass/npc.hpp
	apps/openmw/mwworld/class.cpp
	apps/openmw/mwworld/class.hpp
15 years ago
Marc Zinnschlag d57c984517 added enable and disable functions to class hierarchy; fixed a bug regarding actors in cellings being actived 15 years ago
Marc Zinnschlag 967f85875d reimplemented class-dependend rendering code in MWClass 15 years ago
Marc Zinnschlag 2acfe22975 added test for actor ID 15 years ago
Marc Zinnschlag 8086933282 Merge branch 'master' into dialogue
Conflicts:
	apps/openmw/CMakeLists.txt
	apps/openmw/mwclass/creature.cpp
	apps/openmw/mwclass/creature.hpp
	apps/openmw/mwclass/npc.cpp
	apps/openmw/mwclass/npc.hpp
15 years ago
Marc Zinnschlag 7afc8ffd2e Merge branch 'container'
Conflicts:
	apps/openmw/CMakeLists.txt
	apps/openmw/mwclass/creature.cpp
	apps/openmw/mwclass/creature.hpp
	apps/openmw/mwclass/npc.cpp
	apps/openmw/mwclass/npc.hpp
15 years ago
Marc Zinnschlag d42747e85b Merge branch 'master' into dialogue
Conflicts:
	apps/openmw/CMakeLists.txt
	apps/openmw/mwclass/creature.cpp
	apps/openmw/mwclass/creature.hpp
	apps/openmw/mwclass/npc.cpp
	apps/openmw/mwclass/npc.hpp
15 years ago
Marc Zinnschlag 09c42589cc implemented npc/creature activation (enters dialog gui mode for now) 15 years ago
Marc Zinnschlag 10a63b10b5 Merge branch 'master' into container
Conflicts:
	apps/openmw/mwclass/container.cpp
	apps/openmw/mwclass/container.hpp
	apps/openmw/mwclass/creature.cpp
	apps/openmw/mwclass/creature.hpp
	apps/openmw/mwclass/npc.cpp
	apps/openmw/mwclass/npc.hpp
	apps/openmw/mwworld/class.cpp
	apps/openmw/mwworld/class.hpp
15 years ago
Marc Zinnschlag 7a313f24ab integrated activation into script system 15 years ago
Marc Zinnschlag ee7570f7e7 added containerstore 15 years ago
Marc Zinnschlag 239498bcd4 added getName function 15 years ago
Marc Zinnschlag 33b6a0b800 moved concrete record classes to separate sub-system (mwclass) 15 years ago