game-source/klik/weapons/w_void.qc
Bill Currie 88c055ea3c <zinx> taniwha: FWIW, the code is officially donated to quakeforge :)
<taniwha> zinx: thanks :)

zinx' klik mod :)
2003-10-24 21:43:32 +00:00

21 lines
433 B
C++

#include "common.qh"
#include "weapon.qh"
/* WEAPON 0 void */
float(float action)
w_void = {
if (action == WEAPON_AMMO) {
return 0;
} else if (action == WEAPON_WEIGHT) {
return -10000;
} else if (action == WEAPON_SELECTABLE) {
return 1;
} else if (action == WEAPON_SELECT) {
self.weaponmodel = "";
self.weaponframe = 0;
self.mdl_mod &= ~MDL_MOD_WEP_MASK;
}
/* FIRE and INIT don't do a darn thing */
return 0;
};