Reference/Server_constants/Weapons_and_death_reasons
| Constant | Value | Meaning |
|---|---|---|
WEP_FIST | 0 | Fists |
WEP_BAT | 1 | Baseball bat |
WEP_COLT45 | 2 | Colt 45 pistol |
WEP_UZI | 3 | Uzi |
WEP_SHOTGUN | 4 | Shotgun |
WEP_AK47 | 5 | AK-47 |
WEP_M16 | 6 | M16 |
WEP_SNIPER | 7 | Sniper rifle |
WEP_ROCKETLAUNCHER | 8 | Rocket launcher |
WEP_FLAMETHROWER | 9 | Flamethrower |
WEP_MOLOTOV | 10 | Molotov cocktail |
WEP_GRENADE | 11 | Grenade |
WEP_BOMB | 12 | Detonator (remote bomb) |
WEP_VEHICLE | 16 | Death reason: run over/rammed |
WEP_EXPLOSION | 18 | Death reason: explosion |
WEP_DROWNED | 20 | Death reason: drowned |
WEP_FALL | 21 | Death reason: fall damage |
NoteA character holds 13 weapon slots, so the ids you can give with
SetWeapon are 0-12. 16 and above are only meaningful as *death reasons*.Categories: Server constants