Raised This Month: $ Target: $400
 0% 

How to access/change weapon stats in CS:GO


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
daltonv297
Junior Member
Join Date: Jul 2015
Old 08-11-2015 , 17:36   How to access/change weapon stats in CS:GO
Reply With Quote #1

I want to create a plugin that can change the stats on a given weapon in CS:GO, such as changing the rate of fire, damage, or player movement speed. I've never created a SM plugin before, so I don't actually know if this is even possible, but if it is, any information on how to do this would be helpful.
daltonv297 is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 08-13-2015 , 20:09   Re: How to access/change weapon stats in CS:GO
Reply With Quote #2

You need to edit the weapon scripts located at...

csgo/scripts/weapon_*

These changes wont take effect until you restart the server.
__________________
Neuro Toxin is offline
daltonv297
Junior Member
Join Date: Jul 2015
Old 08-13-2015 , 21:04   Re: How to access/change weapon stats in CS:GO
Reply With Quote #3

Quote:
Originally Posted by Neuro Toxin View Post
You need to edit the weapon scripts located at...

csgo/scripts/weapon_*

These changes wont take effect until you restart the server.
Hmm... So there's no way to change the weapon stats on the fly, without needing a restart? That really sucks.
daltonv297 is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 08-13-2015 , 21:46   Re: How to access/change weapon stats in CS:GO
Reply With Quote #4

I think you can using netprops. Not sure however...
__________________
Neuro Toxin is offline
poel
Veteran Member
Join Date: Mar 2013
Old 08-13-2015 , 21:51   Re: How to access/change weapon stats in CS:GO
Reply With Quote #5

Well, I tried.

After reboot, I have max 260 (in the script, it's 285).

So, I dont know what is in conflit to block my value (260 max atm).

EDIT : I'm talking about speed player with weapon "knife"

Last edited by poel; 08-13-2015 at 21:52.
poel is offline
daltonv297
Junior Member
Join Date: Jul 2015
Old 08-13-2015 , 22:29   Re: How to access/change weapon stats in CS:GO
Reply With Quote #6

Quote:
Originally Posted by Neuro Toxin View Post
I think you can using netprops. Not sure however...
What is netprops exactly? Google didn't give me a good answer.
daltonv297 is offline
Potato Uno
Veteran Member
Join Date: Jan 2014
Location: Atlanta, Georgia
Old 08-13-2015 , 23:11   Re: How to access/change weapon stats in CS:GO
Reply With Quote #7

Quote:
Originally Posted by daltonv297 View Post
What is netprops exactly? Google didn't give me a good answer.
Additional bits of data that are stored on an entity.

Enter sm_dump_datamaps and sm_dump_netprops into the server console to get all the netprops that you can use on each entity type.
Potato Uno is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 08-14-2015 , 01:38   Re: How to access/change weapon stats in CS:GO
Reply With Quote #8

Quote:
Originally Posted by poel View Post
Well, I tried.

After reboot, I have max 260 (in the script, it's 285).

So, I dont know what is in conflit to block my value (260 max atm).

EDIT : I'm talking about speed player with weapon "knife"
Is there knife and knife_t?

I would also assume sv_maxspeed might need to be increased
__________________
Neuro Toxin is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:00.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode