Resource icon

VScript Weapon ID enum and helper functions v2

fiend

L1: Registered
Jun 7, 2020
40
7
fiend submitted a new 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 enumerator eWeaponId, 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, typing eWeaponId.TF_WEAPON_ROCKETLAUNCHER will give you the...

Read more about this resource...