FightStyles and Realistic Damage
#1

I'm currently using a realistic damage system on my server, at the same time players can have different fight styles and can train to learn these fight styles.

However, when a player has a fight style other than "normal" (fist fighting), it takes NO armor, if a player has armor.

Was wondering if anyone had some ideas or a way to fix this.
Reply
#2

hmm.... i think something like..
pawn Код:
if( GetPlayerFightingStyle(playerid) ==  FIGHT_STYLE_BOXING)
  {
             new Float:Armour;
            new Float:Health
              GetPlayerHealth(damagedid,Health);
            GetPlayerArmour(damagedid,Armour);
            if(Armour > 0) return Armour --;
             if(Armour == 0) return Health--;
           return 1;
   }
add this is to OnPlayerGiveDamage,or OnPlayerUpdate and switch FIGT_STYLE_BOXING, ( above) to the specific type... you want to
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)