Commit Graph

63 Commits (8c7e06293fbe6d0ed1dd7dd0f424b9f1b6f92162)

Author SHA1 Message Date
David Cernat 6d43c8d63d [Client] Send ActorAI with combat when an NPC's fight is set to 100 7 years ago
David Cernat 743933134d [Client] Simplify sending of ActorAI packets for uninitialized actors 7 years ago
David Cernat 5f4ec1331f [Client] Send ActorAI packet when combat is started via a client script 7 years ago
David Cernat 528bd26a3b [General] Allow followers to follow non-authority players through cells 7 years ago
David Cernat 09da24f1ea [General] Rename all instances of refNumIndex into refNum
This creates symmetry with mpNum and should cause less confusion in the future.
7 years ago
David Cernat f0d4f1bbe5 [Client] Send ActorAI packets when followed by an NPC
The packet is sent regardless of whether we are the cell authority or not, so the server can decide what it wants to do with it.
7 years ago
Andrei Kortunov f3f7487664 Fix arguments parsing for AiWander console command (bug #4458) 7 years ago
Andrei Kortunov 65d8e2ff5d Allow to use GetDetected without a reference (bug #3110) 7 years ago
MiroslavR dc0bc5b68c Implement Face instruction (Feature #1424) 9 years ago
scrawl d7c7bb850b ToggleAI cleanup 9 years ago
scrawl 65b5cbe3f7 AiEscortCell complains if no cell was given or cell does not exist 9 years ago
scrawl 14b143231c Don't crash OpGetTarget when the target disappeared (Fixes #3048) 9 years ago
scrawl 67bd6cd708 Remove empty line at the beginning of files
git ls-files -z | xargs -0 sed -i '1{/^$/d}'
10 years ago
scrawl 47758c11cd Readded collision objects and movement physics 10 years ago
dteviot 36141b0c53 Merge remote-tracking branch 'OpenMW/master' into FixWarnings
Conflicts:
	apps/openmw/mwinput/inputmanagerimp.cpp
	apps/openmw/mwmechanics/actors.cpp
	extern/sdl4ogre/sdlcursormanager.cpp
10 years ago
dteviot e197f5318b fixing MSVC 2013 warning C4244: & C4305
conversion from 'const float' to 'int', possible loss of data
conversion from 'double' to 'int', possible loss of data
conversion from 'float' to 'int', possible loss of data
10 years ago
scrawl 8931ddf428 Remove unneeded casts 10 years ago
scrawl 4773d754c6 Remove redundant isHostile flag (Fixes #1652) 11 years ago
scrawl b52977e44c Add dummy Face implementation for now (Bug #1541) 11 years ago
scrawl 4648524df4 Improve getLOS (use eye level). Also, don't crash when used with non-actors. 11 years ago
scrawl a54ac579a5 Savegame: Store AiSequence 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
Marc Zinnschlag 56c4367c1a Merge remote-tracking branch 'mrcheko/master' 11 years ago
mrcheko e1249f6a31 actor handle and id confusing fix 11 years ago
scrawl 36d9ae17cc Revert "Change all AI packages (except AiActivate) to use ActorIds"
Causes potential infinite loops (AiSequence::fill -> AiPackage() -> getCreatureStats -> ensureCustomData -> ..)

This reverts commit 2e9985c1a3.
11 years ago
scrawl 2e9985c1a3 Change all AI packages (except AiActivate) to use ActorIds
More robust in case the target changes cell or there are multiple targets with the same RefId
11 years ago
scrawl dd9117809d Say an attack phrase when combat starts
Move combat start to a helper method

Added some todo comments
11 years ago
scrawl 9b36a13821 Feature #1289: NPCs return to default position
Make stationary NPCs return to their previous position once combat/crime AI finishes.
11 years ago
scrawl 793649c854 ToggleAI: Report current status on toggle 11 years ago
scrawl 23ffb8a4dc Fixes #1143: Make getCurrentAiPackage return the package that was run last, not the package that will be run in the next frame.
This makes the Mehra Milo script work properly.
11 years ago
mrcheko fe0268062d merge with master 11 years ago
scrawl b1066de81d Revert "Merge remote-tracking branch 'mrcheko/master'"
This reverts commit 4e360136b1, reversing
changes made to 047bbe43b2.

Conflicts:

	apps/openmw/mwmechanics/aicombat.cpp
11 years ago
scrawl ea21d8fec3 Fix CreatureTargetted function 11 years ago
mrcheko 969340d61b fixed StartCombat script 11 years ago
mrcheko df4df5b094 fixed weapRange for creatures/startcombat script(?) 11 years ago
mrcheko f2ad1c18f2 fix merging problem/some logic fixes 11 years ago
scrawl dff67bb0b6 StopCombat: mark as non-hostile 11 years ago
Marc Zinnschlag 3e58eb34e4 Merge remote-tracking branch 'sergeyshambir/startcombat'
Conflicts:
	apps/openmw/mwscript/docs/vmformat.txt
11 years ago
Sergey Shambir 5c7e39a92f Implemented script commands StartCombat, StopCombat, GetTarget.
Also renamed one field of AIWander class because it's not longer
unknown.
11 years ago
scrawl 29c823b9d4 Implement awareness check function. Use this for combat AI and GetDetected instruction. 11 years ago
scrawl 14b70a3ce6 Implement AI related magic effects (calm, frenzy, rally, demoralize, turn undead) 11 years ago
gus dff3cf162d ToggleAI script instruction 11 years ago
gus 46a734852b adding script instruction getLOS + some test about AI 11 years ago
vorenon 3bf3bd4b8c Silenced some warnings 12 years ago
Alex de1f423bd7 initial move of script opcodes and registerExtensions functions to components/compiler 12 years ago
Marc Zinnschlag b1a8dc35e0 minor adjustments 12 years ago
Torben Carrington 1cfe037d6b AIWander - Added support for the Repeat parameter to mimic vanilla. 12 years ago
Torben Carrington 4d10a1c407 Fixed an additional 0 being sent into the AIWander idle parameters vector (Thanks to Chris) 12 years ago
Marc Zinnschlag af191c7382 fixed AiWander arguments 12 years ago
Chris Robinson 1d934e3112 Reduce some stdout spam 12 years ago