0 Members and 2 Guests are viewing this topic.
if (Shooter.ID<>Victim.ID) and (Shooter.Team<>Victim.Team) and (Shooter.Team<>5) and (Victim.Health-Damage<=0) then begin ShootSpeed:=(sqrt((Map.Bullets[Bullet].VelX*Map.Bullets[Bullet].VelX)+(Map.Bullets[Bullet].VelY*Map.Bullets[Bullet].VelY))/100); if (Round((GetDmg(Map.Bullets[Bullet].GetOwnerWeaponId)*ShootSpeed*1.15))=Damage)then begin DrawTextEx(Shooter.ID,108,'HEADSHOOT!',400,$F15D70,0.055,12,385); DrawTextEx(Shooter.ID,109,'Damage: '+inttostr(damage)+', DamageCalculate: '+inttostr(Round((GetDmg(Map.Bullets[Bullet].GetOwnerWeaponId)*ShootSpeed*1.15))),400,$F15D70,0.055,12,365); end; if (Round((GetDmg(Map.Bullets[Bullet].GetOwnerWeaponId)*ShootSpeed))=Damage) then begin DrawTextEx(Shooter.ID,108,'BODY!',400,$F15D70,0.055,12,385); DrawTextEx(Shooter.ID,109,'Damage: '+inttostr(damage)+', DamageCalculate: '+inttostr(Round((GetDmg(Map.Bullets[Bullet].GetOwnerWeaponId)*ShootSpeed))),400,$F15D70,0.055,12,365); end; if (Round((GetDmg(Map.Bullets[Bullet].GetOwnerWeaponId)*ShootSpeed*0.9))=Damage) then begin DrawTextEx(Shooter.ID,108,'LEGS!',400,$F15D70,0.055,12,385); DrawTextEx(Shooter.ID,109,'Damage: '+inttostr(damage)+', DamageCalculate: '+inttostr(Round((GetDmg(Map.Bullets[Bullet].GetOwnerWeaponId)*ShootSpeed*0.9))),400,$F15D70,0.055,12,365); end; end;
//Barret Headshotif (Map.Bullets[BulletId].GetOwnerWeaponId=8) and (Damage=Trunc(sqrt(Map.Bullets[BulletId].VelX*Map.Bullets[BulletId].VelX+Map.Bullets[BulletId].VelY*Map.Bullets[BulletId].VelY)*5.1175)) thenShooter.WriteConsole('Headshot!',$00FF00);//5.1175 because: default Barret dmg=445 | 445/100=4.45 | 4.45*1.15=5.1175