Skip to content

Commit fbe1bed

Browse files
authored
Remove cmd argument from flex/eyetarget functions (#3204)
1 parent 928f14b commit fbe1bed

File tree

1 file changed

+6
-6
lines changed
  • lua/entities/gmod_wire_expression2/core/custom

1 file changed

+6
-6
lines changed

lua/entities/gmod_wire_expression2/core/custom/prop.lua

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1345,19 +1345,19 @@ end
13451345
__e2setcost(10)
13461346

13471347
e2function void entity:setEyeTarget(vector pos)
1348-
if not ValidAction(self, this, "eyetarget") then return end
1348+
if not ValidAction(self, this) then return end
13491349
this:SetEyeTarget(pos)
13501350
end
13511351

13521352
e2function void entity:setFlexWeight(number flex, number weight)
1353-
if not ValidAction(self, this, "flexweight" .. flex) then return end
1353+
if not ValidAction(self, this) then return end
13541354
this:SetFlexWeight(flex, weight)
13551355
end
13561356

13571357
__e2setcost(30)
13581358

13591359
e2function void entity:setEyeTargetLocal(vector pos)
1360-
if not ValidAction(self, this, "eyetarget") then return end
1360+
if not ValidAction(self, this) then return end
13611361
if not this:IsRagdoll() then
13621362
local attachment = this:GetAttachment(this:LookupAttachment("eyes"))
13631363
if attachment then
@@ -1368,7 +1368,7 @@ e2function void entity:setEyeTargetLocal(vector pos)
13681368
end
13691369

13701370
e2function void entity:setEyeTargetWorld(vector pos)
1371-
if not ValidAction(self, this, "eyetarget") then return end
1371+
if not ValidAction(self, this) then return end
13721372
if this:IsRagdoll() then
13731373
local attachment = this:GetAttachment(this:LookupAttachment("eyes"))
13741374
if attachment then
@@ -1383,13 +1383,13 @@ __e2setcost(20)
13831383
e2function void entity:setFlexWeight(string flex, number weight)
13841384
flex = this:GetFlexIDByName(flex)
13851385
if flex then
1386-
if not ValidAction(self, this, "flexweight" .. flex) then return end
1386+
if not ValidAction(self, this) then return end
13871387
this:SetFlexWeight(flex, weight)
13881388
end
13891389
end
13901390

13911391
e2function void entity:setFlexScale(number scale)
1392-
if not ValidAction(self, this, "flexscale") then return end
1392+
if not ValidAction(self, this) then return end
13931393
this:SetFlexScale(scale)
13941394
end
13951395

0 commit comments

Comments
 (0)