if(self.event_damage)
self.event_damage(thisdmg, w_deathtype, w_org, thisforce);
}
- DamageEffect(dmg, w_deathtype, species, self.entnum);
+ DamageEffect(dmg, w_deathtype, species, self.entnum - 1);
self = oldself;
entity head;
for(head = world; (head = find(head, classname, "damageeffect")); )
{
- if(head.team == entnumber - 1)
+ if(head.team == entnumber)
{
head.dmgpartnum = particleeffectnum(effectnum);
head.lifetime += life;
entity e;
e = spawn();
e.classname = "damageeffect";
- e.team = entnumber - 1;
+ e.team = entnumber;
e.dmgpartnum = particleeffectnum(effectnum);
e.lifetime = time + life;
e.think = DamageEffect_Think;
e.dmg_force = vlen(force);
e.velocity = force;
e.oldorigin_x = compressShortVector(e.velocity);
- e.species |= 8 * dmgowner.species; // gib type, ranges from 0 to 15
+ e.species |= 0; // to be fixed
Net_LinkEntity(e, FALSE, 0.2, Damage_DamageInfo_SendEntity);
}