#ifdef SVQC
.float modelscale;
void misc_laser_aim()
-{
+{SELFPARAM();
vector a;
if(self.enemy)
{
}
void misc_laser_init()
-{
+{SELFPARAM();
if(self.target != "")
self.enemy = find(world, targetname, self.target);
}
.entity pusher;
void misc_laser_think()
-{
+{SELFPARAM();
vector o;
entity oldself;
entity hitent;
}
float laser_SendEntity(entity to, float fl)
-{
+{SELFPARAM();
WriteByte(MSG_ENTITY, ENT_CLIENT_LASER);
fl = fl - (fl & 0xF0); // use that bit to indicate finite length laser
if(self.spawnflags & 2)
damage per second (-1 for a laser that kills immediately)
*/
void laser_use()
-{
+{SELFPARAM();
self.state = !self.state;
self.SendFlags |= 4;
misc_laser_aim();
}
void laser_reset()
-{
+{SELFPARAM();
if(self.spawnflags & 1)
self.state = 1;
else
}
void spawnfunc_misc_laser()
-{
+{SELFPARAM();
if(self.mdl)
{
if(self.mdl == "none")
class(Laser) .float modelscale; // scaling factor of the dlight
void Draw_Laser()
-{
+{SELFPARAM();
if(!self.state)
return;
InterpolateOrigin_Do();
}
void Ent_Laser()
-{
+{SELFPARAM();
InterpolateOrigin_Undo();
// 30 bytes, or 13 bytes for just moving