ULX

Author Topic: Usergroup Noclip Speed  (Read 1808 times)

0 Members and 1 Guest are viewing this topic.

Offline Organik

  • Newbie
  • *
  • Posts: 27
  • Karma: 1
    • Artifice Gaming Network
Usergroup Noclip Speed
« on: July 13, 2013, 11:06:16 PM »
Hello,

I was wondering what might be the best way to implement something to where I can adjust the noclip speed based on the usergroup that you are in? Maybe someone could just point me in the right direction.

Regards,

Organik

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Usergroup Noclip Speed
« Reply #1 on: July 14, 2013, 01:39:44 PM »
Garry used to have the noclip speeds implemented in Lua, so see if you can find that. From there, it would probably be a fairly straightforward modification to UTeam.
Experiencing God's grace one day at a time.

Offline Organik

  • Newbie
  • *
  • Posts: 27
  • Karma: 1
    • Artifice Gaming Network
Re: Usergroup Noclip Speed
« Reply #2 on: July 14, 2013, 04:40:36 PM »
Hey Megiddo,

Thanks for the help. I believe I found the correct lua code for walk/run speed. I'll search for noclip as well. But I'm having a hard time as to where I should place these settings in the uteam.lua file.

Player.SetRunSpeed ( 800 )

Regards,

Organik

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Usergroup Noclip Speed
« Reply #3 on: July 14, 2013, 08:15:18 PM »
Probably the easiest would be to create a function on the player object "SetNoclipmultiplier" which accepts a number (this requires no modification to uteam.lua). You can then set the "noclipmultiplier" value and Uteam will automagically set it appropriately. XGUI can handle this without modification too, if I recall correctly.
Experiencing God's grace one day at a time.