Raised This Month: $32 Target: $400
 8% 

[CSGO] Set default clip size?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Drixevel
AlliedModders Donor
Join Date: Sep 2009
Location: Somewhere headbangin'
Old 07-31-2016 , 23:57   [CSGO] Set default clip size?
Reply With Quote #1

Working on a project and I'm looking to set new clip sizes for weapons. My current method isn't very good because It's kind of hacky but it works... okay.

Question: Is there a way to set the default clip sizes for a weapon without having to set its values manually based on events, timer what not along with doing math to deduct properly from the ammo count.

Thanks,
- red
Drixevel is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 08-01-2016 , 01:26   Re: [CSGO] Set default clip size?
Reply With Quote #2

Weapon scripts.

csgo/scripts/weapon_<name>.txt

You MUST restart your server.

Replacement weapon clipsizes (eg: m4a1s) are found in your game_items_game.txt file.
__________________
Neuro Toxin is offline
Drixevel
AlliedModders Donor
Join Date: Sep 2009
Location: Somewhere headbangin'
Old 08-01-2016 , 01:48   Re: [CSGO] Set default clip size?
Reply With Quote #3

Quote:
Originally Posted by Neuro Toxin View Post
Weapon scripts.

csgo/scripts/weapon_<name>.txt

You MUST restart your server.

Replacement weapon clipsizes (eg: m4a1s) are found in your game_items_game.txt file.
Should've probably pointed out that I'm trying to do this via code and not via editing that text file.
Drixevel is offline
Bad Cold Man
Senior Member
Join Date: Apr 2014
Old 08-01-2016 , 06:30   Re: [CSGO] Set default clip size?
Reply With Quote #4

Hello!

You can try this (not english)
__________________
Bad Cold Man 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 19:35.


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