OtherChen
The other one
1: Can Lua read or write the game's built-in cvars like "friendlyfire" and "showfps"? Alternatively, can it read the literal console output like "friendlyfire is 'On' default is 'Off'"? I'd like to make non-damaging weapons affect teammates only if friendly fire is enabled, for example.
2: The wiki shows a userdata structure called "camera_t," but doesn't explain how to access any cameras in a map. How would I access a camera that's bound to a player? "camera", "player.camera", "player", "player.mo", and "player.mo.camera" all don't exist or don't refer to a camera.
2: The wiki shows a userdata structure called "camera_t," but doesn't explain how to access any cameras in a map. How would I access a camera that's bound to a player? "camera", "player.camera", "player", "player.mo", and "player.mo.camera" all don't exist or don't refer to a camera.