Ulysses
General => Developers Corner => Topic started by: Organik 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
-
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.
-
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
-
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.