AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [CS:GO] - ⋯ Ammo management | Set correctly the ammo amout for each weapons (https://forums.alliedmods.net/showthread.php?t=263717)

Dr. Api 05-31-2015 11:34

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

Everytime I had a Valve update "items_game.txt" was reset.
So I did this plugin for my community Zombie4ever.eu and Zombie Escape/Riot servers.
Allow you to manage weapon ammo instead of using "items_game.txt"

II - Cvars

drapi_ammo_338mag_max "30" - AWP
drapi_ammo_357sig_max "52" - HPK2000
drapi_ammo_357sig_min_max "12" - CZ75
drapi_ammo_357sig_p250_max "26" - P250
drapi_ammo_357sig_small_max "24" - USP-S
drapi_ammo_45acp_max "100" - FIVESEVEN
drapi_ammo_50AE_max "35" - DEAGLE
drapi_ammo_556mm_box_max "200" - M249, NEGEV
drapi_ammo_556mm_max "90" - M4A1, AK47, FAMAS, GALILAR
drapi_ammo_556mm_small_max "40" - M4A1-S
drapi_ammo_57mm_max "100" - P90, UMP45, MAC10
drapi_ammo_762mm_max "90" - SSG08, AUG, SG556, G3SG1, SCAR20
drapi_ammo_9mm_max "120" - ELITE, TEC9, MP7, MP9, GLOCK, BIZON
drapi_ammo_buckshot_max "32" - MAG7, NOVA, SAWEDOFF, XM1014

This are default ammo. Don't put less than this values in your config "/csgo/cfg/sourcemod/drapi/drapi_ammo.cfg".

III - Bugs

FIXED - For no reason, if you reach 0 ammo you will get in plus default ammo of weapon.
So what I did for example, AK47 Weapon ammo = drapi_ammo_556mm_max - default ammo.


VI - Credits

SMLIB for some useful functions

VII - Changelogs

Quote:

V1.3.1
-Fixed ump45, mac10 -> ammo_45acp_max, fiveseven -> ammo_57mm_max, ak47 -> ammo_762mm_max

V1.3.0
Use m_iItemDefinitionIndex to simplify.

V1.2.0
-Added M4A1.
-No bug anymore when reach 0. Ammo are set correctly.

V1.1.2
-Detect weapons silencer.

V1.1.1
-Correct ammo when round start.

V1.1.0
-Tried on differents SM version works.

VIII - Credits

Anjin to check and tell me the correct cvars.

IX - Donate

If you like my work.

https://www.paypalobjects.com/en_US/...onateCC_LG.gif


X - Download
GIT

Dr. Api 06-01-2015 06:21

Re: [CSGO] - Ammo management | Zombie Escape / Riot
 
V1.1.0 Tried on differents SM version works.

shtopor 06-02-2015 04:57

Re: [CSGO] - Ammo management | Zombie Escape / Riot
 
Nice plugin!

Code:

#include <autoexec>
what is it? why without it I can not compile the plugin?

Dr. Api 06-02-2015 07:46

Re: [CSGO] - Ammo management | Zombie Escape / Riot
 
Quote:

Originally Posted by shtopor (Post 2303859)
Nice plugin!

Code:

#include <autoexec>
what is it? why without it I can not compile the plugin?

It's on the zip file. It's include who making the drapi_ammo.cfg dynamically. For example if I change a cvar or rename you will need to delete the drapi_ammo.cfg and reboot your server.

shtopor 06-02-2015 09:29

Re: [CSGO] - Ammo management | Zombie Escape / Riot
 
ok, thx.
Another question: why, in the plugin installed and configured, the game displays the same number of ammo?
example:
in game M4A1-S - 20/40
in drapi_ammo.cfg: M4A1-S - 80

Dr. Api 06-02-2015 10:02

Re: [CSGO] - Ammo management | Zombie Escape / Riot
 
Quote:

Originally Posted by shtopor (Post 2303918)
ok, thx.
Another question: why, in the plugin installed and configured, the game displays the same number of ammo?
example:
in game M4A1-S - 20/40
in drapi_ammo.cfg: M4A1-S - 80

Cause you have to increase this number.
M4A1-S should put more than 80 cause at base you have 80 ammo on the M4A1-S.

rodpod 06-02-2015 14:52

Re: [CSGO] - Ammo management | Zombie Escape / Riot
 
could you add execution on player spawn to your script??

Dr. Api 06-02-2015 14:56

Re: [CSGO] - Ammo management | Zombie Escape / Riot
 
Quote:

Originally Posted by rodpod (Post 2304009)
could you add execution on player spawn to your script??

Sorry the function for the round start was here but I forgot to trigger it. Wait a minute I upload that.

rodpod 06-02-2015 15:46

Re: [CSGO] - Ammo management | Zombie Escape / Riot
 
ok. works but not instantly in buyzone. when i bought p250 (changed to 52 ammo) i still saw 26 ammo in reserve. when i switched weapons and went back to secondary it showed 52 bullets. fired 3 rounds, reloaded, 49 bullets in reserve. works like a charm. maybe a little delay (timer 0.2) after purchasing?

[edit]
my bad. timer works.

cheers mate

Dr. Api 06-02-2015 15:52

Re: [CSGO] - Ammo management | Zombie Escape / Riot
 
Quote:

Originally Posted by rodpod (Post 2304029)
ok. works but not instantly in buyzone. when i bought p250 (changed to 52 ammo) i still saw 26 ammo in reserve. when i switched weapons and went back to secondary it showed 52 bullets. fired 3 rounds, reloaded, 49 bullets in reserve. works like a charm. maybe a little delay (timer 0.2) after purchasing?

[edit]
my bad. timer works.

cheers mate

Yes, I put a datatimer to 0.5 but I can put for 0.0 next version.

rodpod 06-03-2015 13:29

Re: [CSGO] - Ammo management | Zombie Escape / Riot
 
I have to tell you, that spawn ammo changing does not work at all. I tested it yesterday while in T team and after purchasing p250 ammo was set correctly. I have joined the server today as a CT this time. Spawned with USP and spare ammo was still 24. same was with m4a1-s when i bought it. there has to be some kind of missmatch in props.

Dr. Api 06-03-2015 16:25

Re: [CSGO] - Ammo management | Zombie Escape / Riot
 
Quote:

Originally Posted by rodpod (Post 2304394)
I have to tell you, that spawn ammo changing does not work at all. I tested it yesterday while in T team and after purchasing p250 ammo was set correctly. I have joined the server today as a CT this time. Spawned with USP and spare ammo was still 24. same was with m4a1-s when i bought it. there has to be some kind of missmatch in props.

Good to know, this is happen with all weapons or just some like weapons with silencer?

rodpod 06-03-2015 16:48

Re: [CSGO] - Ammo management | Zombie Escape / Riot
 
I didn't have the time to check it out completely. Tomorrow is national holiday in my country and I'll have the time test it out completely.

Dr. Api 06-04-2015 10:20

Re: [CSGO] - Ammo management | Zombie Escape / Riot
 
Quote:

Originally Posted by rodpod (Post 2304440)
I didn't have the time to check it out completely. Tomorrow is national holiday in my country and I'll have the time test it out completely.

V1.1.2
Detect weapons silencer.

rodpod 06-04-2015 14:48

Re: [CSGO] - Ammo management | Zombie Escape / Riot
 
good job man !! works like it supposed to.

Dr. Api 06-05-2015 04:25

Re: [CSGO] - Ammo management | Zombie Escape / Riot
 
Quote:

Originally Posted by rodpod (Post 2304753)
good job man !! works like it supposed to.

Great :)

shtopor 06-06-2015 12:22

Re: [CSGO] - Ammo management | Zombie Escape / Riot
 
plugin is not working correctly
videos: http://www.youtube.com/watch?v=96_aP2Dys74
error log:
Code:

L 06/03/2015 - 23:13:00: SourceMod error session started
L 06/03/2015 - 23:13:00: Info (map "workshop/138744370/awp_lego_2_crash_go") (file "errors_20150603.log")
L 06/03/2015 - 23:13:00: [SM] Native "GetEntDataEnt2" reported: Offset -1 is invalid
L 06/03/2015 - 23:13:00: [SM] Displaying call stack trace for plugin "drapi_ammo.smx":
L 06/03/2015 - 23:13:00: [SM]  [0]  Line 478, D:\Distrib_for_DS\Sourcemod\sourcemod-1.7.2-windows\addons\sourcemod\scripting\drapi_ammo.sp::Client_GetWeapon()
L 06/03/2015 - 23:13:00: [SM]  [1]  Line 447, D:\Distrib_for_DS\Sourcemod\sourcemod-1.7.2-windows\addons\sourcemod\scripting\drapi_ammo.sp::Client_SetWeaponAmmo()
L 06/03/2015 - 23:13:00: [SM]  [2]  Line 384, D:\Distrib_for_DS\Sourcemod\sourcemod-1.7.2-windows\addons\sourcemod\scripting\drapi_ammo.sp::Timer_SetCorrectAmmo()
L 06/03/2015 - 23:13:00: [SM] Native "GetEntDataEnt2" reported: Offset -1 is invalid
L 06/03/2015 - 23:13:00: [SM] Displaying call stack trace for plugin "drapi_ammo.smx":
L 06/03/2015 - 23:13:00: [SM]  [0]  Line 478, D:\Distrib_for_DS\Sourcemod\sourcemod-1.7.2-windows\addons\sourcemod\scripting\drapi_ammo.sp::Client_GetWeapon()
L 06/03/2015 - 23:13:00: [SM]  [1]  Line 447, D:\Distrib_for_DS\Sourcemod\sourcemod-1.7.2-windows\addons\sourcemod\scripting\drapi_ammo.sp::Client_SetWeaponAmmo()
L 06/03/2015 - 23:13:00: [SM]  [2]  Line 384, D:\Distrib_for_DS\Sourcemod\sourcemod-1.7.2-windows\addons\sourcemod\scripting\drapi_ammo.sp::Timer_SetCorrectAmmo()


Dr. Api 06-06-2015 15:22

Re: [CSGO] - Ammo management | Zombie Escape / Riot
 
Quote:

Originally Posted by shtopor (Post 2305375)
plugin is not working correctly
videos: http://www.youtube.com/watch?v=96_aP2Dys74
[/code]

Like your video at least it explicit.
Can you give me your ip. (217.25.239.83:27015) ??

OTHERWISE it exist a V1.1.2 Try it before and tell me.

shtopor 06-06-2015 16:14

Re: [CSGO] - Ammo management | Zombie Escape / Riot
 
Yes, ip 217.25.239.83:27015
When you go to the server, the plugin was removed from the server
as soon as I install the plugin version 1.1.2, I will write in this thread

Dr. Api 06-06-2015 16:24

Re: [CSGO] - Ammo management | Zombie Escape / Riot
 
Quote:

Originally Posted by shtopor (Post 2305430)
Yes, ip 217.25.239.83:27015
When you go to the server, the plugin was removed from the server
as soon as I install the plugin version 1.1.2, I will write in this thread

Ok, Waiting your feedback.

shtopor 06-07-2015 04:04

Re: [CSGO] - Ammo management | Zombie Escape / Riot
 
1.1.2 installed, the plugin still does not work properly

Dr. Api 06-07-2015 06:47

Re: [CSGO] - Ammo management | Zombie Escape / Riot
 
Quote:

Originally Posted by shtopor (Post 2305547)
1.1.2 installed, the plugin still does not work properly

error logs ?

shtopor 06-07-2015 06:49

Re: [CSGO] - Ammo management | Zombie Escape / Riot
 
Code:

L 06/07/2015 - 11:14:07: SourceMod error session started
L 06/07/2015 - 11:14:07: Info (map "workshop/384666965/35hp_3_ultimate") (file "errors_20150607.log")
L 06/07/2015 - 11:14:07: [SM] Native "GetEntProp" reported: Entity -1 (-1) is invalid
L 06/07/2015 - 11:14:07: [SM] Displaying call stack trace for plugin "drapi_ammo.smx":
L 06/07/2015 - 11:14:07: [SM]  [0]  Line 444, drapi_ammo.sp::Timer_SetCorrectAmmo()
L 06/07/2015 - 11:34:33: Error log file session closed.
L 06/07/2015 - 12:25:29: SourceMod error session started
L 06/07/2015 - 12:25:29: Info (map "de_mirage") (file "errors_20150607.log")
L 06/07/2015 - 12:25:29: [SM] Native "GetEntProp" reported: Entity -1 (-1) is invalid
L 06/07/2015 - 12:25:29: [SM] Displaying call stack trace for plugin "drapi_ammo.smx":
L 06/07/2015 - 12:25:29: [SM]  [0]  Line 444, drapi_ammo.sp::Timer_SetCorrectAmmo()
L 06/07/2015 - 12:42:09: Error log file session closed.
L 06/07/2015 - 13:06:24: SourceMod error session started
L 06/07/2015 - 13:06:24: Info (map "workshop/451382974/awp_orange") (file "errors_20150607.log")
L 06/07/2015 - 13:06:24: [SM] Native "GetEntProp" reported: Entity -1 (-1) is invalid
L 06/07/2015 - 13:06:24: [SM] Displaying call stack trace for plugin "drapi_ammo.smx":
L 06/07/2015 - 13:06:24: [SM]  [0]  Line 444, drapi_ammo.sp::Timer_SetCorrectAmmo()
L 06/07/2015 - 13:06:24: [SM] Native "GetEntProp" reported: Entity -1 (-1) is invalid
L 06/07/2015 - 13:06:24: [SM] Displaying call stack trace for plugin "drapi_ammo.smx":
L 06/07/2015 - 13:06:24: [SM]  [0]  Line 444, drapi_ammo.sp::Timer_SetCorrectAmmo()
L 06/07/2015 - 13:06:26: [SM] Native "GetEntProp" reported: Entity -1 (-1) is invalid
L 06/07/2015 - 13:06:26: [SM] Displaying call stack trace for plugin "drapi_ammo.smx":
L 06/07/2015 - 13:06:26: [SM]  [0]  Line 444, drapi_ammo.sp::Timer_SetCorrectAmmo()
L 06/07/2015 - 13:27:11: Error log file session closed.


Dr. Api 06-07-2015 08:22

Re: [CSGO] - Ammo management | Zombie Escape / Riot
 
1 Attachment(s)
Quote:

Originally Posted by shtopor (Post 2305584)
Code:

L 06/07/2015 - 11:14:07: SourceMod error session started
L 06/07/2015 - 11:14:07: Info (map "workshop/384666965/35hp_3_ultimate") (file "errors_20150607.log")
L 06/07/2015 - 11:14:07: [SM] Native "GetEntProp" reported: Entity -1 (-1) is invalid
L 06/07/2015 - 11:14:07: [SM] Displaying call stack trace for plugin "drapi_ammo.smx":
L 06/07/2015 - 11:14:07: [SM]  [0]  Line 444, drapi_ammo.sp::Timer_SetCorrectAmmo()
L 06/07/2015 - 11:34:33: Error log file session closed.
L 06/07/2015 - 12:25:29: SourceMod error session started
L 06/07/2015 - 12:25:29: Info (map "de_mirage") (file "errors_20150607.log")
L 06/07/2015 - 12:25:29: [SM] Native "GetEntProp" reported: Entity -1 (-1) is invalid
L 06/07/2015 - 12:25:29: [SM] Displaying call stack trace for plugin "drapi_ammo.smx":
L 06/07/2015 - 12:25:29: [SM]  [0]  Line 444, drapi_ammo.sp::Timer_SetCorrectAmmo()
L 06/07/2015 - 12:42:09: Error log file session closed.
L 06/07/2015 - 13:06:24: SourceMod error session started
L 06/07/2015 - 13:06:24: Info (map "workshop/451382974/awp_orange") (file "errors_20150607.log")
L 06/07/2015 - 13:06:24: [SM] Native "GetEntProp" reported: Entity -1 (-1) is invalid
L 06/07/2015 - 13:06:24: [SM] Displaying call stack trace for plugin "drapi_ammo.smx":
L 06/07/2015 - 13:06:24: [SM]  [0]  Line 444, drapi_ammo.sp::Timer_SetCorrectAmmo()
L 06/07/2015 - 13:06:24: [SM] Native "GetEntProp" reported: Entity -1 (-1) is invalid
L 06/07/2015 - 13:06:24: [SM] Displaying call stack trace for plugin "drapi_ammo.smx":
L 06/07/2015 - 13:06:24: [SM]  [0]  Line 444, drapi_ammo.sp::Timer_SetCorrectAmmo()
L 06/07/2015 - 13:06:26: [SM] Native "GetEntProp" reported: Entity -1 (-1) is invalid
L 06/07/2015 - 13:06:26: [SM] Displaying call stack trace for plugin "drapi_ammo.smx":
L 06/07/2015 - 13:06:26: [SM]  [0]  Line 444, drapi_ammo.sp::Timer_SetCorrectAmmo()
L 06/07/2015 - 13:27:11: Error log file session closed.


