GithubHelp home page GithubHelp logo

csgo_knives_sweps's People

Contributors

askrealcookie avatar theonly8z avatar xdshot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

csgo_knives_sweps's Issues

SWEP's knives textures/skins don't load

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 )

Silenced shot exploit

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.

Pointshop problem

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?

Knife Damage won't change

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.

Help with pointshop preview

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

Viewmodel not working

I put the download into the servers addons folder and the knives all appear there fine and the world model works
image
but anytime I equip the knives on my server the skin is the default texture
image
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

[BUG?] Knives switching automagically

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

All of the Gamma Knives textures do not work

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.