Hey now I guess Lua has some more neat thingies:
Most important of all is the addition of the "PlayerCmd" hook. This Hook functions similar to BotTicCmd, taking player and cmd as args. Within this Hook, only 'cmd' may be altered and trying to alter anything else (or call certain functions) will error in a similar way as HUD rendering. This Hook in particular needs testing and thoughts to make sure that nothing will break from using it.
Here's a sample code for the Hook:
cmd.forwardmove = 50<<FRACBITS>>16 -- forces the player to always accelerate
P_Random() -- this errors.
end)```