Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ["Force Heal"] = {
- name = "Macht Heilung",
- icon = "H",
- image = "wos/forceicons/heal",
- target = 1,
- description = "Heilt ein Ziel.",
- action = function( self )
- if ( self:GetForce() < 10 ) then return end
- local foundents = 0
- for k, v in pairs( self:SelectTargets( 1 ) ) do
- if ( !IsValid( v ) ) then continue end
- foundents = foundents + 1
- local ed = EffectData()
- ed:SetOrigin( self:GetSaberPosAng() )
- ed:SetEntity( v )
- util.Effect( "rb655_force_heal", ed, true, true )
- v:SetHealth( math.Clamp( v:Health() + 25, 0, v:GetMaxHealth() ) )
- end
- if ( foundents > 0 ) then
- self:SetForce( self:GetForce() - 3 )
- end
- self.Owner:SetNW2Float( "wOS.ForceAnim", CurTime() + 0.25 )
- self:SetNextAttack( 0.25 )
- end
- },
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement