• Print

Author Topic: ULX Physgun freeze - FIXED - UPDATED  (Read 41148 times)

0 Members and 1 Guest are viewing this topic.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: ULX Physgun freeze - FIXED - UPDATED
« Reply #15 on: August 03, 2015, 08:18:32 pm »
I get this Script Error when freezing somebody..
Seems the function he uses exists in ULib only.
Likely, when placing in autorun, it's loading before ULib does.
Try this .. take your ulxphysgun.lua file you created from the code above and move it to <gmod server>/addons/ulx/lua/ulx/modules/
No guarantee, but that will increase your chances of it working.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Jamster

  • Newbie
  • *
  • Posts: 9
  • Karma: 1
  • Oh... Hi :)
    • http://2swag4you.net
Re: ULX Physgun freeze - FIXED - UPDATED
« Reply #16 on: January 28, 2016, 12:04:16 pm »
Apologies for the slight necro, but, tested this on my server and it is proven it works being placed in this path ( <gmod server>/addons/ulx/lua/ulx/modules/ ) with no script errors. Only minor change I made to it was changing move type

Code: Lua
  1.         if( ent:IsPlayer() ) then                          
  2.                 ent:SetMoveType(pl:KeyDown(IN_ATTACK2) and MOVETYPE_NONE or MOVETYPE_WALK)

Then it removes the "noclip" look :)

Offline lcpdfr

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
Re: ULX Physgun freeze - FIXED - UPDATED
« Reply #17 on: January 31, 2016, 05:03:25 pm »
Pretty nice script ! but i got this error in console:

[ERROR] addons/ulx/lua/ulx/modules/ulxphysgun.lua:27: bad argument #1 to 'insert' (table expected, got nil)
1. insert - [C]:-1
2. fn - addons/ulx/lua/ulx/modules/ulxphysgun.lua:27
3. unknown - addons/ulib/lua/ulib/shared/hook.lua:110

Offline Jamster

  • Newbie
  • *
  • Posts: 9
  • Karma: 1
  • Oh... Hi :)
    • http://2swag4you.net
Re: ULX Physgun freeze - FIXED - UPDATED
« Reply #18 on: February 06, 2016, 03:19:48 pm »
Apologies for the slight necro, but, tested this on my server and it is proven it works being placed in this path ( <gmod server>/addons/ulx/lua/ulx/modules/ ) with no script errors. Only minor change I made to it was changing move type

Code: Lua
  1.         if( ent:IsPlayer() ) then                          
  2.                 ent:SetMoveType(pl:KeyDown(IN_ATTACK2) and MOVETYPE_NONE or MOVETYPE_WALK)

Then it removes the "noclip" look :)

Read this. Put it in this location and it will be fine.

Offline lcpdfr

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
Re: ULX Physgun freeze - FIXED - UPDATED
« Reply #19 on: February 08, 2016, 12:11:40 am »
Hi Jamster thanks for the help, tried, but still the same error... but the error is situated in the server console...
« Last Edit: February 08, 2016, 12:15:29 am by lcpdfr »

Offline never2nv

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
  • An amazingly crappy indie developer
    • Flex Gaming Network
Re: ULX Physgun freeze - FIXED - UPDATED
« Reply #20 on: February 09, 2016, 02:42:22 am »
Hi Jamster thanks for the help, tried, but still the same error... but the error is situated in the server console...

Can confirm it does give this error, location has nothing to do with it. The error happens whenever you freeze someone :p but nonetheless nothing truly breaks (as far as I know) and works perfectly.

Offline LuaTenshi

  • Hero Member
  • *****
  • Posts: 545
  • Karma: 47
  • Just your ordinary moon angel!
    • Mirai.Red
Re: ULX Physgun freeze - FIXED - UPDATED
« Reply #21 on: February 09, 2016, 02:52:08 pm »
I actually made my own updated version of this, but never released it outside of pastebin. http://pastebin.com/raw/zAxALYLS
« Last Edit: February 09, 2016, 02:56:51 pm by LuaTenshi »
I cry every time I see that I am not a respected member of this community.

  • Print