e_WpnFwds

Signature
enum e_WpnFwds { Fwd_Wpn_Spawn, /* This is called whenever a weapon entity is created. */ Fwd_Wpn_CanDeploy, /* Whether or not this weapon can be deployed. */ Fwd_Wpn_Deploy, /* Deploys a weapon. */ Fwd_Wpn_Idle, /* Displays the idle animation for the weapon. */ Fwd_Wpn_PrimaryAttack, /* Called when the main attack of a weapon is triggered. */ Fwd_Wpn_SecondaryAttack, /* Called when the secondary attack of a weapon is triggered. */ Fwd_Wpn_Reload, /* Called when the weapon is reloaded. */ Fwd_Wpn_CanHolster, /* Whether or not the weapon can be holstered. */ Fwd_Wpn_Holster, /* Holsters a weapon. */ Fwd_Wpn_IsUseable, /* Whether or not the weapon is usable. (has ammo, etc.) */ Fwd_Wpn_AddToPlayer, Fwd_Wpn_AddToPlayer2, Fwd_Wpn_ItemPostFrame, Fwd_Wpn_End };
Description

Forward params for all functions:

Parameters
  • iItem — Weapon's entity index.
  • iPlayer — Player index, owner of weapon.
  • iClip — Amount of ammo in weapon's clip.
  • iAmmo — Amount of ammo in backpack on a user for weapon.
Назад
Верх