• Murder server with pointshop 2 and csgo knives
    7 replies, posted
Hi, i am a budding server creator and i created a basic murder server with pointshop 2, and everything is working swimmingly except if i use the csgo knives swep from a link i'll post below, and replace the knife, it replaces the murderer's knife but is not 1 hit kill and cannot be thrown, and the bystanders also get a knife. please help me? addon link: [url]https://steamcommunity.com/sharedfiles/filedetails/?id=506283460[/url]
That's because the murder gamemode is probably using it's own SWEP for that functionality, so either you have to implement it in the CSGO knife SWEPS or change the model of murders knife SWEP.
Tip: Post here before Reddit next time. More people here know how to help than on the subreddit.
[QUOTE=BlackVoid;52062145]That's because the murder gamemode is probably using it's own SWEP for that functionality, so either you have to implement it in the CSGO knife SWEPS or change the model of murders knife SWEP.[/QUOTE] could you elaborate on how to do that? if you help me find a suitable solution that works, i will give you $5 on paypal, i am bad with lua.
Search all the gamemode files for "weapon_mu_knife" ..and replace it with your new knife model If you want to use multiple knives, like giving the murderer a random knife from that pack, well that's a bit more complicated. You'll have to make a table that contains each knife and edit the code so it gives the murderer a random knife from that table. [editline]5th April 2017[/editline] As far as making them work with pointshop, you might wanna go to Script Fodder(gmodstore now) and post a job. Cause you'll have to edit the pointshop code so it only gives the knife when the player is a murderer.
[QUOTE=covey88;52063089]Search all the gamemode files for "weapon_mu_knife" ..and replace it with your new knife model If you want to use multiple knives, like giving the murderer a random knife from that pack, well that's a bit more complicated. You'll have to make a table that contains each knife and edit the code so it gives the murderer a random knife from that table. [editline]5th April 2017[/editline] As far as making them work with pointshop, you might wanna go to Script Fodder(gmodstore now) and post a job. Cause you'll have to edit the pointshop code so it only gives the knife when the player is a murderer.[/QUOTE] Basically, i want to create crates like in csgo, that will drop randomly (this is stuff ive already figured out how to do), and then the people who play on the server can purchase keys with their points and unbox the knives and equip them, that way whenever they become murderer, they get the knife they have unboxed.
Well when they get the knives, are the knives added to the player's pointshop inventory? If so, then you just need to edit the pointshop code for weapon loadouts and make it so they only get the knife if they are a murderer. Although I'd think that would be part of the murder integration for pointshop Making it so the knife is one hit kill and throwable will require a bit more editing. If I were you, I'd just post a job on gmodstore. Kinda doubt someone is just gonna make that code for free, never know though.
So if i go to the weapon_mu_knife.lua file and create a table i can add in all the csgo knife sweps by copying the code of the swep into said table segment? Also as far as 1 hit kills and throwable go, i can just edit the swep coding to make damage 120 for each knife, and i can copy the throwing function from the weapon_mu_knife, and paste it in as a secondary function for the cs knife.
Sorry, you need to Log In to post a reply to this thread.