Skip to content

Commit

Permalink
Remove cmd argument from flex/eyetarget functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Denneisk committed Dec 5, 2024
1 parent 79f1429 commit 7c6ba27
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lua/entities/gmod_wire_expression2/core/custom/prop.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1345,19 +1345,19 @@ end
__e2setcost(10)

e2function void entity:setEyeTarget(vector pos)
if not ValidAction(self, this, "eyetarget") then return end
if not ValidAction(self, this) then return end
this:SetEyeTarget(pos)
end

e2function void entity:setFlexWeight(number flex, number weight)
if not ValidAction(self, this, "flexweight" .. flex) then return end
if not ValidAction(self, this) then return end
this:SetFlexWeight(flex, weight)
end

__e2setcost(30)

e2function void entity:setEyeTargetLocal(vector pos)
if not ValidAction(self, this, "eyetarget") then return end
if not ValidAction(self, this) then return end
if not this:IsRagdoll() then
local attachment = this:GetAttachment(this:LookupAttachment("eyes"))
if attachment then
Expand All @@ -1368,7 +1368,7 @@ e2function void entity:setEyeTargetLocal(vector pos)
end

e2function void entity:setEyeTargetWorld(vector pos)
if not ValidAction(self, this, "eyetarget") then return end
if not ValidAction(self, this) then return end
if this:IsRagdoll() then
local attachment = this:GetAttachment(this:LookupAttachment("eyes"))
if attachment then
Expand All @@ -1383,13 +1383,13 @@ __e2setcost(20)
e2function void entity:setFlexWeight(string flex, number weight)
flex = this:GetFlexIDByName(flex)
if flex then
if not ValidAction(self, this, "flexweight" .. flex) then return end
if not ValidAction(self, this) then return end
this:SetFlexWeight(flex, weight)
end
end

e2function void entity:setFlexScale(number scale)
if not ValidAction(self, this, "flexscale") then return end
if not ValidAction(self, this) then return end
this:SetFlexScale(scale)
end

Expand Down

0 comments on commit 7c6ba27

Please sign in to comment.