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

[L4D2] Remove Ammo Stack v1.7【2024-04-22】


Post New Thread Reply   
 
Thread Tools Display Modes
Author
little_froy
Senior Member
Join Date: May 2021
Plugin ID:
8248
Plugin Version:
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Old 10-21-2022 , 04:20   [L4D2] Remove Ammo Stack v1.7【2024-04-22】
    Reply With Quote #1

    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" 




    Change log
    Spoiler
    Attached Files
    File Type: sp Get Plugin or Get Source (remove_ammo_stack.sp - 1 views - 3.4 KB)

    Last edited by little_froy; 04-21-2024 at 18:35.
    little_froy is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 10-21-2022 , 05:56   Re: [L4D2] Remove Ammo Stack v1.0.0 (2022-10-21)
    Reply With Quote #2

    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);
        }

    __________________
    Silvers is offline
    little_froy
    Senior Member
    Join Date: May 2021
    Old 10-23-2022 , 03:36   Re: [L4D2] Remove Ammo Stack v1.0.0 (2022-10-21)
    Reply With Quote #3

    Quote:
    Originally Posted by Silvers View Post
    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.
    little_froy is offline
    Pizza baiana
    Junior Member
    Join Date: Jun 2023
    Old 03-26-2024 , 22:39   Re: [L4D2] Remove Ammo Stack v1.6【2024-02-22】
    Reply With Quote #4

    this plugin increases the realism of infinite ammunition!
    Pizza baiana 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 11:11.


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