xdshot / csgo_knives_sweps Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
I use https://github.com/Arizard/deathrun and i also use Pointshop 2 but the skin of the knives won't appear.
On my sandbox server it works:
But not on my Deathrun server:
When i drop it, it does appear:
What should i do?
What would be the best method to disable CSGO knives as a traitor weapon in TTT?
So, I have a Garry's Mod Deathrun server, with Pointshop 2, and I downloaded the CS GO Knives SWEPs addon, I put it in the addon folder, and then I restarted my server.
After joining the server, I saw the knives, but when I equipped them, they were normal vanilla skins, in Pointshop 2 the textures / skins were there, and when I dropped them on the floor too, not only I had this bug, also the people who played on my server.
I hope someone can help me!
Thank you.
https://imgur.com/a/cmR8gWM ( Gut Knife | Gamma Doppler )
csgo_knives_canbuy convar does not work.
Firing a weapon then quickswitching to a knife will silence the remainder of the gunshot.
I think it's because of the custom knife sounds implemented.
The addon Works for me, i see the skins in the playermodel hands... But in the pointshop menu, the knive appears without skin, any help?
Hi there, I've tried to change the damage by using the your commands in my console and I've tried putting the changes in my server config but nothing works. When I do the commands in console it tells me that i'm trying unknown commands. I'm not sure what to do at this point.
I need help i dont know how to add the knives to the pointshop 2....
I know how to add to the pointshop 1 but not the 2
Hi, Im using pointshop 1 with csgo knives. When adding the knives to the pointshop knives without skins load fine but skins load a error into the preview and when equipping the knife it shows the default knife and not the skin. This is not the same error that I have been reading in other posts as as far as I am aware they are not getting the preview error as well as the no skin when equipped. Below is The pointshop code for a knife that does not work. Hope you can help me out.
Code: https://0bin.net/paste/HOXNR93G#r2EgeYSrLxEVpZN8xE3SRQRJ0W8zzNjinjZjL-9q8Is
I put the download into the servers addons folder and the knives all appear there fine and the world model works
but anytime I equip the knives on my server the skin is the default texture
as far as I know the code should be exactly how it is on the github but just in case here is both the code for the weapon as well as the code for the pointshot.
Pointshop:
ITEM.Name = 'Butterfly Knife' .. ' | ' .. 'Boreal Forest'
ITEM.Price = 20000
ITEM.Model = 'models/weapons/w_csgo_butterfly.mdl'
ITEM.Skin = 1
ITEM.WeaponClass = 'csgo_butterfly_boreal'
function ITEM:OnEquip(ply)
ply:Give(self.WeaponClass)
end
function ITEM:OnBuy(ply)
ply:Give(self.WeaponClass)
ply:SelectWeapon(self.WeaponClass)
end
function ITEM:OnSell(ply)
ply:StripWeapon(self.WeaponClass)
end
function ITEM:OnHolster(ply)
ply:StripWeapon(self.WeaponClass)
end
Weapon:
if not file.Exists( 'weapons/csgo_baseknife.lua', 'LUA' ) then
SWEP.Spawnable = false
print( 'csgo_butterfly_boreal failed to initialize: csgo_baseknife.lua not found. Did you install the main part?' )
return
end
local TTT = ( GAMEMODE_NAME == "terrortown" or cvars.Bool("csgo_knives_force_ttt", false) )
DEFINE_BASECLASS( 'csgo_baseknife' )
if ( SERVER ) then
SWEP.Weight = 5
SWEP.AutoSwitchTo = false
SWEP.AutoSwitchFrom = false
if TTT then
SWEP.EquipMenuData = nil
end
end
if ( CLIENT ) then
SWEP.Slot = TTT and 6 or 2
SWEP.SlotPos = 0
end
SWEP.PrintName = 'Butterfly Knife' .. ' | ' .. 'Boreal Forest'
SWEP.Category = 'CS:GO Knives'
SWEP.Spawnable = true
SWEP.AdminSpawnable = true
SWEP.ViewModel = 'models/weapons/v_csgo_butterfly.mdl'
SWEP.WorldModel = 'models/weapons/w_csgo_butterfly.mdl'
SWEP.SkinIndex = 1
SWEP.PaintMaterial = nil
SWEP.AreDaggers = false
util.PrecacheModel( SWEP.ViewModel )
util.PrecacheModel( SWEP.WorldModel )
-- TTT config values
-- Kind specifies the category this weapon is in. Players can only carry one of
-- each. Can be: WEAPON_... MELEE, PISTOL, HEAVY, NADE, CARRY, EQUIP1, EQUIP2 or ROLE.
-- Matching SWEP.Slot values: 0 1 2 3 4 6 7 8
SWEP.Kind = WEAPON_EQUIP
-- If AutoSpawnable is true and SWEP.Kind is not WEAPON_EQUIP1/2, then this gun can
-- be spawned as a random weapon.
SWEP.AutoSpawnable = false
-- The AmmoEnt is the ammo entity that can be picked up when carrying this gun.
-- SWEP.AmmoEnt = "item_ammo_smg1_ttt"
-- CanBuy is a table of ROLE_* entries like ROLE_TRAITOR and ROLE_DETECTIVE. If
-- a role is in this table, those players can buy this.
SWEP.CanBuy = nil
-- InLoadoutFor is a table of ROLE_* entries that specifies which roles should
-- receive this weapon as soon as the round starts. In this case, none.
SWEP.InLoadoutFor = nil
-- If LimitedStock is true, you can only buy one per round.
SWEP.LimitedStock = false
-- If AllowDrop is false, players can't manually drop the gun with Q
SWEP.AllowDrop = true
-- If IsSilent is true, victims will not scream upon death.
SWEP.IsSilent = true
-- If NoSights is true, the weapon won't have ironsights
SWEP.NoSights = true
-- This sets the icon shown for the weapon in the DNA sampler, search window,
-- equipment menu (if buyable), etc.
SWEP.Icon = "vgui/entities/csgo_butterfly_boreal.vmt"
Ive checked the FAQ numerous times as well as check all other bug reports on the steam page and github and still have been unable to find the fix
Ok so in TTT when the round is preparing if you switch from your knife to another weapon when the round goes from Preparing to In progress it switches back to your knife automatically it is very tedious and causes deaths sometimes when people are using grappling hooks or some newbie in the server sees it at the start and murks you
Basically all the knives work perfectly for me other than the gamma ones, the knives textures (skins) show the pink and black checkerboard, therefore the textures do not work for all of them as i have tried every gamma knife
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.