Forums WoW Modding Support Archives WoWModding Support Archives [DiscordArchive] Anyone know any TC functions to get a unit’s current speed?

[DiscordArchive] Anyone know any TC functions to get a unit’s current speed?

[DiscordArchive] Anyone know any TC functions to get a unit’s current speed?

Pages (2): Previous 1 2
rektbyfaith
Administrator
0
09-11-2023, 10:55 AM
#11
Archived author: robinsch • Posted: 2023-09-11T10:55:11.785000+00:00
Original source

GetSpeed should give you the speed.
rektbyfaith
09-11-2023, 10:55 AM #11

Archived author: robinsch • Posted: 2023-09-11T10:55:11.785000+00:00
Original source

GetSpeed should give you the speed.

rektbyfaith
Administrator
0
09-11-2023, 10:55 AM
#12
Archived author: robinsch • Posted: 2023-09-11T10:55:20.070000+00:00
Original source

It's just speed rate * base rate
rektbyfaith
09-11-2023, 10:55 AM #12

Archived author: robinsch • Posted: 2023-09-11T10:55:20.070000+00:00
Original source

It's just speed rate * base rate

rektbyfaith
Administrator
0
09-11-2023, 10:56 AM
#13
Archived author: robinsch • Posted: 2023-09-11T10:56:08.408000+00:00
Original source

You just need to map active movement flags to speed type you want.
rektbyfaith
09-11-2023, 10:56 AM #13

Archived author: robinsch • Posted: 2023-09-11T10:56:08.408000+00:00
Original source

You just need to map active movement flags to speed type you want.

rektbyfaith
Administrator
0
09-11-2023, 10:56 AM
#14
Archived author: robinsch • Posted: 2023-09-11T10:56:31.638000+00:00
Original source

```
if (player->HasUnitMovementFlag(MOVEMENTFLAG_SWIMMING))
moveType = MOVE_SWIM;
else if (player->IsFlying())
moveType = MOVE_FLIGHT;
else if (player->HasUnitMovementFlag(MOVEMENTFLAG_WALKING))
moveType = MOVE_WALK;
else
moveType = MOVE_RUN;
```
rektbyfaith
09-11-2023, 10:56 AM #14

Archived author: robinsch • Posted: 2023-09-11T10:56:31.638000+00:00
Original source

```
if (player->HasUnitMovementFlag(MOVEMENTFLAG_SWIMMING))
moveType = MOVE_SWIM;
else if (player->IsFlying())
moveType = MOVE_FLIGHT;
else if (player->HasUnitMovementFlag(MOVEMENTFLAG_WALKING))
moveType = MOVE_WALK;
else
moveType = MOVE_RUN;
```

rektbyfaith
Administrator
0
09-11-2023, 10:59 AM
#15
Archived author: robinsch • Posted: 2023-09-11T10:59:52.258000+00:00
Original source

it think the only special case you would have is jumping but movement packet should contains direction of the jump and xyspeed
rektbyfaith
09-11-2023, 10:59 AM #15

Archived author: robinsch • Posted: 2023-09-11T10:59:52.258000+00:00
Original source

it think the only special case you would have is jumping but movement packet should contains direction of the jump and xyspeed

Pages (2): Previous 1 2
Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)