Try this

shtopor 06-07-2015 09:49

Re: [CSGO] - Ammo management | Zombie Escape / Riot
 
It does not work

Code:

L 06/07/2015 - 20:51:59: SourceMod error session started
L 06/07/2015 - 20:51:59: Info (map "workshop/128042593/2000_classic_b2") (file "errors_20150607.log")
L 06/07/2015 - 20:51:59: [SM] Native "GetEntDataEnt2" reported: Offset -1 is invalid
L 06/07/2015 - 20:51:59: [SM] Displaying call stack trace for plugin "drapi_ammo.smx":
L 06/07/2015 - 20:51:59: [SM]  [0]  Line 608, drapi_ammo.sp::Client_GetWeapon()
L 06/07/2015 - 20:51:59: [SM]  [1]  Line 577, drapi_ammo.sp::Client_SetWeaponAmmo()
L 06/07/2015 - 20:51:59: [SM]  [2]  Line 489, drapi_ammo.sp::Timer_SetCorrectAmmo()
L 06/07/2015 - 20:52:49: Error log file session closed.


rodpod 06-08-2015 02:57

Re: [CSGO] - Ammo management | Zombie Escape / Riot
 
which version of sourcemod and metamod? i haven't looked into source code but if its 1.7 compliant then it won't work on 1.6

shtopor 06-08-2015 03:39

Re: [CSGO] - Ammo management | Zombie Escape / Riot
 
sourcemod 1.7.2
metamod 1.10.5
Code:

sm plugins list
[SM] Listing 32 plugins:
  01 "Basic Ban Commands" (1.7.2) by AlliedModders LLC
  02 "Sound Commands" (1.7.2) by AlliedModders LLC
  03 "Reserved Slots" (1.7.2) by AlliedModders LLC
  04 "Admin Help" (1.7.2) by AlliedModders LLC
  05 "Admin Menu" (1.7.2) by AlliedModders LLC
  06 "Server Advertisement" (1.3) by ESK0
  07 "Reset Score" (1.0.1) by GoDtm666 and www.MyArena.ru
  08 "Knife choice CORE - Выбор ножа ЯДРО" (1.9) by Phoenix - Феникс
  09 "Too Late To Ban" (1.0.0a) by Shenton
  10 "Map Nominations" (1.7.2) by AlliedModders LLC
  11 "Basic Info Triggers" (1.7.2) by AlliedModders LLC
  12 "AFK Manager" (3.5.3) by Rothgar
  13 "Basic Commands" (1.7.2) by AlliedModders LLC
  14 "Plugin Manager" (1.1.0) by R-Hehl
  15 "DR.API AMMO" (1.1.2) by Dr. Api
  16 "Rock The Vote" (1.7.2) by AlliedModders LLC
  17 "Player Commands" (1.7.2) by AlliedModders LLC
  18 "Fun Commands" (1.7.2) by AlliedModders LLC
  19 "PermaMute" (0.1) by Ryan "FLOOR_MASTER" Mannion
  20 "Fun Votes" (1.7.2) by AlliedModders LLC
  21 "Basic Votes" (1.7.2) by AlliedModders LLC
  22 "MapChooser" (1.7.2) by AlliedModders LLC
  23 "SM Nextmap Info" (1.9) by SWAT_88
  24 "Client Preferences" (1.7.2) by AlliedModders LLC
  25 "GameVoting.smx"
  26 "Knife choice INTERFASE MONUL 1 - Выбор ножа МОДУЛЬ ИНТЕРФЕЙСА 1" (1.1) by Phoenix - Феникс
  27 "SM Franug CSGO Sprays" (1.4.1) by Franc1sco Steam: franug
  28 "SM CS:GO Weapon Paints" (1.6.4) by Franc1sco franug
  29 "Basic Chat" (1.7.2) by AlliedModders LLC
  30 "Admin File Reader" (1.7.2) by AlliedModders LLC
  31 "Basic Comm Control" (1.7.2) by AlliedModders LLC
  32 "Anti-Flood" (1.7.2) by AlliedModders LLC


