SkinN wrote:Bur really you can check the players last input?! That's awesome!
Yeah,
PlayerInfo.get_last_user_command returns a
BotCmd instance so you can listen player's buttons, movements, impulses, weapon selections (into the HUD), etc. It gives you the same informations a
CUserCmd provides except that you can access it without sig-scanning. The only inconvenience is that you get access to it "after" the server actually treated the informations so you cannot modify anything - this is for read-only purpose.