Waypoint movement not respecting speed
Revision: https://github.com/TrinityCore/TrinityCore/commit/c48a1ad17db9b623795d24bbe83d77247b6ef756
I'm currently working on a fix of quests http://old.wowhead.com/quest=12663, http://old.wowhead.com/quest=12664. It needs a ride on a flying vehicle performing waypoint movement. I have the correct vehicle id and waypoints. But when I start the waypoint movement the creature does not respect walking speed set in creature_template table if InhabitType is set to 4 (flying). If I manually set it to 1 (ground) the speed is respected. But that looks really ugly like the creature hopping in the air.
Seems SMART_ACTION_WP_START does not work correctly for flying creatures... Or it is a general issue in waypoint movement...
this is true...
example: me->SetSpeed(MOVE_FLIGHT,1.0f,true);
does not affect the flying npcs with waypoints movement
Needed for #6246
I recently found there is a spell http://old.wowhead.com/spell=52191 and its effect2 is Mod Speed 300. This would do the trick with the vehicle speed if it worked...
So there is a core issue with that spell effect. It only affects walking and running speed but does not with flying speed. This is wrong and I already told that on IRC but noone was willing to listen...
@Pitcrawler You were told that hacking the core to allow flying vehicles to benefit from that effect was not correct, and that there must be some other way as this would break other things.
I am aware that I was told so. But what purpose would it have to apply that spell if it is not allowed to modify flying speed? That the speed is affected can be seen here http://www.youtube.com/watch?v=nFGXj8Kq6xE. There is no other spell applied to that vehicle as can be seen in sniff. At first I thought one of the other speeds (walk, run) is used to calculate fyling speed. But on IRC I was told that was incorrect and there are always auras applied that change flying speed. So I don't have any other idea what could do the speed increase instead. Maybe you have?
@Subv After some more investigation on sniffs I found that you're right regarding spell effect Mod Speed to only affect running speed: In 335 sniffs the vehicle has the above mentioned aura as a template and the vehicle's speeds are
[0] Walk Speed: 11
[0] Run Speed: 44
[0] RunBack Speed: 4.5
[0] Swim Speed: 4.722222
[0] SwimBack Speed: 2.5
[0] Turn Speed: 7
[0] Fly Speed: 4.5
[0] FlyBack Speed: 3.142
[0] Pitch Speed: 3.142
in 430 sniffs speeds are
[0] Pitch Speed: 3.141593
[0] FlyBack Speed: 3.141593
[0] SwimBack Speed: 2.5
[0] Fly Speed: 4.5
[0] RunBack Speed: 4.5
[0] Turn Speed: 7
[0] Swim Speed: 4.72222
[0] Walk Speed: 11
[0] GUID 2 Full: 0xF1506FFD00635451 Type: Vehicle Entry: 28669 Low: 6509649
[0] Run Speed: 11
the spell is then casted by the vehicle on self after spawn and I found this afterwards
ServerToClient: SMSG_SPLINE_MOVE_SET_RUN_SPEED (0x6438) Length: 12 ConnectionIndex: 2 Time: 01/22/2012 11:25:04.101 Number: 25901
Speed: -2.642147E+29
Guid: Full: 0xFD63000101315143 Type: 3846 Low: 20009283
Think this modifies the running speed by +300%.
Nevertheless flying speed is obviously increased as you can see in the video from youtube. So something still has to be done to get this working correctly...
If you are absolutely sure that it is the only spell, then change the spell aura in Spell.cpp.
On a side note, that SMSG_SPLINE_MOVE_SET_RUN_SPEED is fucked up. What patch was it so i can fix it on WPP?
Detected build: V4_3_0_15050
For the spell aura I'll try to get on IRC after work and discuss that with you.
Ah, 4.3.0, that bitch, I'll try to get it fixed ASAP
Closing this as the right way to do it was used.