Dr. Api 06-08-2015 04:12

Re: [CSGO] - Ammo management | Zombie Escape / Riot
 
CS:GO Weapon Paint maybe cause conflict.
Give us the drapi_ammo.cfg too

rodpod 06-08-2015 04:19

Re: [CSGO] - Ammo management | Zombie Escape / Riot
 
Quote:

Originally Posted by Dr. Api (Post 2305843)
CS:GO Weapon Paint maybe cause conflict.
Give us the drapi_ammo.cfg too

it does not. I use them on 2 servers and ammo is equipped correctly

shtopor 06-08-2015 04:48

Re: [CSGO] - Ammo management | Zombie Escape / Riot
 
Code:

// 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.1.2"


Dr. Api 06-08-2015 04:52

Re: [CSGO] - Ammo management | Zombie Escape / Riot
 
Ok so only P250, USP-S and M4A1-S are increased.
Try to set drapi_ammo_357sig_p250_max "141" something like that. It have to show you 141 - 26 = 115 ammo.

Dr. Api 06-08-2015 10:54

Re: [CSGO] - Ammo management | Correct Amount
 
V1.2.0
Added M4A1.
No bug anymore when reach 0. Ammo are set correctly.

So, The number you put in the drapi_ammo.cfg will be exactly the same in game for the weapon. No bug when you reach 0 etc...

shtopor 06-08-2015 16:59

Re: [CSGO] - Ammo management | Set correctly the ammo amout for each weapons
 
install version 1.2.0
Now all works
Dr. Api, thanks you

Dr. Api 06-09-2015 04:33

Re: [CSGO] - Ammo management | Set correctly the ammo amout for each weapons
 
Quote:

Originally Posted by shtopor (Post 2306006)
install version 1.2.0
Now all works
Dr. Api, thanks you

Welcome :)
Tell me if you have an issue when you takeover a bot. Think I will need to do something with that.

nguyenbaodanh 06-10-2015 06:51

Re: [CSGO] - Ammo management | Set correctly the ammo amout for each weapons
 
So this plugin only change the amount of ammo in backpack not in the gun right (clip size) ?

Dr. Api 06-10-2015 08:16

Re: [CSGO] - Ammo management | Set correctly the ammo amout for each weapons
 
Quote:

Originally Posted by nguyenbaodanh (Post 2306529)
So this plugin only change the amount of ammo in backpack not in the gun right (clip size) ?

It can but didn't want to go so far.

belouga 06-10-2015 08:47

Re: [CSGO] - Ammo management | Set correctly the ammo amout for each weapons
 
Quote:

Originally Posted by nguyenbaodanh (Post 2306529)
So this plugin only change the amount of ammo in backpack not in the gun right (clip size) ?

He return to the same because ammunitions are attached to the weapon, no?

Dr. Api 06-10-2015 09:00

Re: [CSGO] - Ammo management | Set correctly the ammo amout for each weapons
 
Quote:

Originally Posted by belouga (Post 2306541)
He return to the same because ammunitions are attached to the weapon, no?

Yeah but you can change it when you want, Hook the reload event to change it. Don't use weapon_reload use the SDK one.

belouga 06-10-2015 09:12

Re: [CSGO] - Ammo management | Set correctly the ammo amout for each weapons
 
Ok thanks, I see.

Dr. Api 06-11-2015 04:30

Re: [CSGO] - Ammo management | Set correctly the ammo amout for each weapons
 
Quote:

Originally Posted by belouga (Post 2306546)
Ok thanks, I see.

Au plaisir, rajoute moi sur steam si t'as des problemes.


All times are GMT -4. The time now is 14:27.

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