Advertisement
KrasimirTsvetkov

Untitled

Dec 6th, 2016
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. else if (CachedHealee != none && Instigator != none && Level.NetMode != NM_Client)
  2.         {
  3.             AdjustedLocation = Hitlocation;
  4.             AdjustedLocation.Z = (Hitlocation.Z - 0.15 * Instigator.collisionheight);
  5.             Spawn(class'KFWelderHitEffect',,, AdjustedLocation, rotator(HitLocation - StartTrace));          
  6.            
  7.             if (CachedHealee.ShieldStrength < ArmourRepairRateThreshold)
  8.                 WeldArmour(CachedHealee, FastArmourRepairRate);
  9.                 KFPlayerReplicationInfo(Instigator.PlayerReplicationInfo).Score += DoshForWelding);
  10.                 KFSteamStatsAndAchievements(KFPlayerController(KFHumanPawn(Instigator).Controller).SteamStatsAndAchievements).AddWeldingPoints(MyDamage);
  11.             else
  12.                 WeldArmour(CachedHealee, SlowArmourRepairRate);
  13.                 KFPlayerReplicationInfo(Instigator.PlayerReplicationInfo).Score += DoshForWelding);
  14.                             KFSteamStatsAndAchievements(KFPlayerController(KFHumanPawn(Instigator).Controller).SteamStatsAndAchievements).AddWeldingPoints(MyDamage);
  15.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement