Hi, here are xDShot's ([url]https://steamcommunity.com/id/xdshot2[/url]) CS:GO Knives converted to TTT by me, Skittles9823 ([url]https://steamcommunity.com/id/skittles9823[/url])
Please don't use the workshop page for questions related to this port. xDShot isn't maintaining this version, I am. I'm sorry if my limited Lua knowledge can't help to solve your problem but I'll do my best if its something simple.
Do not add either xDShot or myself for support with these knives. Just leave a reply to this thread and I'll do my best to help.
[B]IF YOU PLAN TO USE THE LATEST VERSION (addon format) PLEASE DELETE THE PREVIOUS VERSION![/B]
====Instructions====
1. Subscribe to xDShot's CS:GO Knives swep here: [url]https://steamcommunity.com/sharedfiles/filedetails/?id=506283460[/url]
2. If you don't already have it, download GMAD Extractor here: [url]http://www.treesoft.dk/gmod/gmad/[/url]
3. Once you open GMAD hit the "Open" button then "Browse" then navigate to your garrysmod installation. (C:\Program Files (x86)\Steam\steamapps\common\GarrysMod\garrysmod\addons)
4. Click on the ID/Name/Author/Description section to make sure the addon is selected for extracting then click "Select"
5. Click "Extract All" in the top banner and find a place to store the files. (You can delete the Lua folder you just extracted as we will be using the Lua I made for this.)
6. Navigate inside the "garrysmod/addons" directory on your server installation.
7. Drop the csgo_knives folder here.
8. Find the folders you extracted (materials, models and sound) and drop them inside the csgo_knives folder.
9. Restart your server and test.
10. As xDShot said: --YOU'RE WINNER!
==FAQ==
Q. What slot are these set to?
A. They are in slot 12
Q. How do I change the slot?
A. Open up the Lua file of the knife and find the line that says SWEP.Kind = 11 and change it to a slot you want.
Q. Wha?? The knives aren't spawning! Why bruh? fix it!
A. I set the knives so they wont spawn in the world. Goto each knife and find the line that says SWEP.AutoSpawnable = false and set to true. Although I don't see why you would make them auto spawn-able. Its much more fun earning them through a pointshop or leveling system.
Github: [url]https://github.com/skittles9823/CS-GO-Knives-for-TTT/tree/master[/url]
Known bugs:
- When you drop a knife the skin it had will be on all your weapons
-You tell me!
Changelog:
2.10.16:
Converted to addon format
2.09.16:
Made all knives able to be in an inventory as-well as any traitor or detective weapon
1.18.16:
Fixed the Bayonet knife as I forgot to add the TTT specific code that was needed.
==NOTE==
I've gotten permission from xDShot™ to release this.
Credits:
xDShot™ for creating the knives.
Leteos for making them addon format.
Myself for the initial conversion.
Hi, i can post a workshop addon with your TTT conversion? im add pointshop support, but im need your confirmation o.o thx
You want to upload it to the workshop? Whats the addon?
[editline]22nd January 2016[/editline]
The addon already has pointshop support. I can post the Lua for a pointshop 1 knife if you want.
[QUOTE=skittles9823;49582465]You want to upload it to the workshop? Whats the addon?
[editline]22nd January 2016[/editline]
The addon already has pointshop support. I can post the Lua for a pointshop 1 knife if you want.[/QUOTE]
Hey please post it for me thanks! :)
This is what they show people on death row when the electric chair runs out of batteries.
[QUOTE=SatoshiAaron;49600075]This is what they show people on death row when the electric chair runs out of batteries.[/QUOTE]
Excuse me? There was high demand for a TTT version of these knives, and most people who wanted it had no idea how to make them compatible. The original auther agrees that it was a good idea to release them so I dont see the problem here.
[QUOTE=skittles9823;49600178]Excuse me? There was high demand for a TTT version of these knives, and most people who wanted it had no idea how to make them compatible. The original auther agrees that it was a good idea to release them so I dont see the problem here.[/QUOTE]
High demand for ones that ain't shit
[QUOTE=SatoshiAaron;49602563]High demand for ones that ain't shit[/QUOTE]
I don't give a shit if you think they are shit. If you want to complain talk to the original developer, I just ported them so they work for TTT.
Btw if i want to port them to the pointshop do i have to install it somebit different?
[QUOTE=DarkZ123;49603069]Btw if i want to port them to the pointshop do i have to install it somebit different?[/QUOTE]
They should be ready to go for pointshop. I use pointshop 2 on the TTT server I use them on but I have gotten them working with pointshop by _undefined on my bunnyhop server.
but how to put them in the by_undefined shop? could u send a lua please?
Use the template of other weapons. You'll see how. Just set single use to false and set to give on spawn. Also dont forget to change the classname to the knifes classname.
Hey Skittles, First Up - Great Work!
Well, i've been Struggling with These Knifes a Long Time.
Now you Gave me The Lua's for This, my only Problem is, how do i Insert them on Pointshop2?
I Saw you are Using Pointshop2 so i Hope you Could help me :)
If so, could you please add me on Steam? [URL="http://steamcommunity.com/id/GambarojaLP/"]My Profile[/URL]
Thanks For Sharing, and See ya Later :)
[QUOTE=GambarojaLP;49606238]Hey Skittles, First Up - Great Work!
Well, i've been Struggling with These Knifes a Long Time.
Now you Gave me The Lua's for This, my only Problem is, how do i Insert them on Pointshop2?
I Saw you are Using Pointshop2 so i Hope you Could help me :)
If so, could you please add me on Steam? [URL="http://steamcommunity.com/id/GambarojaLP/"]My Profile[/URL]
Thanks For Sharing, and See ya Later :)[/QUOTE]
To put in to pointshop 2 you need the Weaopns and Loadouts DLC. simply make a perma weapon for each knife, set the price and your done. I also bought the drops and keys DLC so I made like a little CS:GO unboxing emulator. The players love it.
I Have it Too. But When i Create the Item and Select it to been selled as Primary Weapon it wont give it to me...
(Yes, i have put it in my inventory and moved it to primary in inventory).
Could you add me on steam pls?
//EDIT
I spawned the Knifes via "rcon ent csgo_butterfly_ddpat" - The Knifes are There with the Skins all Perfect.
But when i Create an Item - (Tried Both Primary and Secondary) - it wont give it to me....
What do i do wrong?
[QUOTE=GambarojaLP;49606737]I Have it Too. But When i Create the Item and Select it to been selled as Primary Weapon it wont give it to me...
(Yes, i have put it in my inventory and moved it to primary in inventory).
Could you add me on steam pls?
//EDIT
I spawned the Knifes via "rcon ent csgo_butterfly_ddpat" - The Knifes are There with the Skins all Perfect.
But when i Create an Item - (Tried Both Primary and Secondary) - it wont give it to me....
What do i do wrong?[/QUOTE]
Sounds like it should work. Are you using leaks?
No, bought Everything...
Could You add me on Steam, that we dont do like an "Chat" here in Facepunch? :D
//EDIT:
What i Forgot To say is, that the Knifes are There and i Spawned them, but could not Pick Up...
They Just layed on the Ground with them Skins and i Could shoot them so they fly away but could not pick them up...
So i really dont know anymore
Finally Fixed it :)
Thanks Mate for Helping me that Much! <3
Cheers :)
No problem at all.
Hi!
First off I would like to thank you for converting this to TTT. Second off I need your help. Do I need both the github or just to subscribe to it on the workshop. What I want to do is sell knife skins on pointshop 1 that would replace the crowbar or current knife skin. I don't want to make the knives dropable and I want them to do the same damage as crowbar.
I am a massive noob at pointshop and your help would be amazing if I could make this a reality. (I'm barely know lua)
With all respect
Bae
[QUOTE=baebaeron;49658792]Hi!
First off I would like to thank you for converting this to TTT. Second off I need your help. Do I need both the github or just to subscribe to it on the workshop. What I want to do is sell knife skins on pointshop 1 that would replace the crowbar or current knife skin. I don't want to make the knives dropable and I want them to do the same damage as crowbar.
I am a massive noob at pointshop and your help would be amazing if I could make this a reality. (I'm barely know lua)
With all respect
Bae[/QUOTE]
Hey, to install the knives follow the instructions in the main post so you will need to subscribe then extract with gmad and delete the lua and install exactly how it sais but since you would like the knives to replace the crowbar and not be droppable before you upload the Lua to garrysmod/garrysmod/gamemodes/terrortown/entities/weapons you will need to go into every folder and open every knife (besides the weapon base) and find the lines that say "SWEP.Kind = WEAPON_EQUIP2" and "SWEP.AllowDrop = false" for the knives to replace tbe crowbar you will need to set the SWEP.Kind to WEAPON_MELEE and obviously to disable drop set SWEP.AllowDrop to false. As for the pointshop I dont use pointshop1 on TTT so I'm not to sure on the code needed but if you set it up so it doesnt imediatly remove/equip the knife on equip/holster it should replace the crowbar the round after they buy/equip a knife.
Thank You so much for your help!
I believe this is the code which I should use for each weapon
ITEM.Name = 'My Weapon'
ITEM.Price = 200 -- Give it a price
ITEM.Model = 'models/weapons/W_pistol.mdl' -- This is what it will look like in the menu
ITEM.WeaponClass = 'weapon_my_weapon'
ITEM.SingleUse = true -- Is it not persistent? Do they have to buy a new one each time they want one?
function ITEM:OnBuy(ply)
ply:Give(self.WeaponClass)
ply:SelectWeapon(self.WeaponClass)
end
function ITEM:OnSell(ply)
ply:StripWeapon(self.WeaponClass)
end
Where would I put this code, somewhere in the pointshop? I'm not sure because I think I saw something else ware that did not look quite right. Last question: where do I go to see the knife's model
Thank you for your wonderful support again,
Bae
Yes if you look in the pointshop addons files you'll see where to put it, you can find the model path by going into the Lua for each knife and looking at the line that shows this: SWEP.WorldModel = "models/weapons/w_csgo_bayonet.mdl" you also may need extra functions for onequip and onholster but I'm no pointshop1 expert.
Thank you so much again. I applaud your work.
Update:
2.09.16:
Made all knives able to be in an inventory as-well as any traitor or detective weapon
[editline]8th February 2016[/editline]
Wait, I don't know how to GitHub.
[editline]8th February 2016[/editline]
Working now :D
Update:
02.10.16
Leteos made them addon format. (Again, I had permission from Leteos to push his version as the latest update.)
If you wish to use this version please delete the old version.
[QUOTE=baebaeron;49663983]Thank You so much for your help!
I believe this is the code which I should use for each weapon
ITEM.Name = 'My Weapon'
ITEM.Price = 200 -- Give it a price
ITEM.Model = 'models/weapons/W_pistol.mdl' -- This is what it will look like in the menu
ITEM.WeaponClass = 'weapon_my_weapon'
ITEM.SingleUse = true -- Is it not persistent? Do they have to buy a new one each time they want one?
function ITEM:OnBuy(ply)
ply:Give(self.WeaponClass)
ply:SelectWeapon(self.WeaponClass)
end
function ITEM:OnSell(ply)
ply:StripWeapon(self.WeaponClass)
end
Where would I put this code, somewhere in the pointshop? I'm not sure because I think I saw something else ware that did not look quite right. Last question: where do I go to see the knife's model
Thank you for your wonderful support again,
Bae[/QUOTE]
Hey what would I replace the item class with.
Also, can you backstabbing with these knives for an instakill? Does it hav3 an animation.
Thanks
[QUOTE=baebaeron;49754679]Hey what would I replace the item class with.
Also, can you backstabbing with these knives for an instakill? Does it hav3 an animation.
Thanks[/QUOTE]
Classname is the name of the knife file, so for example, csgo_karambit_fade or csgo_m9_damascus or csgo_bayonet. As for backstabbing, yes! It is an instakill, and it does have an animation.
[QUOTE=skittles9823;49756098]Classname is the name of the knife file, so for example, csgo_karambit_fade or csgo_m9_damascus or csgo_bayonet. As for backstabbing, yes! It is an instakill, and it does have an animation.[/QUOTE]
Great news I have been coding them correctly so far :)
+baebaeron whats your steam name? The knives dont work in pointshop on my server maybe you could help me?
Sorry, you need to Log In to post a reply to this thread.