Can i ask, how do you change the damage if you wanted to use it like a crowbar?
Players on my server are receiving this error when I view the server console:
[playername and ID] Lua Error:
[ERROR] lua/weapons/csgo_daggers.lua:170: '=' expected near 'else'
1. unknown - lua/weapons/csgo_daggers.lua:0
Is this one of those errors that are insignificant and should be ignored? Sorry if this was already mentioned somewhere I haven't found it.
remove the 'zz' above that line
Skittles, I've made all of the files for the new gamma skin pack and the bowie knife skins which has been updated into the workshop addon since you made this pack (including gamma ones), message me and I'll shoot it over to you. It'll probably help anyone who wants the new knives and skins.
hey, i tried to add the knives to my server, they are showing up in the pointshop, after buying them it says "Equipped Knife" but doesn't equip it, this is my lua for the pointshop:
[QUOTE]ITEM.Name = 'Karambit'
ITEM.Price = 22000
ITEM.Model = 'models/weapons/w_csgo_karambit.mdl'
ITEM.WeaponClass = 'csgo_karambit'
ITEM.SingleUse = false
function ITEM:OnBuy(ply)
ply:Give(self.WeaponClass)
ply:SelectWeapon(self.WeaponClass)
end
function ITEM:OnSell(ply)
ply:StripWeapon(self.WeaponClass)
end
function ITEM:OnEquip(ply)
ply:Give(self.WeaponClass)
ply:Give(self.WeaponClass)
end
function ITEM:OnHolster(ply)
ply:StripWeapon(self.WeaponClass)
end
local function PlayerLoadout( ply )
ply:Give(self.WeaponClass)
end[/QUOTE]
am i completely wrong here or is something just missing?
Edit: nvm, they're working now.
Edit2: the knives are working, but how can i use different skins? i can only use the defaults.
Why is there so much hate in this thread? The knives look fine to me.
[QUOTE=Lyrischer;50702542]hey, i tried to add the knives to my server, they are showing up in the pointshop, after buying them it says "Equipped Knife" but doesn't equip it, this is my lua for the pointshop:
am i completely wrong here or is something just missing?
Edit: nvm, they're working now.
Edit2: the knives are working, but how can i use different skins? i can only use the defaults.[/QUOTE]
You create a new item for every single skin but change the weapon class, for example if you wanted a boreal forest knife use csgo_karambit_boreal.
[QUOTE=Woodehh;50706451]You create a new item for every single skin but change the weapon class, for example if you wanted a boreal forest knife use csgo_karambit_boreal.[/QUOTE]
i tried that, the name changes but the skin is still default
okay try adding a line like this under the model
ITEM.Skin = "models/csgo_knife/knife_bayonet_boreal.vmt"
[QUOTE=Woodehh;50707688]okay try adding a line like this under the model
ITEM.Skin = "models/csgo_knife/knife_bayonet_boreal.vmt"[/QUOTE]
still not working
[QUOTE=Lyrischer;50707710]still not working[/QUOTE]
Maybe ITEM.Material? Just to clarify you are talking about the thumbnail in the pointshop right?
[QUOTE=Woodehh;50714925]Maybe ITEM.Material? Just to clarify you are talking about the thumbnail in the pointshop right?[/QUOTE]
no, I'm talking about the model that you see while holding the knife
E: just discovered that i can see the skin of the knife when i drop it, and we see the skins in each others hands, but not in our own.
[QUOTE=skittles9823;49660970]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.[/QUOTE]
I am looking in the files but there is no WEAPON_EQUIP or SWEP.AllowDrop or even SWEP.Kind code there.
Another problem I am experiencing is that the skins for the huntsman knives are broken, you just see the base knife.
Anyone have an idea. I am burnt.
i'm re-working my code. It now should be working with both sandbox and TTT, but still need some testings and probably some workarounds in case of if some bugs and erros will occur. Github link will be provided soon.