#ifdef SVQC
void spawnfunc_weapon_tuba(void) { weapon_defaultspawnfunc(WEP_TUBA); }
-float W_Tuba_HasPlayed(entity pl, string melody, float instrument, float ignorepitch, float mintempo, float maxtempo)
+bool W_Tuba_HasPlayed(entity pl, string melody, int instrument, bool ignorepitch, float mintempo, float maxtempo)
{
float i, j, mmin, mmax, nolength;
float n = tokenize_console(melody);
remove(self);
}
-float W_Tuba_GetNote(entity pl, float hittype)
+int W_Tuba_GetNote(entity pl, int hittype)
{
float movestate = 5;
if (pl.movement.x < 0) movestate -= 3;
if (pl.movement.y < 0) movestate -= 1;
else if (pl.movement.y > 0) movestate += 1;
- float note = 0;
+ int note = 0;
switch(movestate)
{
// layout: originally I wanted
return note;
}
-float W_Tuba_NoteSendEntity(entity to, float sf)
+bool W_Tuba_NoteSendEntity(entity to, int sf)
{
- float f;
+ int f;
msg_entity = to;
if(!sound_allowed(MSG_ONE, self.realowner))
}
}
-float W_Tuba(float req)
+bool W_Tuba(int req)
{
switch(req)
{
else
self.BUTTON_ATCK2 = 1;
}
-
+
return true;
}
case WR_THINK:
self = oldself;
}
}
-
+
return true;
}
case WR_INIT:
precache_model("models/weapons/h_akordeon.iqm");
precache_model("models/weapons/v_kleinbottle.md3");
precache_model("models/weapons/h_kleinbottle.iqm");
- TUBA_SETTINGS(WEP_SKIP_CVAR, WEP_SET_PROP)
+ TUBA_SETTINGS(WEP_SKIP_CVAR, WEP_SET_PROP);
return true;
}
case WR_SETUP:
self.weaponentity.state = WS_INUSE;
weapon_thinkf(WFRAME_RELOAD, 0.5, w_ready);
}
-
+
return true;
}
case WR_CHECKAMMO1:
}
case WR_CONFIG:
{
- TUBA_SETTINGS(WEP_CONFIG_WRITE_CVARS, WEP_CONFIG_WRITE_PROPS)
+ TUBA_SETTINGS(WEP_CONFIG_WRITE_CVARS, WEP_CONFIG_WRITE_PROPS);
return true;
}
case WR_SUICIDEMESSAGE:
}
#endif
#ifdef CSQC
-float W_Tuba(float req)
+bool W_Tuba(int req)
{
// nothing to do here; particles of tuba are handled differently
// WEAPONTODO