dteviot
60d0ad9283
When stuck, try moving backwards as well as to side.
9 years ago
dteviot
5369d20682
Moved pathfinding logic from AiCombat to Pathfinding.
9 years ago
Marc Zinnschlag
b58a63e14e
Merge remote-tracking branch 'scrawl/deathanim'
9 years ago
Marc Zinnschlag
96880b4dfe
Merge remote-tracking branch 'scrawl/tabs'
9 years ago
Marc Zinnschlag
c35ce88ee7
Merge remote-tracking branch 'scrawl/aiming'
9 years ago
scrawl
a7f898057b
Don't activate the initial death animation when skipAnim is set ( Fixes #2513 )
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
scrawl
126960261f
Keep playing IdleSneak on the lower body when casting spells / using weapons
9 years ago
scrawl
5692ef1eae
Add convenience operator [] to AnimPriority
9 years ago
scrawl
84747fbdd7
Use the actual sneak state to determine visibility of indicator ( Fixes #2915 )
9 years ago
dteviot
0feae19140
AiCombat use evadeObstacles() from AiPackage.
9 years ago
dteviot
8e2fe1985d
Fixed errors pointed out by Zini.
...
1. Removed "Actor" from name of function isActorNearInactiveCell().
2. Corrected case of CoordinateConverter member function names.
9 years ago
dteviot
10eabc9d51
actorutil.hpp includes mwworld/ptr.hpp
...
As pointed out by Scrawl, fixes compiler error if getPlayer() is called before MWWorld::Ptr is defined, because getPlayer() returns a Ptr by value.
9 years ago
dteviot
6f97187bb6
Fix travis warning about no newline at end of file.
9 years ago
dteviot
573a14993a
Moved isActorNearInactiveCell() logic to own function.
...
Also, triggers when actor is near edge of cell, not when less than 1/2 way to edge.
9 years ago
dteviot
e9c796166a
Added MWMechanics::isPlayerInCombat()
9 years ago
dteviot
96e3933ee9
Fixed bug in smoothTurn()
...
Now correctly handles changing direction from 178 to -178 degrees.
9 years ago
dteviot
1dfe438a5d
reduce "reset if stuck" AiWander timeout.
...
Now is about 14 seconds, instead of 300.
9 years ago
dteviot
39c2ba8efe
Pathfinding bugfix.
...
Observed at Ebonheart (coe 1, -13). Especially at the western tower. Guards try to walk though tower door.
Cause: buildPath() adds destination (even when unreachable) when only using single node from pathgrid.
9 years ago
dteviot
f2c9b9351f
Try going right and left to "unstick" actor.
9 years ago
dteviot
31d82b6b0c
Unifiy evadeObstacles() logic between AiWander and AiPackage
...
Can't use same code, but logic is now same.
9 years ago
dteviot
f59e918a3b
removed useless code.
...
zTurn ignores turns < 0.0087 radians.
9 years ago
dteviot
0677799839
movement logic in AiPackage uses ObstacleCheck.
9 years ago
Marc Zinnschlag
a52b947efe
Merge remote-tracking branch 'dteviot/MagicEffectsRefactorDraft3'
10 years ago
Marc Zinnschlag
50ec8b10f5
Merge remote-tracking branch 'dteviot/Bug2871'
10 years ago
dteviot
5dd0ad6841
Fixed rest of travis errors.
10 years ago
dteviot
77a1d947cc
extracted MWMechanics::getPlayer()
10 years ago
dteviot
85bc41dedb
replaced FLT_MAX with numeric_limits.
10 years ago
dteviot
3b231b85bb
removed incorrect optimization.
...
Now it fixes #2871
10 years ago
Marc Zinnschlag
08325d14ca
Merge remote-tracking branch 'dteviot/Bug2871'
10 years ago
Marc Zinnschlag
5cb0353b5c
Merge remote-tracking branch 'jeffreyhaines/npcsdontscream'
10 years ago
dteviot
c0d3804b4f
Correctly handle disjoint pathgrid ( Fixes #2871 )
...
Bugfix:
When
1. Cell has multiple subgrids (i.e. path grid is disjoint)
2. Distance between destination and pathgrid point 0 is less than distance to points of subgrid closest to start point
Then getClosestReachablePoint() returns pathgrid point 0 as the end point.
This is invalid, this end point cannot be reached from the start point.
10 years ago
dteviot
0ee7407101
extracted common sub-expressions.
10 years ago
dteviot
ff5ef7055e
extracted function CreatureStats::isParalyzed()
10 years ago
Marc Zinnschlag
9918b57341
Merge remote-tracking branch 'origin/master'
10 years ago
Jeffrey Haines
e1baf1ea48
NPCs scream when they die
10 years ago
scrawl
232dfdc07e
Make an error message slightly more helpful
10 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
dca08b0b42
Remove a firing assert ( Fixes #2871 )
10 years ago
Marc Zinnschlag
3992125b61
Merge remote-tracking branch 'scrawl/master'
10 years ago
Marc Zinnschlag
dc72b24f4e
Merge remote-tracking branch 'dteviot/PathfindingRefactorDraft'
10 years ago
Jordan Ayers
be7bd9529d
Classes shouldn't use MWBase::Environment to access their own members.
10 years ago
dteviot
4d9d8a060d
Pathing bugfix.
...
When path contains one one point from path grid, point is no longer being discarded.
10 years ago
dteviot
942a987d52
centralize the world/cell coordinate conversion logic.
10 years ago
dteviot
5049c9ab6a
removed unnecessary tests.
10 years ago
scrawl
8241976368
Don't attempt to play non-existing hit animations ( Fixes #2856 )
10 years ago
scrawl
d76fb2d266
Apply disintegrate only to weapons and armor ( Fixes #2853 )
10 years ago
Marc Zinnschlag
5aeabe22f0
Merge remote-tracking branch 'dteviot/PathfindingRefactor'
10 years ago
scrawl
1e18a73b1c
Don't play magic effect sounds & visual effects for unsuitable targets ( Fixes #2811 )
10 years ago