• Can seem to find stuff about trouble in terror town related thing.
    3 replies, posted
[B][U]My terrorist town issue.[/U][/B] So for the past 5 days I have been trying to find a place that will show me how to to the following 1. Make the knife in for traitors instant kill 2. How to add things such as jihad and the flare gun to the traitor credit store. If anyone can help me find what I have been looking for it would be greatly appreciated. Thanks
Very simple lua stuff. If you dont know how to do that stuff on your own, I highly suggest not running a server. Open up the knife file, go to SWEP.Damage and change it to >500 the rest is simply adding T weapons.
Well. Guess its time to learn some lua :D. Its always fun learning stuff like that. [editline]20th May 2013[/editline] [QUOTE=zerothefallen;40719585]Very simple lua stuff. If you dont know how to do that stuff on your own, I highly suggest not running a server. Open up the knife file, go to SWEP.Damage and change it to >500 the rest is simply adding T weapons.[/QUOTE] Can you possibly tell me a place I should go to for finding out how to add T weapons and also getting familiar with lua?
[QUOTE=dmb7116;40719599]Well. Guess its time to learn some lua :D. Its always fun learning stuff like that. [editline]20th May 2013[/editline] Can you possibly tell me a place I should go to for finding out how to add T weapons and also getting familiar with lua?[/QUOTE] Weapons are located in the gamemode/terrortown/entities/weapons folder. It should look like [img]http://puu.sh/2XOm1.png[/img] Each folder contains a shared.lua which contains all the info relating to the weapons, albeit some weapons have entity files that are separate (EG grapple hook has a "rope" entity in the entities/entity folder, right outside the weapons one). If you open up weapon_ttt_knife, you will see things like this. [img]http://puu.sh/2XOp3.png[/img] As you can see, [lua]SWEP.Primary.Damage = 750[/lua] This controls the dmg output of the knife. If you create a folder (EG weapon_ttt_example) and place a shared.lua in there, TTT will register it correctly (assuming it's not broken/etc) If you want it in the T shop, you should get an icon for cosmetic purposes. To make it appear on the map, you'll need to re-arm the map for said icon. you can find tutorials related to this here [url]http://ttt.badking.net/custom-weapon-guide[/url] [url]http://ttt.badking.net/rearm-guide[/url]
Sorry, you need to Log In to post a reply to this thread.