so i'm trying to make fieldmedics get equal damage on FF, but their armour keeps absorbing it all:
and i dont really know how to add the clientvetskill to this correctly.
or is there a way to send the FF damage directly to health? bypass the armour (shieldabsorb)?
Code:
class ffRules extends GameRules;
function int NetDamage( int OriginalDamage, int Damage, pawn injured, pawn instigatedBy, vector HitLocation, out vector Momentum, class<DamageType> DamageType )
{
if ( injured.isa('kfhumanpawn') && instigatedby.isa('kfhumanpawn') && injured!=instigatedby)
{
instigatedby.takedamage((damage * 2.5), instigatedBy, hitlocation, momentum, damageType);
damage = damage;
return Damage;
}
//if person is fieldmedic, do 10x moredamage to get through medic armour
else if ( injured.isa('kfhumanpawn') && instigatedby.isa('kfhumanpawn(KFPlayerReplicationInfo(PlayerReplicationInfo).ClientVeteranSkill == Class'SRVetFieldMedic')') && injured!=instigatedby)
{
instigatedby.takedamage((damage * 125), instigatedBy, hitlocation, momentum, damageType);
damage = damage;
return Damage;
}
}
or is there a way to send the FF damage directly to health? bypass the armour (shieldabsorb)?
Last edited: