mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 12:31:54 +00:00
Snap BUBBLESHIELDTRAP to toucher when touched (fixes visual disjoint)
This commit is contained in:
parent
7ef793e0f8
commit
14beff2f55
1 changed files with 8 additions and 0 deletions
|
|
@ -634,6 +634,14 @@ void P_TouchSpecialThing(mobj_t *special, mobj_t *toucher, boolean heightcheck)
|
||||||
P_SetTarget(&special->tracer, toucher);
|
P_SetTarget(&special->tracer, toucher);
|
||||||
toucher->flags |= MF_NOGRAVITY;
|
toucher->flags |= MF_NOGRAVITY;
|
||||||
toucher->momz = (8*toucher->scale) * P_MobjFlip(toucher);
|
toucher->momz = (8*toucher->scale) * P_MobjFlip(toucher);
|
||||||
|
|
||||||
|
// Snap to the unfortunate player and quit moving laterally, or we can end up quite far away
|
||||||
|
special->momx = 0;
|
||||||
|
special->momy = 0;
|
||||||
|
special->x = toucher->x;
|
||||||
|
special->y = toucher->y;
|
||||||
|
special->z = toucher->z;
|
||||||
|
|
||||||
S_StartSound(toucher, sfx_s1b2);
|
S_StartSound(toucher, sfx_s1b2);
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue