Commands/Lua
Reference for console commands, Lua hooks and Lua commands in CS2D.
- Console Commands are entered in console, executed with key-binds, cfg-files or with Lua parse
- Lua Hooks execute Lua when events occur - some have a return value which can change the game behavior
- Lua Commands are used to retrieve game data or to perform actions in Lua scripts
CS2D Console Commands
mp_infammoCategories
Parameters
- infinite ammo (0/1): is ammo infinite?
Info
Make ammunition for all firearms (not grenades!) infinite (1) or finite (0).
It will replace the carried-ammo-display in your HUD with an infinity-symbol.
Note: This only affects your spare/carried ammo and not the ammo in magazine. You still have to reload whenever your magazine is empty.
Note: If you want infinite ammo WITHOUT reloading you have to use Lua and setammo instead!
Lua Hooks
Lua Commands
Categories
Parameters
- infinite ammo (0/1): is ammo infinite?
Info
Make ammunition for all firearms (not grenades!) infinite (1) or finite (0).
It will replace the carried-ammo-display in your HUD with an infinity-symbol.
It will replace the carried-ammo-display in your HUD with an infinity-symbol.
Note: This only affects your spare/carried ammo and not the ammo in magazine. You still have to reload whenever your magazine is empty.
Note: If you want infinite ammo WITHOUT reloading you have to use Lua and setammo instead!



