Commit Graph
568 Commits
Author SHA1 Message Date
ariel- 3ceeffde86 Core/Movement: Corrected all speed checks after 23b6991273bac4ee9d7cf1b4ac3b9a92e0a7300e
Ref issue #19210
2017-03-03 01:30:15 +01:00
Aokromes 0748e7f820 Added some missing SetFallInformation calls
Fixed HP drop bug on zeppelins
Fixed possible packet relocation problems on huge transports
2017-02-17 09:39:09 +01:00
xinef1 ac3a9d6112 Core/Creatures: Stop falling if corpse is removed (can happen when alive unit is despawned instantly in air) (#18995)
Do not allow to start waypoint movement when unit is dead
2017-02-01 01:29:59 +01:00
HelloKitty 927a73a7ef Core/Vmaps: Stop M2s from occluding for spellcast LoS
Closes #18528
2017-01-21 14:45:30 +01:00
Aokromes 1cf9bdd6c7 build fix 2017-01-20 16:59:17 +01:00
Aokromes 31484029a0 Revert "[3.3.5][master] Core/Movement: Smooth movement 2017-01-20 16:26:38 +01:00
Aokromes 55aba887f7 more missing part 2017-01-18 15:21:28 +01:00
Aokromes 50e68d7149 Core/Movement: Update MoveSmoothPath for flying creatures 2017-01-14 15:01:51 +01:00
Aokromes 719a317a67 Update copyright note for 2017 2017-01-02 07:26:38 +01:00
Chaouki Dhib 935a4cbeab Core/Movement: minor MotionMaster refactor (#18367) 2016-12-06 11:08:10 +01:00
Aokromes 7b48d8c15c compile fix 2016-11-27 17:39:31 +01:00
Aokromes f6160d4d0b Core/Movement: Smooth movement
Implement smooth movement for all waypoint pathing and escortai
2016-11-27 16:59:31 +01:00
Aokromes 0737ea9b6e Core/Spells: Fixed logic related to movement while channeling 2016-11-27 15:47:21 +01:00
Aokromes d8d165241d Core/MotionMaster: cleanup, reordering and renaming 2016-11-27 03:56:15 +01:00
Krudor 64763f86de Core/Creatures: Enable swimming creatures to chase targets in 3d (#18298)
Closes #11060
2016-11-23 11:18:06 +01:00
ariel- 3944dc25b9 Core/Creature: Call SetSpawnHealth after JustReachedHome in HomeMovementGenerator
Fixes issues with quests that rely on this behaviour (eg Free your Mind)

Also updated SetSpawnHealth so it doesn't do anything in case spawn is manual (SetHealth(GetHealth()) does modify things depending on deathstate)
2016-10-24 11:10:41 +02:00
Aokromes ca4b5a0bcd add opcode handler CMSG_MOVE_GRAVITY_DISABLE_ACK, CMSG_MOVE_GRAVITY_E…
…NABLE_ACK

to supress the missing ack handler message.. from Arkcore
2016-09-22 05:26:18 +02:00
treeston 8952a6a9c7 Movement/SplineChain: Fix a potential critical bug where resume info returned during an edge case could fail an assertion when used. 2016-09-22 03:10:39 +02:00
treeston 6045d3f33d d3214a0 follow-up for code style. 2016-09-22 03:10:28 +02:00
treeston 6b83a23408 Movement/SplineChain: Streamline the script workflow for resume info a bit, provide static method that does all the ugly pointer casts for you. Also prevent a nullptr dereference crash if scripts mishandle motionmaster, and canonize Chain == nullptr to signify "no resume info". 2016-09-22 03:10:17 +02:00
treeston 8a402b9f6b Core/Unit: Standardize SetFacingTo and SetFacingToObject behavior while moving. Both now fail while moving unless arg2 bool is true 2016-09-20 20:28:45 +02:00
treeston bf61a58cc2 Core/Movement: Add a convenience default ctor to SplineChainResumeInfo, and fix PCH build in some configurations (zzz why do we even keep Appveyor and Travis around). 2016-09-20 12:55:26 +02:00
treeston c1cc7e0a36 Core/Movement: Add new SplineChainMovementGenerator that allows accurate replication of sniffed waypoints in static sequences, along with DB facilities that allow loading of waypoints from DB. 2016-09-20 12:54:54 +02:00
treeston 876757ed68 Core/Movement: Fix an edge case crash in HomeMovementGenerator. 2016-09-11 16:50:12 +02:00
treeston 2e896a15dd AI/SmartAI: Fix an issue where SmartAI creatures would not properly follow their owner on evade. Also fix a bug where creatures with INHABIT_ROOT would get stuck in evade under certain conditions.
This allows us to fix quest 12261 (No Place to Run). Closes #16291.
2016-09-09 19:56:30 +02:00
treeston c3843eee9f Core/Position: Allow implicit casting to G3D::Vector. Also, add a utility overload to MotionMaster. 2016-09-01 15:18:16 +02:00
Aokromes a16c5a2b2e Core/Movement: Properly clear UNIT_STATE_MOVING when reaching chase target 2016-08-24 19:24:15 +02:00
Treeston 7d2b1128a6 Core/Creature: Fix health regeneration. Creatures immediately reset to full health upon reaching home, rather than slowly regaining it over multiple seconds, which allows players to re-engage them at less than max health. (#17756) 2016-08-12 11:53:12 +02:00
Aokromes 5302d9112b Core/Game: Converted the game library to a shared library.
* There is still the possibility to static link against game.
2016-08-08 20:11:29 +02:00
Aokromes 20895a8631 Core/Logs: Fine tune another log 2016-08-07 21:50:05 +02:00
ariel- c413e65d25 Core/Movement: partial revert 817eb007db and proper compile fixes, this was generating crashes
Closes #80
2016-07-23 23:44:34 -03:00
ariel- fa8662e617 Core/Movement: Clean up and improvements on Unit::SetSpeed (#16843)
- Clean up of Unit::SetSpeed (mostly cherry picks from the 6.x branch):
- the opcode sent depends on the unit. until now, MSG_MOVE_SET_* were sent for every units which isn't like retail behavior.
- Removed the unused method parameter "forced" from Unit::SetSpeed
- Renamed Unit::SetSpeed to SetSpeedRate
- Removed the unused method parameter "forced" from Unit::UpdateSpeed
- Added utility method Unit::SetSpeed which take the new flat value.
Conflicts:
	src/server/game/Entities/Unit/Unit.cpp
	src/server/scripts/Commands/cs_modify.cpp
	src/server/scripts/EasternKingdoms/ZulAman/boss_zuljin.cpp
	src/server/scripts/Kalimdor/zone_azshara.cpp
	src/server/scripts/Kalimdor/zone_durotar.cpp
	src/server/scripts/Northrend/Nexus/EyeOfEternity/boss_malygos.cpp
2016-07-23 07:02:25 -03:00
Aokromes 9d5ff93e27 Core: Removed Whitespaces 2016-07-22 21:40:34 +02:00
Vincent-Michael 0d7a6c6556 Core: Added missing overrides
(cherry picked from commit 5d584116feab33ac04135e46ba9b43738a02e106)
2016-07-22 18:50:26 +02:00
Keader 5eb80cdfde Core/Movement Fixed minimum speed check (#17555) 2016-07-20 19:17:25 +02:00
Shauren 00cc84a51d And another typo fix 2016-07-20 18:44:49 +02:00
Shauren 6e755d05d8 Typo fix 2016-07-20 18:44:38 +02:00
Aokromes 67bb661def Core/Mmaps: Charge ignoring z position of target (#17516)
* Core/Mmaps: Charge ignoring z position of target

By cemak closes #15011
2016-07-20 18:43:45 +02:00
Aokromes e0cdf97dcb Core/Pet: Fix pet at rest distance (#17206)
* Core/Pet: Fix pet at rest distance

By MrSmite, closes #10865

* Update TargetedMovementGenerator.cpp
2016-07-20 18:09:40 +02:00
SnapperRy f7ac30867f Core/Movement: interrupt a creature's current cast when fleeing for assistance, and (if spell is not castable while moving) when running random/fleeing movement generators. (#17271)
Also make sure the creature is alive before updating.

Fixes #12823.
2016-07-20 16:23:41 +02:00
jackpoz d9f485273c Core/VMaps: Fix some vmap height edge cases
Fix Map::GetWaterOrGroundLevel() checking dynamic object only in phase 1 instead of current Unit phase.
Improve DynamicMapTree::getHeight() dynamic object check by casting the ray at +0.5f from the passed Z coordinate, this value will be tuned to improve even more the results.
2016-07-20 15:45:05 +02:00
Shauren e58f0e805c Core/Units: Renamed and documented UNIT_FLAG_DISABLE_MOVE to prevent people from trying to use this flag to root a creature leaving them wondering why it doesn't do anything 2016-07-20 13:56:16 +02:00
Aokromes d3dae41ded Core/Movement: Fix issues where creatures cancel spell casts chasing target and Implement SPELL_ATTR5_CAN_CHANNEL_WHEN_MOVING 2016-07-20 10:46:07 +02:00
Aokromes 817eb007db Compile fix 2016-07-19 19:01:13 +02:00
Aokromes 78c2b11747 Core/Movement: Implement 3 missing opcodes
From wowsource.
2016-07-19 18:51:50 +02:00
Aokromes a71da1c603 Entities/Unit: Finally fix no-path evasion.
- When a creature cannot find a path to its victim, it begins evading all attacks and regenerating health.
- If this persists for 5 seconds, it evades back to spawn position with new EvadeReason value EVADE_REASON_NO_PATH.
- Also some SmartAI cleanup (why oh why does it have so much duplicated code) and getting rid of #defines in favor of type-checked compile-time constants.
2016-07-19 13:33:04 +02:00
Shauren 60817bca50 Core/Random: Removed ancient and unused MAP_BASED_RAND_GEN 2016-05-12 09:22:46 +02:00
Mikhail Redko c8cd578ddf Core/Misc: Move STOP_TIME_FOR_PLAYER value to config. (#17024) 2016-05-12 09:08:19 +02:00
chaodhib a2337bff45 Movement bug fix. Npc mistakenly move away from its new target. 2016-05-12 08:40:58 +02:00
Chaouki Dhib 920d829b64 Core/Movement: Added a wrapper method in MotionMaster for a unit to move toward another unit and stop once it reaches the target at a certain distance. (#16806) 2016-05-12 08:32:38 +02:00