Garry's Mod

Garry's Mod

Star Wars Lightsabers
Mexwell 2017 年 2 月 28 日 上午 3:46
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?
< >
正在显示第 1 - 9 条,共 9 条留言
[Osiris] StarLight 2017 年 3 月 1 日 上午 12:06 
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 2017 年 3 月 1 日 上午 3:55 
引用自 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
[Osiris] StarLight 2017 年 3 月 1 日 上午 7:37 
Ok it means the code needs to be changed it works like that
Mexwell 2017 年 3 月 1 日 下午 12:17 
引用自 CSStarLight ∑
Ok it means the code needs to be changed it works like that
OK can you help me to change the code
[Osiris] StarLight 2017 年 3 月 1 日 下午 11:49 
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 2017 年 3 月 2 日 上午 5:20 
引用自 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?
[Osiris] StarLight 2017 年 3 月 2 日 上午 7:42 
for force heal xD the
the thing which looks something like that in the weapon_lightsaber.lua file


{
name = "Force Heal"

}
Mexwell 2017 年 3 月 2 日 上午 7:57 
引用自 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
最后由 Mexwell 编辑于; 2017 年 3 月 2 日 上午 7:58
[Osiris] StarLight 2017 年 3 月 2 日 上午 7:59 
thanks
i have not teste it but try this http://pastebin.com/xtN676v5
< >
正在显示第 1 - 9 条,共 9 条留言
每页显示数: 1530 50