mirror of
https://git.code.sf.net/p/quake/game-source
synced 2024-11-29 07:02:29 +00:00
22 lines
433 B
C++
22 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;
|
||
|
};
|