Commit Graph

68 Commits (move)

Author SHA1 Message Date
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 965bea45c0 AiEscort makes the actor side with target in fights (Bug #2697)
Also will follow the player through teleport doors.
9 years ago
Arthur Moore 5e6fcc2aef Alert the user if attempting to play an animation fails
This is mostly propogating the error up the stack so the game can do something about it.
Working on avoiding log spam from calling an animation that doesn't exist every frame.
10 years ago
scrawl 4bb3cbf0fb Remove last remains of Ogre 10 years ago
scrawl de8e5f0db1 Restore projectiles 10 years ago
scrawl 0c6e2170db Include cleanup 10 years ago
scrawl c883a73d30 Several warning fixes 10 years ago
scrawl a8ae0dec52 Implement AiWander fast-forward (Feature #1125) 10 years ago
scrawl edc128572d Add MWMechanics::Actor class for temporary actor state, move AiState there 10 years ago
scrawl d962f0918d Implement NPC head tracking (Fixes #1720) 10 years ago
scrawl d034a079e6 Allow equipping twohanded weapon and shield at the same time (Fixes #1785)
The shield can be equipped, meaning armor rating and item enchantments apply, but can not be blocked with.
10 years ago
scrawl 109a3f78a1 Adjust AiFollow distance for groups of multiple followers (Fixes #1637) 10 years ago
MiroslavR b8d5a9486a Make Restore/Damage Attribute/Skill effects continuous 10 years ago
scrawl 282c93ccc5 Handle death in actor update rather than instantly (Fixes #1866) 10 years ago
scrawl 084cc857d4 Update magic effects when changing equipment (Fixes #1646) 11 years ago
scrawl fc618cb3ea Use separate function for fatigue restoration during resting/waiting 11 years ago
scrawl c0645d4978 Increase death count immediately on death (Bug #1588)
This is required for scripts using getDeadCount as reaction to onDeath that rely on the increased value.
11 years ago
scrawl e458cf1df2 Savegame: Store death counter (Fixes #1477) 11 years ago
mrcheko aa5647b45e merge master, resolve conflicts 11 years ago
mrcheko 5be37f04ef Feature 1314: make npc fight creatures 11 years ago
scrawl e591d23880 Fixes #894: Make sure the player's CharacterController is updated when the player is rebuilt. Necessary if the race is changed while we are still in a GUI (e.g. in the review dialog), and an update normally wouldn't occur. 11 years ago
Thomas f3272c941f Fix for bug #1080, can't read/repair/make potions/use soul gems/rest/sleep while in combat.
The radius for being in combat with the player is fAlarmDistance, which looked like the only pertinent thing.
11 years ago
Jeffrey Haines 58b135a2be Crime is now checked every frame call 11 years ago
Marc Zinnschlag fd5486864a Merge remote-tracking branch 'gus/AIFix2'
Conflicts:
	apps/openmw/mwbase/mechanicsmanager.hpp
	apps/openmw/mwmechanics/actors.cpp
	apps/openmw/mwmechanics/actors.hpp
	apps/openmw/mwmechanics/mechanicsmanagerimp.cpp
	apps/openmw/mwmechanics/mechanicsmanagerimp.hpp
11 years ago
gus 707e579dfe Merge branch 'master' of https://github.com/zinnschlag/openmw.git into AIFix2
Conflicts:
	apps/openmw/mwmechanics/aifollow.cpp
11 years ago
scrawl 205e8aa4e9 Feature #957: Implement area magic 11 years ago
scrawl 95651857f3 Fix code duplication 11 years ago
scrawl 0d0005c433 Fix fatigue not restoring when waiting 11 years ago
gus dd870e35db get all actors following a given actor 11 years ago
scrawl 3c0080d2c1 Implement theft detection 11 years ago
Marc Zinnschlag e1355be47c Merge remote-tracking branch 'lgro/valgrind_warnings' 11 years ago
Lukasz Gromanowski 5c5f87445b Fixes for "Conditional jump or move depends on uninitialised value(s)"
and memleaks reported by valgrind.

Signed-off-by: Lukasz Gromanowski <lgromanowski@gmail.com>
11 years ago
scrawl 79a440e94a Many additions to 900bc06d2c236b:
- Fix indentation
 - Consider any kind of light, not just torch_infinite_time
 - Hostile NPCs should also wear lights, if they have nothing else that could use the slot (or a twohanded weapon)
 - Remove redundant code and don't add additional lights to the inventory
 - World::isDark returns false for interiors which are unaffected by weather
11 years ago
Lukasz Gromanowski 900bc06d2c Fixes #845: NPCs hold torches during the day
Moved 'equipping torches at night and unequipping at day' code from Character
to Actors class.

Removed unneeded showLights method (introduced in previous commits)
from animation/npcanimation classes.

Since this commit autoEquip() method doesn't automatically equip lights.

Signed-off-by: Lukasz Gromanowski <lgromanowski@gmail.com>
11 years ago
scrawl 4b4025ed0f Keep the player's CharacterController when changing cells. Fixes several glitches. 11 years ago
scrawl 4ed4c1e319 Add Vampirism and Sun Damage effects. Some fixes. 11 years ago
scrawl 0dc2e829dd Lots of cleanup. Implemented Absorb and Resist. Implemented several instant effects. Added hand VFX. 11 years ago
scrawl bb43ec9b35 Implement damage tick effects 11 years ago
scrawl 3e58655a90 Implemented Fortify/Drain skill magic effects. Scroll of icarian flight works! 11 years ago
Alex "rainChu" Haddad 30ee3c5cf6 Equipped torches and lights run out of fuel 11 years ago
Chris Robinson 9d56e2d86d Apply movement by queueing it to do later 12 years ago
Chris Robinson 2bac4566c0 Merge remote-tracking branch 'PotatoesMaster/werewolf' into werewolf
Conflicts:
	apps/openmw/mwmechanics/actors.cpp
	apps/openmw/mwscript/statsextensions.cpp
12 years ago
PLkolek 8f4506f5b6 Implemented drowning.
Currently no visual effects on losing health, the breathing sound doesn't change (we don't have one),
the breath bar doesn't turn red when no breath left and it doesn't pulse from black to red.
12 years ago
Emanuel Guevel e0d0cdd18a Do not auto-equip items continuously
This was called every couple of frames.
12 years ago
Chris Robinson 7883087586 Store a pointer to the character controller in the map 12 years ago
Torben Carrington c8c1ddd927 Adds functionality for checking if the animation group passed is currently playing on the actor passed. This is needed for AIWander. 12 years ago
Chris Robinson 274f3c7b77 Force character state to update after switching view modes 12 years ago
Chris Robinson 466c0086b8 Use a full Movement to hand off to the world physics update 12 years ago
Chris Robinson 48271e49ec Properly update the Ptr object in the mechanics manager when moving across cells 12 years ago
Chris Robinson 0a4568bd11 Move the PtrMovementList typedef to MWWorld
Use it for the doPhysics parameter, too
12 years ago