mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Add thing argument to discard player momentum to AGZ Bulb Launcher
This commit is contained in:
parent
4de4c9e57d
commit
3af15ce7f3
1 changed files with 8 additions and 2 deletions
|
|
@ -256,8 +256,14 @@ void Obj_BulbTouched(mobj_t *special, mobj_t *toucher)
|
|||
|
||||
toucher->player->tulip = 8*2 +1;
|
||||
|
||||
fixed_t spd = FixedHypot(toucher->momx, toucher->momy);
|
||||
angle_t ang = R_PointToAngle2(0, 0, toucher->momx, toucher->momy);
|
||||
fixed_t spd = 0;
|
||||
angle_t ang = 0;
|
||||
|
||||
if (!special->spawnpoint || special->spawnpoint->thing_args[0] == 0)
|
||||
{
|
||||
spd = FixedHypot(toucher->momx, toucher->momy);
|
||||
ang = R_PointToAngle2(0, 0, toucher->momx, toucher->momy);
|
||||
}
|
||||
|
||||
P_InstaThrust(toucher, 0, 0);
|
||||
P_MoveOrigin(toucher, special->x, special->y, special->z);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue