General > Developers Corner
Usergroup Noclip Speed
(1/1)
Organik:
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
Megiddo:
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.
Organik:
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
Megiddo:
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.
Navigation
[0] Message Index
Go to full version