Ulysses Stuff > Suggestions
A better noclip for admins
Hyperion:
I want the noclip to work a little bit better for admins, so that when sbox_noclip is set to 0, then admins who have the noclip command enabled can just press V and fly, like it was at ASSMod. I know I can do 'bind v "ulx noclip"' in console, but sometimes I get into servers with no ULX and I would have to rebind everytime
MrPresident:
In assmod they would have had to overwrite the noclip function at the core level to achieve this. This is not what ULX was meant to do. There are quite a few unbound keys in gmod. Maybe bind another key to ulx noclip?
LuaTenshi:
--- Quote from: Hyperion on July 10, 2013, 06:02:54 AM ---I want the noclip to work a little bit better for admins, so that when sbox_noclip is set to 0, then admins who have the noclip command enabled can just press V and fly, like it was at ASSMod. I know I can do 'bind v "ulx noclip"' in console, but sometimes I get into servers with no ULX and I would have to rebind everytime
--- End quote ---
Try putting this code in your lua/autorun folder.
--- Code: ---hook.Add( "PlayerNoClip", "ULXNoclipConversion", function(ply)
ply:ConCommand("ulx noclip")
end)
--- End code ---
Megiddo:
--- Quote from: HeLLFox_15 on July 10, 2013, 06:01:54 PM ---Try putting this code in your lua/autorun folder.
--- Code: ---hook.Add( "PlayerNoClip", "ULXNoclipConversion", function(ply)
ply:ConCommand("ulx noclip")
end)
--- End code ---
--- End quote ---
You should really just query the player directly instead of running the command if you want to go this route. By doing the query, you won't break client side prediction. :P
Hyperion:
--- Quote from: Megiddo on July 11, 2013, 09:12:21 AM ---You should really just query the player directly instead of running the command if you want to go this route. By doing the query, you won't break client side prediction. :P
--- End quote ---
So what do you suggest? Can you give me the better code? And I have to put it in the ULX lua/autorun folder in addons, right?
Navigation
[0] Message Index
[#] Next page
Go to full version