[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:
fickleheart 2019-12-14 19:21:11 -06:00
parent 7fd2153c08
commit 3db7e48c73
1 changed files with 4 additions and 0 deletions

View File

@ -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