Raised This Month: $12 Target: $400
 3% 

[CS:GO] When given weapon, reserve ammo is 1


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
sneaK
SourceMod Moderator
Join Date: Feb 2015
Location: USA
Old 09-01-2016 , 14:03   [CS:GO] When given weapon, reserve ammo is 1
Reply With Quote #1

Hi, been having an issue on my minigames server that I can't quite seem to figure out.

Whenever a player is given a weapon, the reserve ammo is always 1, so after reloading the player only has one bullet left in the magazine.

For example: Given awp by the map, awp's ammo is 10/1

After a reload, if you wait long enough, the current magazine capacity will jump from 1 to 10, and reserve ammo will go back to maximum (30, in case of the awp). If firing again immediately, you will use the 1 bullet and be forced to reload again. I'll try to get a clear video in a few hours.

I'm honestly not sure what's causing this and it's really aggravating, I've been trying to solve this for some time. My plugins list:

Spoiler


Are there cvars I should be looking into, or is this just a CS:GO issue?

Last edited by sneaK; 09-01-2016 at 14:04.
sneaK is offline
Maxximou5
AlliedModders Donor
Join Date: Feb 2013
Old 09-01-2016 , 15:50   Re: [CS:GO] When given weapon, reserve ammo is 1
Reply With Quote #2

I had this problem when I was making a restricted ammo plugin; however, it's odd behavior if you don't have a plugin that specifically manipulates the ammo amount.
Does this happen with weapons NOT given by the map?
As far as your plugins list, I don't see anything that would cause it.
I did look at a few: LAZERRRRSSSS!, No Weapon Fix, and Give Weapon but they obviously don't interfere.
Maxximou5 is offline
sneaK
SourceMod Moderator
Join Date: Feb 2015
Location: USA
Old 09-01-2016 , 22:02   Re: [CS:GO] When given weapon, reserve ammo is 1
Reply With Quote #3

Quote:
Originally Posted by Maxximou5 View Post
I did look at a few: LAZERRRRSSSS!, No Weapon Fix, and Give Weapon but they obviously don't interfere.
Yeah, none of those plugin mess with ammo counts.

If I give myself a weapon using the give weapon plugin, I receive proper default reserve ammo.

I've noticed that this bug doesn't happen on all weapons, but is particularly prone to certain others. 2 in particular are the AWP and Dualies.

After messing with this for an hour tonight, I feel like it's a map specific issue. Some maps you get proper ammo, some you don't. I noticed some weapons break with sv_infinite_ammo 2 as well.

Last edited by sneaK; 09-01-2016 at 22:03.
sneaK is offline
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Old 08-30-2017 , 13:03   Re: [CS:GO] When given weapon, reserve ammo is 1
Reply With Quote #4

Anyone know how to fix this issue? This bug appear to me in maps like br_drop_v2 but not appear in other maps.

I dont have plugins that manipulate ammo counts. I was trying to fix this issue with plugins without luck yet.

I saw that even if you see "1" as ammo in your weapon, "m_iPrimaryReserveAmmoCount" netprop entity is currenly his default ammo (not 1).
__________________
Veteran Coder -> Activity channel
Coding on CS2 and taking paid and free jobs.

Contact: Steam, Telegram or discord ( franug ).

You like my work? +Rep in my steam profile comments or donate.

Franc1sco is offline
Send a message via MSN to Franc1sco
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 08-31-2017 , 17:16   Re: [CS:GO] When given weapon, reserve ammo is 1
Reply With Quote #5

If you want this effect server wide you can edit the items file. Downside is it will override on updates. You can use KeyValues or Dynamic to update the required keys and restart the server when a change occurs.

If some maps do this while others dont. Decompile the map and figure out what it's doing to achieve the result you're after.
__________________
Neuro Toxin is offline
Reply


Thread Tools
Display Modes

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 21:44.


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