logic_eventlistener_itemequip
Jump to navigation
Jump to search
This page should be checked/updated every so often for correctness or maintenance.
|
Code classes:
CLogicEventListenerItemEquip
CBaseEntity
(all ents)
logic_eventlistener_itemequip
is a point entity present in Counter-Strike: Global Offensive. It fires an output when a player switches to another weapon.
Keyvalues[edit | edit source]
- Weapon Type
(WeaponType)
<choices>
- Output will only fire if the weapon the player switched to is of this type.
- -1: Don't care
- 0: Knives
- 1: Pistol
- 2: Submachinegun
- 3: Rifle (any rifle except AWP, Scout, Autos)
- 4: Shotgun
- 5: Sniper Rifle (does not include AUG/SG)
- 6: Machinegun (Negev, M249)
- 7: C4
- 8:
Grenade- Actually the Zeus x27. - 9: (Not in FGD) Throwable Utility
- 10: (Not in FGD) Nothing?
- 11: (Not in FGD) Medi-Shot
- 12: (Not in FGD) Fists
- 13: (Not in FGD) Breach Charge
- 14: (Not in FGD) Bump Mine
- 15: (Not in FGD) Tablet
- 16: (Not in FGD) Misc melee (weapon_melee)
- 17: (Not in FGD) Shield
- 18: (Not in FGD) Zone Repulsor
Weapon Classname(WeaponClassname)
<string>
- Causes the output to never fire if specified.
- Start Enabled
(IsEnabled)
<boolean>
- Entity is active on spawn.
- Team Number
(TeamNum)
<choices>
- If set, will only fire its output if the player is on the specified team.
- -1: Don't care
- 2: Terrorists
- 3: CTs
Inputs[edit | edit source]
- Enable
- Enables the entity.
- Disable
- Disables the entity.
Outputs[edit | edit source]
- OnEventFired
- Fires when the player switches weapons.