Advertisement
Guest User

Dicker Hodensack

a guest
Mar 23rd, 2019
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. ["Force Heal"] = {
  2. name = "Macht Heilung",
  3. icon = "H",
  4. image = "wos/forceicons/heal",
  5. target = 1,
  6. description = "Heilt ein Ziel.",
  7. action = function( self )
  8. if ( self:GetForce() < 10 ) then return end
  9. local foundents = 0
  10.  
  11. for k, v in pairs( self:SelectTargets( 1 ) ) do
  12. if ( !IsValid( v ) ) then continue end
  13. foundents = foundents + 1
  14. local ed = EffectData()
  15. ed:SetOrigin( self:GetSaberPosAng() )
  16. ed:SetEntity( v )
  17. util.Effect( "rb655_force_heal", ed, true, true )
  18. v:SetHealth( math.Clamp( v:Health() + 25, 0, v:GetMaxHealth() ) )
  19. end
  20.  
  21. if ( foundents > 0 ) then
  22. self:SetForce( self:GetForce() - 3 )
  23. end
  24. self.Owner:SetNW2Float( "wOS.ForceAnim", CurTime() + 0.25 )
  25. self:SetNextAttack( 0.25 )
  26. end
  27. },
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement