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

[L4D2] Back First Map When Campaign Fails


Post New Thread Reply   
 
Thread Tools Display Modes
Author
manhkst
Member
Join Date: May 2015
Location: Vietnammese
Plugin ID:
4928
Plugin Version:
1.0
Plugin Category:
General Purpose
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    If the campaign fails at any map then will back first map of chapter
    Old 11-29-2015 , 10:50   [L4D2] Back First Map When Campaign Fails
    Reply With Quote #1

    - Hello! I come from Vietnamese , this is my first plugins, plugins feature of this is just as the name implies. I'm happy if someone comments on my plugins or add to its ideas.
    Sorry for my english is bad, I had to use google translate to post.

    [Support]
    Plugins game only supports L4D2 in mode coop and realism

    [Install]
    Place [L4D2]_BackFirstMapWhenCampaignFails.smx in sourcemod/plugins
    Or
    Place [L4D2]_BackFirstMapWhenCampaignFails.sp in sourcemod/scripting. After compile you copy [L4D2]_BackFirstMapWhenCampaignFails.smx place in sourcemod/plugins with your version of SourceMod.
    Attached Files
    File Type: smx [L4D2]_BackFirstMapWhenCampaignFails.smx (5.4 KB, 359 views)
    File Type: sp Get Plugin or Get Source ([L4D2]_BackFirstMapWhenCampaignFails.sp - 896 views - 7.1 KB)
    __________________
    FD ʚïɞ Team
    Blog: http://fleeingdeath.blogspot.com/

    Last edited by manhkst; 11-29-2015 at 12:24.
    manhkst is offline
    leonardo martinez
    Member
    Join Date: Jun 2014
    Old 11-30-2015 , 12:28   Re: [L4D2] Back First Map When Campaign Fails
    Reply With Quote #2

    I also use google translator. I wanted to help, I have good ideas.
    leonardo martinez is offline
    leonardo martinez
    Member
    Join Date: Jun 2014
    Old 11-30-2015 , 12:32   Re: [L4D2] Back First Map When Campaign Fails
    Reply With Quote #3

    You can make the Tank throw a rock, to walk and jump at the same time.
    leonardo martinez is offline
    manhkst
    Member
    Join Date: May 2015
    Location: Vietnammese
    Old 11-30-2015 , 12:36   Re: [L4D2] Back First Map When Campaign Fails
    Reply With Quote #4

    Quote:
    Originally Posted by leonardo martinez View Post
    I also use google translator. I wanted to help, I have good ideas.
    thank you! you can make the idea you want to contribute. I would consider the idea and discussing it with you and everybody.
    __________________
    FD ʚïɞ Team
    Blog: http://fleeingdeath.blogspot.com/
    manhkst is offline
    manhkst
    Member
    Join Date: May 2015
    Location: Vietnammese
    Old 11-30-2015 , 12:46   Re: [L4D2] Back First Map When Campaign Fails
    Reply With Quote #5

    Quote:
    Originally Posted by leonardo martinez View Post
    You can make the Tank throw a rock, to walk and jump at the same time.
    I think the idea that you give up work or function related to my plugins on post, an example is after campaign fail and restart the survivors will only start to the campaign is 80HP
    __________________
    FD ʚïɞ Team
    Blog: http://fleeingdeath.blogspot.com/
    manhkst is offline
    NoroHime
    Veteran Member
    Join Date: Aug 2016
    Location: bed
    Old 01-20-2022 , 11:44   Re: [L4D2] Back First Map When Campaign Fails
    Reply With Quote #6

    hey, if you want restart campaign just use mp_restartgame <time>
    __________________
    NoroHime is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 01-20-2022 , 12:03   Re: [L4D2] Back First Map When Campaign Fails
    Reply With Quote #7

    Quote:
    Originally Posted by NoroHime View Post
    hey, if you want restart campaign just use mp_restartgame <time>
    That wouldn't reset it to the first chapter as this plugin does. Although it's all hard coded.

    Could look at Info Editor and use the API to find the first map then reset to that. VoteMode plugin scans through the maps looking for valid maps when changing to certain gamemodes, something similar can be done with that code to make it find the first chapter so it would work for all maps.
    __________________

    Last edited by Silvers; 01-20-2022 at 12:03.
    Silvers is offline
    NoroHime
    Veteran Member
    Join Date: Aug 2016
    Location: bed
    Old 01-20-2022 , 14:18   Re: [L4D2] Back First Map When Campaign Fails
    Reply With Quote #8

    Quote:
    Originally Posted by Silvers View Post
    That wouldn't reset it to the first chapter as this plugin does. Although it's all hard coded.

    Could look at Info Editor and use the API to find the first map then reset to that. VoteMode plugin scans through the maps looking for valid maps when changing to certain gamemodes, something similar can be done with that code to make it find the first chapter so it would work for all maps.
    i remember in game stock vote can vote restart campaign, can we trigger directly?
    __________________
    NoroHime is offline
    NoroHime
    Veteran Member
    Join Date: Aug 2016
    Location: bed
    Old 03-18-2022 , 00:04   Re: [L4D2] Back First Map When Campaign Fails
    Reply With Quote #9

    super lite version use Left 4 Dhooks Direct

    PHP Code:
    #define PLUGIN_VERSION    "1.0.1"
    #define PLUGIN_NAME        "l4d2_no_fail_lite"

    /**
     *    v1.0 just releases; 16-March-2022
     *    v1.0.1 support online compile; 16-March-2022
     */

    #pragma semicolon 1
    #pragma newdecls required
    #include <sourcemod>
    #include <sdkhooks>

    native void L4D2_FullRestart();
    native bool L4D_IsCoopMode();
    native bool L4D2_IsRealismMode();

    ConVar Enabled;

    public 
    Plugin myinfo = {
        
    name "[L4D2] No Fail Lite",
        
    author "NoroHime",
        
    description "we have to be a little challenged",
        
    version PLUGIN_VERSION,
        
    url "https://steamcommunity.com/id/NoroHime/"
    }

    public 
    void OnPluginStart() {

        
    Enabled =                     CreateConVar("no_fail_enabled""1",        "Enabled 'No Fail Lite'"FCVAR_NOTIFY);
        
    AutoExecConfig(truePLUGIN_NAME);
        
    HookEvent("mission_lost"OnMissionLostEventHookMode_PostNoCopy);
    }

    public 
    void OnMissionLost(Event event, const char[] namebool dontBroadcast) {

        if ( (
    L4D_IsCoopMode() || L4D2_IsRealismMode()) && Enabled.BoolValue)
            
    L4D2_FullRestart();

    ConVar

    PHP Code:
    // Enabled 'No Fail Lite'
    no_fail_enabled "1" 
    why it call "lite", because im planning a bigger version it votes to enable many challenge mode
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d2_no_fail_lite.sp - 142 views - 1.0 KB)
    __________________

    Last edited by NoroHime; 03-18-2022 at 00:32.
    NoroHime 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 01:51.


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