• Making TTT Equip Menu Sweps cost more than one credit?
    8 replies, posted
Is this possible? i feel like this is pretty easy but I'm looking in the swep code and theres no credit code anywhere. Any ideas?
No it is not possible without re-writing the way the shop works. [URL="http://ttt.badking.net/custom-weapon-guide"]Look at the FAQ at the bottom of the creators web page[/URL]
I did this before and could've sword I had a tut on it but I don't seem to be able to locate it. There isn't a huge amount to look at / modify to get it to work from what I recall. Everything is based off 1 credit; so you'd set 1 credit being the default price, and assign cost for those that are more expensive. Anywhere where GetCredits is called, see if it looks up if the user can buy ( if it does, do the check for the cost in the item table instead of just > 0 ... ). Look at cl_equip.lua and there should be a serverside file too.. weaponry.lua line 335: -- Equipment buying local function OrderEquipment(ply, cmd, args)
I did this before, might have the code still. Yep, there you go: [url]https://dl.dropboxusercontent.com/u/46283290/Different%20Prices.zip[/url]. Need any explaining, just ask.
aww im so late [url]http://facepunch.com/showthread.php?t=1287293&p=46357433#post46357433[/url]
Its best just to balance your item for ONE credit instead of modifying the gamemode (the creator had good reason to leave it like that)
[QUOTE=Exho;46507751]Its best just to balance your item for ONE credit instead of modifying the gamemode (the creator had good reason to leave it like that)[/QUOTE] who says we have to follow the creator's specifics a guy made a hitman addon for ttt, which removes the vanilla ttt aspect, which, I dont see many people complaining about
[QUOTE=HumbleTH;46506117]I did this before, might have the code still. Yep, there you go: [url]https://dl.dropboxusercontent.com/u/46283290/Different%20Prices.zip[/url]. Need any explaining, just ask.[/QUOTE] so in the swep do i just do SWEP.Price = whatever amount of credits i want?
[QUOTE=mattk0628;46514731]so in the swep do i just do SWEP.Price = whatever amount of credits i want?[/QUOTE] Yeah
Sorry, you need to Log In to post a reply to this thread.