Garry's Mod

Garry's Mod

Star Wars Lightsabers
Mexwell 28 Feb, 2017 @ 3:46am
Force Heal
Hello,
I have a problem with heal force.
I extracted it with Gmad Extractor then I put it on my server but when I want to get back from life with this power it did not work could you help me?
< >
Showing 1-9 of 9 comments
i don't know fully what your saying but
1. it does not work while you are dead
2. it only heals up to 100
Mexwell 1 Mar, 2017 @ 3:55am 
Originally posted by CSStarLight ∑:
i don't know fully what your saying but
1. it does not work while you are dead
2. it only heals up to 100
When I am above 100 life the heal strength does not work
Ok it means the code needs to be changed it works like that
Mexwell 1 Mar, 2017 @ 12:17pm 
Originally posted by CSStarLight ∑:
Ok it means the code needs to be changed it works like that
OK can you help me to change the code
yeah i don't have the version which robot has so can you send me that code its like a 30 second change you might need to change some code in a job.lua though
Mexwell 2 Mar, 2017 @ 5:20am 
Originally posted by CSStarLight ∑:
yeah i don't have the version which robot has so can you send me that code its like a 30 second change you might need to change some code in a job.lua though

Which files or codes should I send you?
for force heal xD the
the thing which looks something like that in the weapon_lightsaber.lua file


{
name = "Force Heal"

}
Mexwell 2 Mar, 2017 @ 7:57am 
Originally posted by CSStarLight ∑:
for force heal xD the
the thing which looks something like that in the weapon_lightsaber.lua file


{
name = "Force Heal"

}

name = "Force Heal",
icon = "H",
description = "Hold Mouse 2 to slowly heal yourself",
action = function( self )
if ( self:GetForce() < 1 --[[|| !self.Owner:IsOnGround()]] or self.Owner:Health() >= 100 or CLIENT ) then return end
self:SetForce( self:GetForce() - 1 )

self:SetNextAttack( 0.2 )

local ed = EffectData()
ed:SetOrigin( self.Owner:GetPos() )
util.Effect( "rb655_force_heal", ed, true, true )

self.Owner:SetHealth( self.Owner:Health() + 1 )
self.Owner:Extinguish()
end




Modify it for it to work thank you
Last edited by Mexwell; 2 Mar, 2017 @ 7:58am
thanks
i have not teste it but try this http://pastebin.com/xtN676v5
< >
Showing 1-9 of 9 comments
Per page: 1530 50