• Limiting settings for tools?
    4 replies, posted
I'm working on a sandbox derived gamemode, however, I wish to limit the options on some tools. Is it possible to prevent the player from going over, like 2000 force on a thruster? Or limit the speed of a hydraulic? I thought maybe I could edit the code of the sandbox tools and use them instead, but is that gonna piss people off? Are sandbox tools free to modify?
[url]http://wiki.garrysmod.com/page/SANDBOX/CanTool[/url]
[QUOTE=tzahush;52234305][url]http://wiki.garrysmod.com/page/SANDBOX/CanTool[/url][/QUOTE] no, thats not what I meant i mean to limit the [B]options[/B] within the tools, such as have a thruster tool but not have people spawn with 10,000 force
It's kind of hard since it's hardcoded in that way [url]https://github.com/garrynewman/garrysmod/blob/master/garrysmod/gamemodes/sandbox/entities/weapons/gmod_tool/stools/thruster.lua#L5[/url] [url]https://github.com/garrynewman/garrysmod/blob/master/garrysmod/gamemodes/sandbox/entities/weapons/gmod_tool/stools/thruster.lua#L37[/url]
if you have a gamemode can you overwrite tools? can i replace the lua file with a modified lua file in the gamemode/weapons/tool/tool sgit?
Sorry, you need to Log In to post a reply to this thread.