if(d>2)
if(random()<0.6)
pointparticles(particleeffectnum("onslaught_generator_gib_flame"), self.origin, '0 0 0', 1);
-};
+}
void ons_throwgib(vector v_from, vector v_to, string smodel, float f_lifetime, float b_burn)
{
}
else
SUB_SetFade(gib, gib.giblifetime, 2);
-};
+}
void onslaught_updatelinks()
{
dprint("--- game over ---\n");
else
dprint("--- done updating links ---\n");
-};
+}
float onslaught_controlpoint_can_be_linked(entity cp, float t)
{
else if (overtime_msg_time)
overtime_msg_time = 0;
}
-};
+}
void onslaught_generator_ring_spawn(vector org)
{
modeleffect_spawn("models/onslaught/shockwavetransring.md3", 0, 0, org, '0 0 0', '0 0 0', '0 0 0', 0, -16, 0.1, 1.25, 0.25);
-};
+}
void onslaught_generator_ray_think()
{
self.scale += 0.2;
self.count +=1;
-};
+}
void onslaught_generator_ray_spawn(vector org)
{
e.scale = random() * 5 + 8;
e.think = onslaught_generator_ray_think;
e.nextthink = time + 0.05;
-};
+}
void onslaught_generator_shockwave_spawn(vector org)
{
shockwave_spawn("models/onslaught/shockwave.md3", org, -64, 0.75, 0.5);
-};
+}
void onslaught_generator_damage_think()
{
}
else
pointparticles(particleeffectnum("torch_small"), self.origin + randompos('-60 -60 -20', '60 60 60'), '0 0 0', 1);
-};
+}
void onslaught_generator_damage_spawn(entity gd_owner)
{
setorigin(e, gd_owner.origin);
e.think = onslaught_generator_damage_think;
e.nextthink = time+1;
-};
+}
void onslaught_generator_deaththink()
{
self.nextthink = time + 0.05;
self.count = self.count - 1;
-};
+}
void onslaught_generator_damage(entity inflictor, entity attacker, float damage, float deathtype, vector hitloc, vector force)
{
if(random() < damage/200+0.2)
if(random() < 0.5)
ons_throwgib(hitloc + '0 0 20', randomvec()*360, "models/onslaught/gen_gib1.md3", 5, FALSE);
-};
+}
// update links after a delay
void onslaught_generator_delayed()
// now begin normal thinking
self.think = onslaught_generator_think;
self.nextthink = time;
-};
+}
string onslaught_generator_waypointsprite_for_team(entity e, float t)
{
onslaught_updatelinks();
self.reset = onslaught_generator_reset;
-};
+}
.float waslinked;
.float cp_bob_spd;
remove(self);
}
-};
+}
void onslaught_controlpoint_icon_think()
{
else if (random() > 0.5)
sound(self, CH_PAIN, "onslaught/ons_spark2.wav", VOL_BASE, ATTN_NORM);
}
-};
+}
void onslaught_controlpoint_icon_buildthink()
{
if(random() < 0.9 - self.health / self.max_health)
pointparticles(particleeffectnum("rage"), self.origin + 10 * randomvec(), '0 0 -1', 1);
-};
+}
self.colormap = e.colormap;
WaypointSprite_UpdateBuildFinished(self.sprite, time + (e.max_health - e.health) / (e.count / sys_frametime));
onslaught_updatelinks();
-};
+}
void onslaught_controlpoint_reset()
{
onslaught_updatelinks();
self.reset = onslaught_controlpoint_reset;
-};
+}
float onslaught_link_send(entity to, float sendflags)
{
objerror("target and target2 must be set\n");
InitializeEntity(self, onslaught_link_delayed, INITPRIO_FINDTARGET);
Net_LinkEntity(self, FALSE, 0, onslaught_link_send);
-};
+}