self.projectiledeathtype,
other
);
-
+
remove(self);
}
setorigin(missile, w_shotorg);
setsize(missile, '0 0 0', '0 0 0');
-
+
W_SetupProjVelocity_Explicit(
missile,
w_shotdir,
missile.touch = W_Blaster_Touch;
missile.flags = FL_PROJECTILE;
missile.missile_flags = MIF_SPLASH;
- missile.projectiledeathtype = atk_deathtype;
+ missile.projectiledeathtype = atk_deathtype;
missile.think = W_Blaster_Think;
missile.nextthink = time + atk_delay;
return true;
}
-
+
case WR_THINK:
{
if(self.BUTTON_ATCK)
}
return true;
}
-
- case WR_INIT:
+
+ case WR_INIT:
{
precache_model("models/weapons/g_laser.md3");
precache_model("models/weapons/v_laser.md3");
BLASTER_SETTINGS(WEP_SKIP_CVAR, WEP_SET_PROP);
return true;
}
-
+
case WR_SETUP:
{
self.ammo_field = ammo_none;
return true;
}
-
+
case WR_CHECKAMMO1:
case WR_CHECKAMMO2:
{
return true; // laser has infinite ammo
}
-
+
case WR_CONFIG:
{
BLASTER_SETTINGS(WEP_CONFIG_WRITE_CVARS, WEP_CONFIG_WRITE_PROPS);
return true;
}
-
+
case WR_SUICIDEMESSAGE:
{
return WEAPON_BLASTER_SUICIDE;
}
-
+
case WR_KILLMESSAGE:
{
return WEAPON_BLASTER_MURDER;
if(!w_issilent) { sound(self, CH_SHOTS, "weapons/laserimpact.wav", VOL_BASE, ATTN_NORM); }
return true;
}
-
+
case WR_INIT:
{
precache_sound("weapons/laserimpact.wav");