Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Part 1 from LET_Projectile
- ///
- if (le->ref3) {
- /* Spawn blood particles (if defined) if actor(-body) was hit. Even if actor is dead. */
- /** @todo Special particles for stun attack (mind you that there is
- * electrical and gas/chemical stunning)? */
- if (le->fd->obj->dmgtype != csi.damStunGas)
- LE_ActorBodyHit(le->ref3, impact, le->angle);
- CL_ActorPlaySound(le->ref3, SND_HURT);
- }
- ///
- Part 2 from LE_AddProjectile
- ///
- /* Spawn blood particles (if defined) if actor(-body) was hit. Even if actor is dead. */
- /** @todo Special particles for stun attack (mind you that there is
- * electrical and gas/chemical stunning)? */
- if (leVictim) {
- if (fd->obj->dmgtype != csi.damStunGas)
- LE_ActorBodyHit(leVictim, impact, le->angle);
- if (fd->damage[0] > 0)
- CL_ActorPlaySound(leVictim, SND_HURT);
- }
- ///
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement