19 WEAPONFL_CHANGED_MODELINDEX,
20 WEAPONFL_CHANGED_ORIGIN,
21 WEAPONFL_CHANGED_ANGLES,
22 WEAPONFL_CHANGED_VELOCITY_X,
23 WEAPONFL_CHANGED_VELOCITY_Y,
24 WEAPONFL_CHANGED_VELOCITY_Z,
25 WEAPONFL_CHANGED_ANGULARVELOCITY,
26 WEAPONFL_CHANGED_SIZE,
27 WEAPONFL_CHANGED_FLAGS,
28 WEAPONFL_CHANGED_SOLID,
29 WEAPONFL_CHANGED_FRAME,
30 WEAPONFL_CHANGED_SKIN,
31 WEAPONFL_CHANGED_MOVETYPE,
32 WEAPONFL_CHANGED_EFFECTS,
33 WEAPONFL_CHANGED_BODY,
34 WEAPONFL_CHANGED_SCALE,
35 WEAPONFL_CHANGED_ENTITYDEF,
36 WEAPONFL_CHANGED_CLIP,
37 WEAPONFL_CHANGED_CHAIN,
38 WEAPONFL_CHANGED_STATE
90 virtual void AddedToInventory(
void);
91 virtual void RemovedFromInventory(
void);
95 virtual void Spawned(
void);
96 virtual void SpawnKey(
string,
string);
97 virtual void Save(
float);
98 virtual void Restore(
string,
string);
99 virtual void EvaluateEntity(
void);
100 virtual float SendEntity(entity,
float);
104 virtual void ClientFX(
bool);
105 virtual void PredictPreFrame(
void);
106 virtual void PredictPostFrame(
void);
107 virtual void ReceiveEntity(
float,
float);
108 virtual void ReceiveEvent(
float);
111 virtual bool IsWeapon(
void);
112 virtual bool HasReserveAmmo(
void);
115 virtual void Draw(
void);
117 virtual void Holster(
void);
119 virtual void PrimaryAttack(
void);
121 virtual void SecondaryAttack(
void);
123 virtual void Reload(
void);
125 virtual void Release(
void);
127 virtual void UpdateGUI(
void);
129 nonvirtual
void SetViewModel(
string);
130 nonvirtual
void SetWorldModel(
string);
131 nonvirtual
void SetPlayerModel(
string);
132 nonvirtual
void SetWeaponFrame(
float);
134 virtual void SetAttackNext(
float);
135 virtual void SetIdleNext(
float);
136 virtual bool CanFire(
void);
137 virtual bool CanIdle(
void);
138 virtual bool UseAmmo(
string);
141 virtual void FiredWeapon(
string);
143 virtual void ReleasedWeapon(
string);
146 virtual void SwitchedToWeapon(
void);
148 virtual void SwitchedFromWeapon(
void);
151 virtual void UpdateFireInfoCache(
void);
154 nonvirtual
void SwitchFireInfo(
string);
155 nonvirtual
bool DetonateDef(
string);
156 nonvirtual
void Attack(
string);
160 nonvirtual
void _SwitchedToCallback(
void);
162 nonvirtual
void _SwitchedFromCallback(
void);
164 nonvirtual
void _CacheWeaponDefVariables(
void);
167 nonvirtual
void _ReloadFinished(
void);
171 string m_strWeaponViewModel;
172 string m_strWeaponPlayerModel;
173 string m_strWeaponScript;
174 string m_strAmmoType;
175 bool m_bAmmoRequired;
176 int m_iClipStartSize;
177 string m_strFlashShader;
178 string m_strFlashModel;
179 vector m_vecFlashColor;
180 float m_flFlashRadius;
181 string m_strDropItemDef;
182 string m_strSmokeParticle;
183 bool m_bSmokeContinous;
190 string m_primaryFireInfo;
191 string m_secondaryFireInfo;
192 int m_primaryAmmoType;
193 int m_secondaryAmmoType;
194 float m_muzzleModelIndex;
195 float m_altMuzzleModelIndex;
197 float m_flPrimedFuse;
198 float m_flTriggerDelay;
201 bool m_bRemoveOnEmpty;
202 string m_strLastFireInfo;
203 float m_jointTrailWorld;
204 float m_jointTrailView;
208 string m_fiDetonateOnFire;
209 float m_fiMeleeRange;
210 vector m_fiPunchAngle;
215 bool m_fiAmmoRequired;
218 string m_fiOnRelease;
219 bool m_fiWillRelease;
221 string m_fiSndFireLoop;
nsweapon_event_t
Definition: NSWeapon.h:50
@ WEPEVENT_RELOADED
Definition: NSWeapon.h:52
@ WEPEVENT_FIRED
Definition: NSWeapon.h:51
nsweapon_state_t
Definition: NSWeapon.h:42
@ WEAPONSTATE_RELOAD_START
Definition: NSWeapon.h:44
@ WEAPONSTATE_IDLE
Definition: NSWeapon.h:43
@ WEAPONSTATE_RELOAD
Definition: NSWeapon.h:45
@ WEAPONSTATE_RELOAD_END
Definition: NSWeapon.h:46
typedef enumflags
Definition: NSWeapon.h:18
This entity class represents inventory items, weapons.
Definition: NSItem.h:68
This entity class represents weapon based items.
Definition: NSWeapon.h:86
bool isWeaponClipOnly(string weaponDef)
Definition: mapC_weapons.h:81
float weaponFireTime(string weaponDef)
Definition: mapC_weapons.h:60
bool weaponIsSemiAuto(string weaponDef)
Definition: mapC_weapons.h:46
string weaponType(string weaponDef)
Definition: mapC_weapons.h:25
bool isWeaponDetonationTimed(string weaponDef)
Definition: mapC_weapons.h:88
string weaponClass(string weaponDef)
Definition: mapC_weapons.h:74
int weaponClipSize(string weaponDef)
Definition: mapC_weapons.h:67
int weaponMaxAmmo(string weaponDef)
Definition: mapC_weapons.h:39
string weaponInventoryType(string weaponDef)
Definition: mapC_weapons.h:53
int weaponStartAmmo(string weaponDef)
Definition: mapC_weapons.h:32
#define NETWORKED_MODELINDEX(x)
Definition: defs.h:26
#define NETWORKED_INT(x)
Definition: defs.h:20
#define NETWORKED_FLOAT(x)
Definition: defs.h:21
#define NETWORKED_BOOL(x)
Definition: defs.h:25