fiend submitted a new resource:
Weapon ID enum and helper functions - vscript to make working with Weapon IDs easier
Read more about this resource...
Weapon ID enum and helper functions - vscript to make working with Weapon IDs easier
Some game events, such as player_hurt have a parameter for "weaponid" but there's no enumerator in the game that tells you what weapon is what.
This file adds the enumeratoreWeaponId
, which contains the internal weapon IDs that the game uses, ripped straight from the game.
By default, the constants in the enumerator are added to the root table (NOT the constant table), because of this, typingeWeaponId.TF_WEAPON_ROCKETLAUNCHER
will give you the...
Read more about this resource...