mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-22 01:01:45 +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
7fd2153c08
commit
3db7e48c73
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…
Reference in a new issue