i want to change the crowbar to a different weapon i was wonder how can i?
Go into garrysmod/gamemodes/terrortown/entities/weapons
Inside there you'll find a folder called weapon_ttt_improvised, and in there will be a file called shared.lua. This is basically the crowbar and we should leave this alone in-case something ever goes wrong.
Copy/paste weapon_ttt_improvised and then rename it, preferably something you can remember and relevant. For example, let's call it weapon_ttt_keyboard
Open up the weapon_ttt_keyboard and go down to lines 20 and 21.
[CODE]SWEP.ViewModel = "models/weapons/c_crowbar.mdl"
SWEP.WorldModel = "models/weapons/w_crowbar.mdl"[/CODE]
Change these two lines to the model you already have. You can find plenty of resources on what to use from the Steam workshop, things you've downloaded from other servers and garrysmod.org
Here you'll have a crowbar reskin. You can either set it up as a Pointshop alternative, or if you want people to start off with it, as opposed to the crowbar, find line 40 of weapon_ttt_improvised, which is this:
[code]SWEP.InLoadoutFor = {ROLE_INNOCENT, ROLE_TRAITOR, ROLE_DETECTIVE}[/code]
Take that out and place it in your new swep.
Next time, I'd recommend taking a look inside your terrortown files and just messing around, really. It probably wouldn't have taken you that long to figure it out yourself!
Sorry, you need to Log In to post a reply to this thread.