}
void W_Tuba_NoteOff(void)
-{
+{SELFPARAM();
// we have a note:
// on: self.spawnshieldtime
// off: time
}
bool W_Tuba_NoteSendEntity(entity to, int sf)
-{
+{SELFPARAM();
int f;
msg_entity = to;
}
void W_Tuba_NoteThink(void)
-{
+{SELFPARAM();
float dist_mult;
float vol0, vol1;
vector dir0, dir1;
}
void W_Tuba_NoteOn(float hittype)
-{
+{SELFPARAM();
vector o;
float n;
{
if(self.tuba_note.cnt != n || self.tuba_note.tuba_instrument != self.tuba_instrument)
{
- entity oldself = self;
- self = self.tuba_note;
- W_Tuba_NoteOff();
- self = oldself;
+ SELFCALL(self.tuba_note, W_Tuba_NoteOff());
+ SELFCALL_DONE();
}
}
}
bool W_Tuba(int req)
-{
+{SELFPARAM();
switch(req)
{
case WR_AIM:
{
if(!self.BUTTON_ATCK && !self.BUTTON_ATCK2)
{
- entity oldself = self;
- self = self.tuba_note;
- W_Tuba_NoteOff();
- self = oldself;
+ SELFCALL(self.tuba_note, W_Tuba_NoteOff());
+ SELFCALL_DONE();
}
}
#endif
#ifdef CSQC
bool W_Tuba(int req)
-{
+{SELFPARAM();
// nothing to do here; particles of tuba are handled differently
// WEAPONTODO