AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D2] Remove Ammo Stack v1.7【2024-04-22】 (https://forums.alliedmods.net/showthread.php?t=340048)

little_froy 10-21-2022 04:20

[L4D2] Remove Ammo Stack v1.7【2024-04-22】
 
1 Attachment(s)
Description
  • Simply remove ammo stack from map.
  • you can use it if enabled infinite reserve ammo by cvars below or other plugins:
    PHP Code:

    sm_cvar ammo_assaultrifle_max "-2"
    sm_cvar ammo_autoshotgun_max "-2"
    sm_cvar ammo_huntingrifle_max "-2"
    sm_cvar ammo_shotgun_max "-2"
    sm_cvar ammo_smg_max "-2"
    sm_cvar ammo_sniperrifle_max "-2"
    sm_cvar ammo_m60_max "-2"
    sm_cvar ammo_grenadelauncher_max "-2" 


https://s2.loli.net/2023/01/14/4n5idFWjATXkVNU.png
https://s2.loli.net/2023/01/14/gKiCXk4I1WUdOa7.png

Change log
Spoiler

Silvers 10-21-2022 05:56

Re: [L4D2] Remove Ammo Stack v1.0.0 (2022-10-21)
 
Better to remove it:

PHP Code:

public Action on_ammo_stack_spawn(int entity)
{
    
RemoveEntity(entity);
}

public 
void OnEntityCreated(int entity, const char[] classname)
{
    if(
strcmp(classname"weapon_ammo_spawn") == 0)
    {
        
SDKHook(entitySDKHook_Spawnon_ammo_stack_spawn);
    }



little_froy 10-23-2022 03:36

Re: [L4D2] Remove Ammo Stack v1.0.0 (2022-10-21)
 
Quote:

Originally Posted by Silvers (Post 2791289)
Better to remove it:

PHP Code:

public Action on_ammo_stack_spawn(int entity)
{
    
RemoveEntity(entity);
}

public 
void OnEntityCreated(int entity, const char[] classname)
{
    if(
strcmp(classname"weapon_ammo_spawn") == 0)
    {
        
SDKHook(entitySDKHook_Spawnon_ammo_stack_spawn);
    }



i made it.

Pizza baiana 03-26-2024 22:39

Re: [L4D2] Remove Ammo Stack v1.6【2024-02-22】
 
this plugin increases the realism of infinite ammunition!


All times are GMT -4. The time now is 13:56.

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