Sniper rifle added, bullet impact mesh added. Only the RL remains.
Headshots added/tweaked, and made compatible with the future announcer add-on.
This commit is contained in:
parent
1b95d4219b
commit
e6420e16be
22 changed files with 318 additions and 28 deletions
|
|
@ -76,9 +76,14 @@ Class Razor2 : Actor
|
|||
A_SetAngle(atan2(dir.y,dir.x));
|
||||
A_SetPitch(asin(-dir.z));
|
||||
}
|
||||
override int SpecialMissileHit( Actor victim )
|
||||
{
|
||||
if ( pos.z > victim.pos.z+victim.height*0.8 ) DamageType = 'Decapitated';
|
||||
return -1;
|
||||
}
|
||||
override int DoSpecialDamage( Actor target, int damage, Name damagetype )
|
||||
{
|
||||
if ( pos.z > target.pos.z+target.height*0.8 ) damage *= 3;
|
||||
if ( pos.z > target.pos.z+target.height*0.8 ) damage *= 2;
|
||||
if ( !target.bNOBLOOD )
|
||||
{
|
||||
target.SpawnBlood(pos,AngleTo(target),damage);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue