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

[CS:GO] - ⋯ Ammo management | Set correctly the ammo amout for each weapons


Post New Thread Reply   
 
Thread Tools Display Modes
shtopor
Member
Join Date: Dec 2010
Old 06-13-2015 , 09:10   Re: [CSGO] - Ammo management | Set correctly the ammo amout for each weapons
Reply With Quote #51

Is it possible to add Zeus?
shtopor is offline
MsNs7
Member
Join Date: Oct 2012
Location: Greece
Old 06-14-2015 , 15:28   Re: [CSGO] - Ammo management | Set correctly the ammo amout for each weapons
Reply With Quote #52

Can this plugin refil clip on kill? A really need a plugin which will do that but i can't find any that works.
__________________
Setti Steam Group
...you can achieve immortality, simply by doing one great thing...

Last edited by MsNs7; 06-14-2015 at 15:28.
MsNs7 is offline
Dr. Api
BANNED
Join Date: Mar 2015
Location: France
Old 06-14-2015 , 15:42   Re: [CSGO] - Ammo management | Set correctly the ammo amout for each weapons
Reply With Quote #53

Quote:
Originally Posted by MsNs7 View Post
Can this plugin refil clip on kill? A really need a plugin which will do that but i can't find any that works.
You means when you kill an ennemy to get some clip more? ammo or clip ?
Dr. Api is offline
MsNs7
Member
Join Date: Oct 2012
Location: Greece
Old 06-14-2015 , 19:29   Re: [CSGO] - Ammo management | Set correctly the ammo amout for each weapons
Reply With Quote #54

For example:
I have an AK-47. I spray 5 bullets, i kill an enemy and after i kill him, i have 30 bullets again without i reload.
__________________
Setti Steam Group
...you can achieve immortality, simply by doing one great thing...
MsNs7 is offline
shtopor
Member
Join Date: Dec 2010
Old 06-16-2015 , 05:39   Re: [CSGO] - Ammo management | Set correctly the ammo amout for each weapons
Reply With Quote #55

I found another bug
immediately after purchase CZ-Auto in her 12\52 ammo, although the configuration file is set 12\24 ammo

after a shoot out several ammo, becomes 12\24 ammo

my config
Code:
// This file was auto-generated by SourceMod (v1.7.2-dev+5200)
// ConVars for plugin "drapi_ammo.smx"


// Enable/Disable Dev Mod
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
drapi_active_ammo_dev "0"

// AWP
// -
// Default: "30"
drapi_ammo_338mag_max "30"

// HPK2000
// -
// Default: "52"
drapi_ammo_357sig_max "52"

// CZ75
// -
// Default: "12"
drapi_ammo_357sig_min_max "24"

// P250
// -
// Default: "26"
drapi_ammo_357sig_p250_max "52"

// USP-S
// -
// Default: "24"
drapi_ammo_357sig_small_max "48"

// FIVESEVEN
// -
// Default: "100"
drapi_ammo_45acp_max "100"

// DEAGLE
// -
// Default: "35"
drapi_ammo_50AE_max "35"

// M249, NEGEV
// -
// Default: "200"
drapi_ammo_556mm_box_max "200"

// AK47, FAMAS, GALILAR
// -
// Default: "90"
drapi_ammo_556mm_max "90"

// M4A1-S
// -
// Default: "40"
drapi_ammo_556mm_small_max "80"

// P90, UMP45, MAC10
// -
// Default: "100"
drapi_ammo_57mm_max "100"

// SSG08, AUG, SG556, G3SG1, SCAR20
// -
// Default: "90"
drapi_ammo_762mm_max "90"

// ELITE, TEC9, MP7, MP9, GLOCK, BIZON
// -
// Default: "120"
drapi_ammo_9mm_max "120"

// MAG7, NOVA, SAWEDOFF, XM1014
// -
// Default: "32"
drapi_ammo_buckshot_max "32"

// Version
// -
// Default: "1.0"
drapi_ammo_version "1.2.0"
screenshot
Spoiler

Last edited by shtopor; 06-16-2015 at 05:43.
shtopor is offline
Dr. Api
BANNED
Join Date: Mar 2015
Location: France
Old 06-16-2015 , 05:44   Re: [CSGO] - Ammo management | Set correctly the ammo amout for each weapons
Reply With Quote #56

Okay will check that.

Edit: try this version, I didn't finish all I wanted but it's working.
Attached Files
File Type: smx drapi_ammo.smx (14.5 KB, 141 views)

Last edited by Dr. Api; 06-16-2015 at 05:47.
Dr. Api is offline
shtopor
Member
Join Date: Dec 2010
Old 06-16-2015 , 11:53   Re: [CSGO] - Ammo management | Set correctly the ammo amout for each weapons
Reply With Quote #57

Thx, Now all is well
shtopor is offline
rodpod
SourceMod Donor
Join Date: Jan 2005
Old 06-18-2015 , 07:24   Re: [CSGO] - Ammo management | Set correctly the ammo amout for each weapons
Reply With Quote #58

hey dr api

i've been able to find places to edit ammo ammount for VIP and admin players (I want to add 50% more ammo for them). After respawn it works as it supposed to but after reload ammo is set to standard values forced by the plugin. I didn't have time to look at the code to find those arrays in which you store data (I think you did this like I've written). could you show me to the part of code that needs to be altered or do I have to investigate on my own ??

Last edited by rodpod; 06-18-2015 at 07:25.
rodpod is offline
Dr. Api
BANNED
Join Date: Mar 2015
Location: France
Old 06-18-2015 , 08:46   Re: [CSGO] - Ammo management | Set correctly the ammo amout for each weapons
Reply With Quote #59

It's exist some cvars from CSGO who you need to edit ortherwise you cannot reach this ammout.

PHP Code:
/***********************************************************/
/******************* SET CONVARS VALVE *********************/
/***********************************************************/
void SetConVarsValve()
{
    
SetConVarInt(FindConVar("ammo_338mag_max"),         C_ammo_338mag_maxfalsefalse);
    
SetConVarInt(FindConVar("ammo_357sig_max"),         C_ammo_357sig_maxfalsefalse);
    
SetConVarInt(FindConVar("ammo_357sig_min_max"),     C_ammo_357sig_min_maxfalsefalse);
    
SetConVarInt(FindConVar("ammo_357sig_p250_max"),    C_ammo_357sig_p250_maxfalsefalse);
    
SetConVarInt(FindConVar("ammo_357sig_small_max"),     C_ammo_357sig_small_maxfalsefalse);
    
SetConVarInt(FindConVar("ammo_45acp_max"),             C_ammo_45acp_maxfalsefalse);
    
SetConVarInt(FindConVar("ammo_50AE_max"),             C_ammo_50AE_maxfalsefalse);
    
SetConVarInt(FindConVar("ammo_556mm_box_max"),         C_ammo_556mm_box_maxfalsefalse);
    
SetConVarInt(FindConVar("ammo_556mm_max"),             C_ammo_556mm_maxfalsefalse);
    
SetConVarInt(FindConVar("ammo_556mm_small_max"),     C_ammo_556mm_small_maxfalsefalse);
    
SetConVarInt(FindConVar("ammo_57mm_max"),             C_ammo_57mm_maxfalsefalse);
    
SetConVarInt(FindConVar("ammo_762mm_max"),             C_ammo_762mm_maxfalsefalse);
    
SetConVarInt(FindConVar("ammo_9mm_max"),             C_ammo_9mm_maxfalsefalse);
    
SetConVarInt(FindConVar("ammo_buckshot_max"),         C_ammo_buckshot_maxfalsefalse);

Try to increase this value.
Dr. Api is offline
cTmoNe
AlliedModders Donor
Join Date: Jul 2010
Location: Germany
Old 06-20-2015 , 09:52   Re: [CS:GO] - ⋯ Ammo management | Set correctly the ammo amout for each weapons
Reply With Quote #60

You can make to set for all weapon 200 ammo and 1200 ammo in reserve (200/1200) this plugin change ammo from reserve.
__________________


cTmoNe 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 15:45.


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