Commit Graph

157 Commits (move)

Author SHA1 Message Date
scrawl daa94cc50e Fix cppcheck warnings 9 years ago
scrawl 3453353091 AiCombat distance check takes into account collision box (Fixes #1699) 9 years ago
dteviot 5369d20682 Moved pathfinding logic from AiCombat to Pathfinding. 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
dteviot 0feae19140 AiCombat use evadeObstacles() from AiPackage. 9 years ago
dteviot 2b9e22f593 extracted function stopAttack(). 10 years ago
dteviot 0884a3796f extracted function isTargetMagicallyHidden(). 10 years ago
dteviot 038851420d Removed unneeded temp variables.
Corrected case of function names.
10 years ago
dteviot 50ddcd1953 more attack logic moved into AiCombatStorage. 10 years ago
dteviot 0735e3e06e move start attack logic to AiCombatStorage.
Basically, copied from mrchenko's 1d4be08f6e4c2dbd89cc0c3408a8231ee4497277
10 years ago
dteviot 1676bf917e CombatMove logic moved into AiCombatStorage.
Basically, copied from mrcheko's 1d4be08f6e4c2dbd89cc0c3408a8231ee4497277
10 years ago
dteviot 58f732ebc9 Update path following checks each frame in AiCombat. 10 years ago
dteviot ad9bab0b68 Removed redundant if. 10 years ago
dteviot 4256e151b1 Fixed error in deciding type of attack 10 years ago
Marc Zinnschlag 26ea3aa1ad Merge remote-tracking branch 'dteviot/refactoringAiWander' 10 years ago
dteviot 04aee1fe20 extracted function reactionTimeActions(). 10 years ago
dteviot b3d5b47fea extracted function UpdateActorsMovement(). 10 years ago
dteviot aba7225817 Removed some duplicated operations. 10 years ago
scrawl b3f5ac5dbb Include cleanup 10 years ago
scrawl e6b28d84f0 Outdated comment fix 10 years ago
dteviot 1ed6e95c07 Got rid of some radians to degrees to radians conversions. 10 years ago
scrawl 6bcea21e14 Use fCombatDelayCreature, fCombatDelayNpc for random delays between aicombat attacks (Bug #1876) 10 years ago
scrawl a7bd050928 Accurate attack timings in AiCombat 10 years ago
scrawl 82740c1645 Remove completely broken code 10 years ago
scrawl d07b176b36 Take into account hit recovery, knockdown and other animations for AiCombat attack timing 10 years ago
scrawl 520a832a9a Remove an already resolved todo comment 10 years ago
scrawl a1432b0255 Move attackingOrSpell flag to the CharacterController 10 years ago
scrawl 59db9664ba Pass the CharacterController to AiPackage::execute 10 years ago
scrawl cad18969e3 Merge branch 'master' of https://github.com/OpenMW/openmw into osg
Conflicts:
	apps/openmw/mwmechanics/aicombat.cpp
	apps/openmw/mwmechanics/aitravel.cpp
10 years ago
dteviot cb8ca2f03a Moved logic for building a Sync'ed path from AiCombat to PathFinding.
Is now used by AiFollow, which should fix "running in circles" bug caused when recalc a path and closest way point is the one NPC has just passed.
10 years ago
scrawl a0b0ae9bd1 Remove an unused variable 10 years ago
scrawl 4bb3cbf0fb Remove last remains of Ogre 10 years ago
scrawl 7bacb9418d Various math code ported to osg 10 years ago
scrawl 58ebf57154 Apply a comment that got lost in the endless depths of my git stash 10 years ago
scrawl 22f01b1232 Merge branch 'master' of https://github.com/OpenMW/openmw into osg
Conflicts:
	apps/launcher/graphicspage.cpp
	apps/opencs/editor.cpp
	apps/opencs/model/doc/document.cpp
	apps/opencs/view/render/cell.cpp
	apps/opencs/view/render/mousestate.cpp
	apps/opencs/view/render/textoverlay.cpp
	apps/opencs/view/render/worldspacewidget.cpp
	apps/openmw/mwclass/creature.cpp
	apps/openmw/mwclass/npc.cpp
	apps/openmw/mwgui/inventorywindow.cpp
	apps/openmw/mwgui/loadingscreen.cpp
	apps/openmw/mwgui/mapwindow.cpp
	apps/openmw/mwgui/pickpocketitemmodel.cpp
	apps/openmw/mwgui/waitdialog.cpp
	apps/openmw/mwmechanics/combat.cpp
	apps/openmw/mwmechanics/mechanicsmanagerimp.cpp
	apps/openmw/mwrender/globalmap.cpp
	apps/openmw/mwworld/physicssystem.cpp
	apps/openmw/mwworld/refdata.cpp
	apps/openmw/mwworld/scene.cpp
	apps/openmw/mwworld/worldimp.cpp
	components/sdlutil/sdlinputwrapper.cpp
	extern/shiny/Main/Factory.cpp
	extern/shiny/Main/MaterialInstance.cpp
	extern/shiny/Main/Platform.cpp
	extern/shiny/Main/ShaderSet.cpp
10 years ago
Rohit Nirmal 396fba7fa9 Silence -Wreorder warnings, and remove -Wno-reorder. 10 years ago
scrawl ccab8cc9a1 Register Player in the PhysicsSystem 10 years ago
scrawl 8c810e3620 Move rng to components 10 years ago
scrawl 4e69e7cc0f OpenMW compiles and runs w/o render window 10 years ago
dteviot eb1090a1b6 Waypoint check only considers X & Y distance (Fixes #2423)
When pathfinder checks if actor has reached a waypoint, ignore actor's altitude.
10 years ago
dteviot 3f28634d1f consolidate random number logic
Note, I suspect Rng::rollClosedProbability() is not needed.  The only difference between it and rollProbability() is that one time in 37k (on Windows), it will give an output of 1.0.
On some versions of Linux, the value of 1.0 will occur about 1 time in 4 billion.
10 years ago
dteviot ca8c8c6aa4 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 81925645a3 Unreachable enemies combat AI fix (Fixes #2271) 10 years ago
scrawl f35c9b7a69 Clang warning fixes (thanks hemite) 10 years ago
dteviot 458b82c308 Centralized "fish can't attack non-swimmer" logic. 10 years ago
dteviot 7fe2f86d06 Slaughter fish attacks when player only knee deep in water (Fixes #2076) 10 years ago
scrawl a17252eab3 Remove unused checkWaypoint function
It was an almost exact copy of the checkPathCompleted function anyway.
10 years ago
scrawl a58bc9f2f7 Remove sneaking effect on combat AI (Fixes #2237) 10 years ago