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

[CSGO] Ammo cvars fix


Post New Thread Reply   
 
Thread Tools Display Modes
Author
butare
Senior Member
Join Date: Nov 2016
Plugin ID:
6125
Plugin Version:
1.0.0
Plugin Category:
Gameplay
Plugin Game:
Counter-Strike: GO
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    This plugins will fix "ammo_*" cvars for csgo!
    Old 05-12-2018 , 00:18   [CSGO] Ammo cvars fix
    Reply With Quote #1

    Ammo Cvars fix!

    If you want to set N amount of ammo for a specific type of weapon, you can now use these cvars. Add them to "server.cfg" or in any other config you'd like.
    *You may leave them by default, if you doesn't want to change them!

    Cvars that are fixed:

    Code:
    ammo_50AE_max 			- weapon_deagle
    ammo_762mm_max 			- weapon_ak47, weapon_ssg08, weapon_aug, weapon_scar20, weapon_g3sg1
    ammo_556mm_max 			- weapon_galilar, weapon_famas, weapon_m4a1, weapon_sg556
    ammo_556mm_small_max 		- weapon_m4a1_silencer
    ammo_556mm_box_max 		- weapon_m249, weapon_negev
    ammo_338mag_max 		- weapon_awp
    ammo_9mm_max 			- weapon_glock, weapon_elite, weapon_tec9, weapon_mp9, weapon_mp7, weapon_bizon
    ammo_buckshot_max 		- weapon_nova, weapon_xm1014, weapon_sawedoff, weapon_mag7
    ammo_45acp_max 			- weapon_mac10, weapon_ump45
    ammo_357sig_max 		- weapon_hkp2000
    ammo_357sig_small_max 		- weapon_usp_silencer
    ammo_357sig_min_max 		- weapon_cz75a
    ammo_57mm_max 			- weapon_fiveseven, weapon_p90
    ammo_357sig_p250_max 		- weapon_p250
    ammo_50AE_revolver_max 		- weapon_revolver *Not an original cvar!
    Example of usage:
    Code:
    ammo_50AE_max 50
    ammo_357sig_small_max 120
    Adding these cvars to "server.cfg" will increase both Deagle and USP-S ammo size to 50 and 120 respectively.

    Changelog:
    Code:
    1.0.0:
    - Release;
    
    1.0.1:
    - Fixed minor bug on player_spawn event;
    
    1.0.2:
    - Another minor bug fix;
    
    1.0.3:
    - Another minor bugs fixes;
    Attached Files
    File Type: zip ammofix - 1.0.0.zip (8.8 KB, 128 views)
    File Type: zip ammofix - 1.0.1.zip (8.8 KB, 169 views)
    File Type: zip ammofix - 1.0.2.zip (8.8 KB, 163 views)
    File Type: zip ammofix - 1.0.3.zip (8.9 KB, 367 views)

    Last edited by butare; 05-16-2018 at 11:12.
    butare is offline
    Wonterek
    Member
    Join Date: Jun 2015
    Location: Poland
    Old 05-12-2018 , 19:00   Re: [CSGO] Ammo cvars fix
    Reply With Quote #2

    Bad field in entity!!
    FuncTrackTrain 'elevator_collision' has no target.
    logic_measure_movement: Unable to find movement target entity teleparent
    L 05/13/2018 - 00:59:40: [SM] Exception reported: Entity -1 (-1) is invalid
    L 05/13/2018 - 00:59:40: [SM] Blaming: ammofix.smx
    L 05/13/2018 - 00:59:40: [SM] Call stack trace:
    L 05/13/2018 - 00:59:40: [SM] [0] GetEntProp
    L 05/13/2018 - 00:59:40: [SM] [1] Line 113, /home/forums/content/files/2/7/5/3/7/3/169732.attach:layerSpawn_Hook
    L 05/13/2018 - 00:59:40: [SM] [3] ServerCommandEx
    L 05/13/2018 - 00:59:40: [SM] [4] Line 400, D:\builds\build-sourcemod-msvc12\windows-1.8\build\plugins\basecommands.sp::Command_Rc on
    L 05/13/2018 - 00:59:40: [SM] Exception reported: Entity -1 (-1) is invalid
    L 05/13/2018 - 00:59:40: [SM] Blaming: ammofix.smx
    L 05/13/2018 - 00:59:40: [SM] Call stack trace:
    L 05/13/2018 - 00:59:40: [SM] [0] GetEntProp
    L 05/13/2018 - 00:59:40: [SM] [1] Line 113, /home/forums/content/files/2/7/5/3/7/3/169732.attach:layerSpawn_Hook
    L 05/13/20
    __________________
    Wonterek is offline
    butare
    Senior Member
    Join Date: Nov 2016
    Old 05-12-2018 , 19:13   Re: [CSGO] Ammo cvars fix
    Reply With Quote #3

    Quote:
    Originally Posted by Wonterek View Post
    Bad field in entity!!
    FuncTrackTrain 'elevator_collision' has no target.
    logic_measure_movement: Unable to find movement target entity teleparent
    L 05/13/2018 - 00:59:40: [SM] Exception reported: Entity -1 (-1) is invalid
    L 05/13/2018 - 00:59:40: [SM] Blaming: ammofix.smx
    L 05/13/2018 - 00:59:40: [SM] Call stack trace:
    L 05/13/2018 - 00:59:40: [SM] [0] GetEntProp
    L 05/13/2018 - 00:59:40: [SM] [1] Line 113, /home/forums/content/files/2/7/5/3/7/3/169732.attach:layerSpawn_Hook
    L 05/13/2018 - 00:59:40: [SM] [3] ServerCommandEx
    L 05/13/2018 - 00:59:40: [SM] [4] Line 400, D:\builds\build-sourcemod-msvc12\windows-1.8\build\plugins\basecommands.sp::Command_Rc on
    L 05/13/2018 - 00:59:40: [SM] Exception reported: Entity -1 (-1) is invalid
    L 05/13/2018 - 00:59:40: [SM] Blaming: ammofix.smx
    L 05/13/2018 - 00:59:40: [SM] Call stack trace:
    L 05/13/2018 - 00:59:40: [SM] [0] GetEntProp
    L 05/13/2018 - 00:59:40: [SM] [1] Line 113, /home/forums/content/files/2/7/5/3/7/3/169732.attach:layerSpawn_Hook
    L 05/13/20
    Should be fixed now.
    butare is offline
    Wonterek
    Member
    Join Date: Jun 2015
    Location: Poland
    Old 05-13-2018 , 11:40   Re: [CSGO] Ammo cvars fix
    Reply With Quote #4

    L 05/13/2018 - 1531: [SM] Exception reported: Entity 669 (669) is invalid
    L 05/13/2018 - 1531: [SM] Blaming: ammofix.smx
    L 05/13/2018 - 1531: [SM] Call stack trace:
    L 05/13/2018 - 1531: [SM] [0] GetEntProp
    L 05/13/2018 - 1531: [SM] [1] Line 141, D:\Utilites\SteamCMD\aimservcsgo\csgo\addons\ sourcemod\scripting\ammofix.sp::NextFrameSpaw n
    __________________

    Last edited by Wonterek; 05-13-2018 at 11:41.
    Wonterek is offline
    butare
    Senior Member
    Join Date: Nov 2016
    Old 05-13-2018 , 12:07   Re: [CSGO] Ammo cvars fix
    Reply With Quote #5

    Quote:
    Originally Posted by Wonterek View Post
    L 05/13/2018 - 1531: [SM] Exception reported: Entity 669 (669) is invalid
    L 05/13/2018 - 1531: [SM] Blaming: ammofix.smx
    L 05/13/2018 - 1531: [SM] Call stack trace:
    L 05/13/2018 - 1531: [SM] [0] GetEntProp
    L 05/13/2018 - 1531: [SM] [1] Line 141, D:\Utilites\SteamCMD\aimservcsgo\csgo\addons\ sourcemod\scripting\ammofix.sp::NextFrameSpaw n
    idk how did you manage to kill the entity (or make it invalid) in the same frame as it was created, but whatever. Should be fixed now.
    butare is offline
    Wonterek
    Member
    Join Date: Jun 2015
    Location: Poland
    Old 05-13-2018 , 14:54   Re: [CSGO] Ammo cvars fix
    Reply With Quote #6

    Quote:
    Originally Posted by butare View Post
    idk how did you manage to kill the entity (or make it invalid) in the same frame as it was created, but whatever. Should be fixed now.
    i dont know XD btw another error

    L 05/13/2018 - 207:26: [SM] Exception reported: Handle 10100607 is invalid (error 1)
    L 05/13/2018 - 207:26: [SM] Blaming: ammofix.smx
    L 05/13/2018 - 207:26: [SM] Call stack trace:
    L 05/13/2018 - 207:26: [SM] [0] CloseHandle
    L 05/13/2018 - 207:26: [SM] [1] Line 117, D:\Utilites\SteamCMD\aimservcsgo\csgo\addons\ sourcemod\scripting\ammofix.sp:layerSpawn_H ook
    __________________
    Wonterek is offline
    butare
    Senior Member
    Join Date: Nov 2016
    Old 05-13-2018 , 16:02   Re: [CSGO] Ammo cvars fix
    Reply With Quote #7

    Quote:
    Originally Posted by Wonterek View Post
    i dont know XD btw another error

    L 05/13/2018 - 207:26: [SM] Exception reported: Handle 10100607 is invalid (error 1)
    L 05/13/2018 - 207:26: [SM] Blaming: ammofix.smx
    L 05/13/2018 - 207:26: [SM] Call stack trace:
    L 05/13/2018 - 207:26: [SM] [0] CloseHandle
    L 05/13/2018 - 207:26: [SM] [1] Line 117, D:\Utilites\SteamCMD\aimservcsgo\csgo\addons\ sourcemod\scripting\ammofix.sp:layerSpawn_H ook
    Okay, here, I fixed it, but I'll not pin it to the main thread in case if you will find any other errors, but If everything will be good, I'll pin it.
    Attached Files
    File Type: zip ammofix - 1.0.3u.zip (8.9 KB, 160 views)
    butare is offline
    Allower
    Senior Member
    Join Date: Sep 2013
    Location: SourceEngine
    Old 05-21-2018 , 11:14   Re: [CSGO] Ammo cvars fix
    Reply With Quote #8

    Hello!
    Nice fix.

    But i have a small question:
    In same plugins you can change magazine, but not primary ammo inside weapon. Can you add this feature?

    ex: Default ammo in M4A1_Silcencer is 20/40 <<< I wanna do this ammo like 30/90 or something. Is this possible? Or not?
    __________________
    Allower is offline
    butare
    Senior Member
    Join Date: Nov 2016
    Old 05-21-2018 , 18:45   Re: [CSGO] Ammo cvars fix
    Reply With Quote #9

    Quote:
    Originally Posted by Allower View Post
    Hello!
    Nice fix.

    But i have a small question:
    In same plugins you can change magazine, but not primary ammo inside weapon. Can you add this feature?

    ex: Default ammo in M4A1_Silcencer is 20/40 <<< I wanna do this ammo like 30/90 or something. Is this possible? Or not?
    Yeah, I think it's possible, I'll do it when I'll have free time
    butare is offline
    Allower
    Senior Member
    Join Date: Sep 2013
    Location: SourceEngine
    Old 05-22-2018 , 12:22   Re: [CSGO] Ammo cvars fix
    Reply With Quote #10

    Quote:
    Originally Posted by butare View Post
    Yeah, I think it's possible, I'll do it when I'll have free time
    Thank you for fast reply, mate.

    Yep, i actually forgot about old _Root's plugin

    https://forums.alliedmods.net/showthread.php?p=2084134

    So my question is stuped

    His plugin have cvar for change ammo Clip size.

    But, i think it maybe so buggy with cs:go, cuz plugin created 4 year's ago.

    I think your plugin be good if this can change grenades, zeus(taser) ammo, ammo_item_limit_healthshot or tagrenade (i don't know about Tactical Grenade cvar's) e.g. xD . I remember same other stuff with this, but too many bugs before cs:go updated weapon data.
    __________________

    Last edited by Allower; 05-22-2018 at 12:28.
    Allower 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 11:32.


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