Raised This Month: $252 Target: $400
 63% 

[L4D & L4D2] Survivor Bot Select


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Merudo
Senior Member
Join Date: Feb 2016
Plugin ID:
5116
Plugin Version:
1.0
Plugin Category:
General Purpose
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    22 
    Plugin Description:
    Allows survivor players to select an existing survivor bot and take control of it
    Old 04-08-2016 , 06:26   [L4D & L4D2] Survivor Bot Select
    Reply With Quote #1

    Description:

    This plugin allows survivor players to select an existing survivor bot and take control of it. The player has full control on which bot to takeover.

    Usage

    Players may use sm_pickbot (!pickbot) to make a menu appear and show available bots and their health, and offer an option to takeover one of the bot.

    Alternatively, idle players may press the right mouse button to change the bot they are idling.

    Finally, players may use sm_nextbot (!nextbot) and sm_prevbot (!prevbot) to quickly go through the available bots.

    Installation

    l4d_survivor_bot_select.smx -> \addons\sourcemod\plugins\
    l4d_survivor_bot_select.txt -> \addons\sourcemod\gamedata\

    Cvars

    - l4d_sbs_version : Version number
    - l4d_sbs_pick: Enable use of commands to pick a bot? 1: Enable, 0: Disable, Default 1
    - l4d_sbs_idle: Allow survivors to change idle bot with right mouse button? 1: Enable, 0: Disable, Default 1
    - l4d_sbs_time: Time in seconds that survivors have to change bots once they spawn. -1: Infinite time. Default -1.
    - l4d_sbs_dead: Always allow dead survivors to change bots? 1: Enable, 0: Disable, Default 1.

    Screenshot
    http://imgur.com/Ow87baw
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d_survivor_bot_select.sp - 4570 views - 15.9 KB)
    File Type: txt l4d_survivor_bot_select.txt (1.1 KB, 2941 views)
    __________________

    Last edited by Merudo; 04-08-2016 at 21:10.
    Merudo is offline
    MasterMind420
    Veteran Member
    Join Date: Nov 2010
    Old 04-08-2016 , 16:25   Re: [L4D] Survivor Bot Select
    Reply With Quote #2

    2 questions...will this work for l4d2, I assume no because of the title. If not, can you make it work for l4d2? I requested a plugin like this a long time ago for l4d2, panxiao made one but it was buggy as hell and he gave up on it.
    MasterMind420 is offline
    Merudo
    Senior Member
    Join Date: Feb 2016
    Old 04-08-2016 , 16:32   Re: [L4D(2)] Survivor Bot Select
    Reply With Quote #3

    Yes, it works with both L4D & L4D2. I have edited the title to reflect that.

    I have never seen panxiao's version, do you know where I can find it?
    __________________

    Last edited by Merudo; 04-08-2016 at 17:40.
    Merudo is offline
    MasterMind420
    Veteran Member
    Join Date: Nov 2010
    Old 04-08-2016 , 20:31   Re: [L4D(2)] Survivor Bot Select
    Reply With Quote #4

    Quote:
    Originally Posted by Merudo View Post
    Yes, it works with both L4D & L4D2. I have edited the title to reflect that.

    I have never seen panxiao's version, do you know where I can find it?
    https://forums.alliedmods.net/showthread.php?p=1446781
    lol i just checked it out after years and he didn't do much with it...it's very minimal

    https://forums.alliedmods.net/showthread.php?p=1192594
    Muukis's version, not sure if you seen this, theres also a Link in his post to another one.

    Great job btw...
    MasterMind420 is offline
    Merudo
    Senior Member
    Join Date: Feb 2016
    Old 04-08-2016 , 21:09   Re: [L4D & L4D2] Survivor Bot Select
    Reply With Quote #5

    I have seen Muukis's version. The main problem with it is that you always end up with a random bot. You also can't use it to let players who just joined have a few seconds to pick the bot they want.

    Overall the main use of his plugin is to let dead survivor players continue playing as a random bot. I think most players will agree that having the option to actually chose which bot to get is better .

    Muukis's also have other configuration options (autoincap takeover, autodeath takeover, voting to takeover) but I don't see much use for them at the moment.
    __________________
    Merudo is offline
    bazrael
    Senior Member
    Join Date: Jan 2010
    Location: Where Lucy became superw
    Old 04-30-2016 , 03:36   Re: [L4D & L4D2] Survivor Bot Select
    Reply With Quote #6

    Appreciate your plugin. It works like a charm! Another tiny feedback is explanation can be more plain.
    Quote:
    l4d_sbs_time: Limited time in seconds that survivors have to change bots in currunt round. Players can't change bot after time expires. -1: Infinite time. Default -1.
    Before used this plugin, I thought plugin would randomly choose a bot for players after time expired.

    Last edited by bazrael; 04-30-2016 at 03:37. Reason: feedback
    bazrael is offline
    Edison1318
    Senior Member
    Join Date: Nov 2015
    Location: Peaceful place of the in
    Old 06-12-2016 , 05:24   Re: [L4D & L4D2] Survivor Bot Select
    Reply With Quote #7

    Maybe you can add another command that enter the Bot's name for example: sm_pickbot (Nick,Rochelle,survivor's name) will be better.
    __________________
    EdisonGar
    Edison1318 is offline
    Send a message via Skype™ to Edison1318
    Electr000999
    Senior Member
    Join Date: Aug 2011
    Location: Russia, Perm
    Old 06-12-2016 , 07:59   Re: [L4D & L4D2] Survivor Bot Select
    Reply With Quote #8

    i like this plugin but this have issue: Timer_RecordSteamID not utilized datapack handle after callback used. i think this need be replaced by data timer because even if you add in delete datapack; in body of callback Timer_RecordSteamID this not give you garanties in case MAPCHANGE (timer have TIMER_FLAG_NO_MAPCHANGE flag, and in this case callback Timer_RecordSteamID not called and datapack not delete from memory)

    Fix:

    i just replaced this:
    Handle datapack = CreateDataPack(); WritePackString(datapack,SteamID); WritePackCell(datapack,userid);
    CreateTimer(Cvar_TimeBot.FloatValue, Timer_RecordSteamID, datapack, TIMER_FLAG_NO_MAPCHANGE);

    To this:
    Handle datapack;
    CreateDataTimer(Cvar_TimeBot.FloatValue, Timer_RecordSteamID, datapack, TIMER_FLAG_NO_MAPCHANGE);
    WritePackString(datapack,SteamID);
    WritePackCell(datapack,userid);

    Last edited by Electr000999; 06-12-2016 at 13:07.
    Electr000999 is offline
    Send a message via Skype™ to Electr000999
    bazrael
    Senior Member
    Join Date: Jan 2010
    Location: Where Lucy became superw
    Old 07-30-2016 , 13:57   Re: [L4D & L4D2] Survivor Bot Select
    Reply With Quote #9

    Quote:
    Originally Posted by Electr000999 View Post
    Fix:
    i just replaced this:
    Handle datapack = CreateDataPack(); WritePackString(datapack,SteamID); WritePackCell(datapack,userid);
    CreateTimer(Cvar_TimeBot.FloatValue, Timer_RecordSteamID, datapack, TIMER_FLAG_NO_MAPCHANGE);

    To this:
    Handle datapack;
    CreateDataTimer(Cvar_TimeBot.FloatValue, Timer_RecordSteamID, datapack, TIMER_FLAG_NO_MAPCHANGE);
    WritePackString(datapack,SteamID);
    WritePackCell(datapack,userid);
    Would this fix what bug that users may experience? Could you directly release original *.sp file you edited?

    -- New question for Merudo --
    I found if a player changed to other bots in idle state with right click of mouse, that player's name would sometimes replace all survivor's names, even if he only changed once.

    Last edited by bazrael; 09-19-2016 at 12:06. Reason: New question
    bazrael is offline
    Newbie_Sexy
    Member
    Join Date: Aug 2016
    Location: Vietnam
    Old 07-29-2017 , 07:50   Re: [L4D & L4D2] Survivor Bot Select
    Reply With Quote #10

    I have catched 10 Errors when compile this plugin. I like it very much...
    [Screenshot]
    __________________
    I am a noob so... hope you guys will help me up
    P/s .-. : My English is bad, i am good at Vietnamese

    Last edited by Newbie_Sexy; 07-29-2017 at 07:51.
    Newbie_Sexy 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 07:05.


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