Let Lua access spectator mobjs
Compare changes
+ 5
− 1
@@ -97,6 +97,10 @@ static int player_get(lua_State *L)
@@ -396,7 +400,7 @@ static int player_set(lua_State *L)
This just adds a player.realmo
field which returns the player's mobj even if they are spectating.
Ideally this would be the default behaviour of player.mo
, but changing that would break many scripts so I made it a separate field instead.