.float switchingweapon; // weapon currently being switched to (is copied from switchweapon once switch is possible)
.string weaponname; // name of .weapon
+// WEAPONTODO
.float autoswitch;
-float weapon_action(float wpn, float wrequest);
+//float weapon_action(float wpn, float wrequest);
float client_hasweapon(entity cl, float wpn, float andammo, float complain);
void w_clear();
void w_ready();
// generic weapons table
// TODO should they be macros instead?
-float weapon_action(float wpn, float wrequest)
-{
- return (get_weaponinfo(wpn)).weapon_func(wrequest);
-}
+//float weapon_action(float wpn, float wrequest)
+//{
+// return (get_weaponinfo(wpn)).weapon_func(wrequest);
+//}
.float savenextthink;
void thrown_wep_think()
float internalteam;
void weapon_defaultspawnfunc(float wpn);
+
+#define WEP_ACTION(wpn,wrequest) (get_weaponinfo(wpn)).weapon_func(wrequest)
+#define weapon_action(wpn,wrequest) (get_weaponinfo(wpn)).weapon_func(wrequest)