From a9de384ad16936fe20d072ce17c608e2fad4973e Mon Sep 17 00:00:00 2001 From: KevinClifford <80000kevin@gmail.com> Date: Mon, 2 Feb 2015 07:20:36 -0500 Subject: [PATCH] Fix for SLAM and AR2Altfire (hl2mp_gamerules.cpp) Simple fix for the isues with the ammo for the SLAM and AR2Altfire This will also allow many more ammo-types to be added by someone, who is using this base. This is an edit to hl2mp_gamerules.cpp Something I didn't include (so I wouldn't have to make multiple pull requests) is that you will also have to edit MAX_AMMO_TYPES and MAX_AMMO_SLOTS in shareddefs.h to be 128 instead of 32. --- mp/src/game/shared/hl2mp/hl2mp_gamerules.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mp/src/game/shared/hl2mp/hl2mp_gamerules.cpp b/mp/src/game/shared/hl2mp/hl2mp_gamerules.cpp index 1d257856a..2a373e752 100644 --- a/mp/src/game/shared/hl2mp/hl2mp_gamerules.cpp +++ b/mp/src/game/shared/hl2mp/hl2mp_gamerules.cpp @@ -1148,8 +1148,8 @@ CAmmoDef *GetAmmoDef() def.AddAmmoType("RPG_Round", DMG_BURN, TRACER_NONE, 0, 0, 3, 0, 0 ); def.AddAmmoType("SMG1_Grenade", DMG_BURN, TRACER_NONE, 0, 0, 3, 0, 0 ); def.AddAmmoType("Grenade", DMG_BURN, TRACER_NONE, 0, 0, 5, 0, 0 ); - def.AddAmmoType("slam", DMG_BURN, TRACER_NONE, 0, 0, 5, 0, 0 ); #endif //SecobMod__Enable_Fixed_Multiplayer_AI + def.AddAmmoType("slam", DMG_BURN, TRACER_NONE, 0, 0, 5, 0, 0 ); //Always include SLAM ammo } return &def;