mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-02-23 22:11:01 +00:00
[POTENTIALLY RISKY] Show target arrow above lock-on target
My judgement on "is this netgame-safe" is "Gunslinger's targeting spawns this only for the local player, so maybe".
This commit is contained in:
parent
f3e7d24c8c
commit
35f6bc5093
1 changed files with 4 additions and 0 deletions
|
|
@ -1371,6 +1371,10 @@ void G_BuildTiccmd(ticcmd_t *cmd, INT32 realtics, UINT8 ssplayer)
|
|||
if (newtarget)
|
||||
P_SetTarget(&ticcmd_ztargetfocus[forplayer], newtarget);
|
||||
|
||||
// I assume this is netgame-safe because gunslinger spawns this for only the local player...... *sweats intensely*
|
||||
newtarget = P_SpawnMobj(ticcmd_ztargetfocus[forplayer]->x, ticcmd_ztargetfocus[forplayer]->y, ticcmd_ztargetfocus[forplayer]->z, MT_LOCKON); // positioning, flip handled in P_SceneryThinker
|
||||
P_SetTarget(&newtarget->target, ticcmd_ztargetfocus[forplayer]);
|
||||
|
||||
if (P_AproxDistance(
|
||||
player->mo->x - ticcmd_ztargetfocus[forplayer]->x,
|
||||
player->mo->y - ticcmd_ztargetfocus[forplayer]->y
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue