zoqatek.blogg.se

Gmod darkrp server ammo code
Gmod darkrp server ammo code










gmod darkrp server ammo code

You can’t carry two weapons of the same “Kind”, and certain other behavior also depends on this type. It’s the category or class the weapon belongs to. The first important line is:Įvery TTT weapon must have a Kind specified. At the top is some bog standard SWEP stuff I’ll skip past. Let’s look at the a file in the folder you have extracted.

gmod darkrp server ammo code

If you now start a TTT game, you can use the console command give weapon_ttt_ak47 to get the gun and give it a go. Extract it into \garrysmod\gamemodes\terrortown\entities\weapons\. zip will contain a weapon_ttt_ak47 folder. Preparationĭownload the AK47 weapon linked above. If not, you may still be able to follow along, but at your own risk. Use the tutorials and information at the Gmod wiki to fill in the gaps.įrom this point on, I will assume that you are familiar with Lua and that you are somewhat familiar with Gmod SWEPs. I will explain standard Gmod SWEP (i.e., scripted weapon) concepts when convenient, but I’m not going to be able to tell you everything there is to know, and I especially can’t teach you Lua here. We do this by following along with an example weapon that you can download in the list above. We will look at making a custom weapon for TTT, both the code side and the graphical side. AK47 weapon: an example scripted weapon.psd file for creating a menu icon in the style of the other TTT icons. Some example content and a guide to creating a custom weapon for TTT. Can I make my custom weapon cost 2 or 3 credits instead of 1?.












Gmod darkrp server ammo code