Update file lua_baselib.c

This commit is contained in:
luigi budd 2025-02-22 17:52:29 +00:00
parent 20d02d35e4
commit 7208f34e68

View file

@ -722,6 +722,12 @@ static int lib_pSpawnLockOn(lua_State *L)
visual->flags2 |= MF2_DONTDRAW;
visual->drawonlyforplayer = player; // Hide it from the other player in splitscreen, and yourself when spectating
P_SetMobjStateNF(visual, state);
// This is also handled in P_SceneryThinker, but we want to set it here
// so we dont get any weird interp. lag as it properly scales -luigi budd
P_SetScale(visual, lockon->scale, false);
visual->destscale = lockon->destscale;
visual->old_scale = lockon->old_scale;
}
return 0;
}