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

[l4d2] infinite shove and shove enabled on charger!


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Pizza baiana
Junior Member
Join Date: Jun 2023
Plugin ID:
8668
Plugin Version:
Plugin Category:
All
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Unapprover:
    Reason for Unapproving:
    Only changes game cvars.
    Old 03-21-2024 , 10:46   [l4d2] infinite shove and shove enabled on charger!
    Reply With Quote #1

    a plugin with a simple construction that I made a while ago but I don't remember why I didn't put it here. I only remembered this plugin when I saw someone in a topic asking about the plugins of a server like infinite shove...so I decided to put it here because it's probably what someone is looking for.

    there are 2 versions of this plugin:

    SHOVE_INFINITE_AND_CHARGER_SHOVE: allows you to perform infinite shove and apply shove to the charger.

    SHOVE_INFINITE_AND_NO_CHARGER_SHOVE: only applies the infinite shove and does not apply the shove on the charger.
    Attached Files
    File Type: sp Get Plugin or Get Source (SHOVE_INFINITE_AND_CHARGER_SHOVE.sp - 26 views - 640 Bytes)
    File Type: sp Get Plugin or Get Source (SHOVE_INFINITE_AND_NO_CHARGER_SHOVE.sp - 23 views - 578 Bytes)
    File Type: zip l4d2__plugin_-infinite-shove-and-charger-shove_29550_v2_1.zip (8.0 KB, 6 views)
    Pizza baiana is offline
    Pizza baiana
    Junior Member
    Join Date: Jun 2023
    Old 03-21-2024 , 10:48   Re: [l4d2] infinite shove and shove enabled on charger!
    Reply With Quote #2

    i hope the plugin masters don't bother with the code for this plugin XXXXDDDDDD
    Pizza baiana is offline
    eyal282
    Veteran Member
    Join Date: Aug 2011
    Old 03-21-2024 , 15:26   Re: [l4d2] infinite shove and shove enabled on charger!
    Reply With Quote #3

    Quote:
    Originally Posted by Pizza baiana View Post
    i hope the plugin masters don't bother with the code for this plugin XXXXDDDDDD
    I see you're able to program basic things. Ask Chat GPT or Bing AI to add cvars to enable and disable the plugin and check for bugs.

    Edit: this code of Bing AI should work after giving a quick look

    Code:
    #include <sourcemod>
    #include <sdktools>
    
    public Plugin myinfo =
    {
    	name = "Quick Revive",
    	author = "WhatsAnName",
    	description = "quickly revive teamates",
    	version = "1.0",
    	url = "https://forums.alliedmods.net/showthread.php?p=2596793#post2596793"
    };
    
    // Define ConVars
    ConVar g_cvarChargerShove;
    ConVar g_cvarInfiniteShove;
    
    public void OnPluginStart()
    {
    	// Create ConVars
    	g_cvarChargerShove = CreateConVar("charger_shove", "1", "Enable or disable charger shove");
    	g_cvarInfiniteShove = CreateConVar("infinite_shove", "1", "Enable or disable infinite shove");
    
    	// Hook ConVar changes
    	HookConVarChange(g_cvarChargerShove, vCvarChanges);
    	HookConVarChange(g_cvarInfiniteShove, vCvarChanges);
    
    	AutoExecConfig(true, "Quick Revive");
    }
    
    public void OnConfigsExecuted()
    {
    	iChangeCvars();
    }
    
    public void vCvarChanges(Handle convar, const char[] oldValue, const char[] newValue)
    {
    	iChangeCvars();
    }
    
    int iChangeCvars()
    {
    	// Use ConVar values in your function
    	SetConVarString(FindConVar("z_gun_swing_vs_cooldown"), GetConVarBool(g_cvarInfiniteShove) ? "0" : "1");
    	SetConVarString(FindConVar("z_charger_allow_shove"), GetConVarBool(g_cvarChargerShove) ? "1" : "0");
    }
    __________________
    I am available to make plugins for pay.

    Discord: Eyal282#1334

    Last edited by eyal282; 03-21-2024 at 15:30.
    eyal282 is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 03-21-2024 , 19:02   Re: [l4d2] infinite shove and shove enabled on charger!
    Reply With Quote #4

    These are just cvar changes anyone can do in the config. Low quality plugin. Sorry, unapproved.

    Quote:
    Originally Posted by eyal282 View Post
    add cvars to enable and disable the plugin and check for bugs.
    You can do this with a map config plugin. The original plugin is only changing game cvars, no need for extra enable/disable plugin.
    __________________

    Last edited by Silvers; 03-21-2024 at 19:04.
    Silvers is offline
    Reply


    Thread Tools
    Display Modes

    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 02:45.


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