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

[L4D & L4D2] Survivor Bot Select


Post New Thread Reply   
 
Thread Tools Display Modes
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 06-24-2021 , 21:27   Re: [L4D & L4D2] Survivor Bot Select
Reply With Quote #31

You copied the l4d2 signature Crasher provided to the l4d1 section of the gamedata.
__________________
Silvers is offline
sonic155
Senior Member
Join Date: Mar 2019
Old 06-24-2021 , 21:34   Re: [L4D & L4D2] Survivor Bot Select
Reply With Quote #32

PHP Code:
"Games"
{
    
"left4dead"
    
{
        
"Signatures"
        
{
            
"SetHumanSpec"
            
{
                
"library" "server"
                "linux" "@_ZN11SurvivorBot17SetHumanSpectatorEP13CTerrorPlayer"
                "windows" "\x2A\x2A\x2A\x2A\x2A\x2A\x83\xBE\x24\x43\x00\x00\x00\x7E\x2A\x32\xC0\x5E\x5D\xC2\x04\x00"
                
/* ? ? ? ? ? ? 83 BE 24 43 00 00 00 7E ? 32 C0 5E 5D C2 04 00 */
            
}
            
"TakeOverBot"
            
{
                
"library"    "server"
                "linux"    "@_ZN13CTerrorPlayer11TakeOverBotEb"
                "windows" "\x81\x2A\x2A\x2A\x2A\x2A\x53\x55\x56\x57\x8D\x2A\x2A\x2A\x8B\xF9\x33\xDB\x50"
            
}
        }
    }
    
"left4dead2"
    
{
        
"Signatures"
        
{
            
"SetHumanSpec"
            
{
                
"library" "server"
                "linux" "@_ZN11SurvivorBot17SetHumanSpectatorEP13CTerrorPlayer"
                "windows" "\x2A\x2A\x2A\x2A\x2A\x2A\x83\xBE\x24\x43\x00\x00\x00\x7E\x2A\x32\xC0\x5E\x5D\xC2\x04\x00"
                
/* ? ? ? ? ? ? 83 BE 24 43 00 00 00 7E ? 32 C0 5E 5D C2 04 00 */
            
}
            
"TakeOverBot"
            
{
                
"library"  "server"
                "linux"    "@_ZN13CTerrorPlayer11TakeOverBotEb"
                "windows"  "\x55\x8B\xEC\x81\xEC\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x53\x56\x8D\x85"
                
/* 55 8B EC 81 EC ? ? ? ? ? ? ? ? ? ? ? ? ? ? 53 56 8D 85 */
            
}  
        }
    }


ok so at the bottom on this line

/* 55 8B EC 81 EC ? ? ? ? ? ? ? ? ? ? ? ? ? ? 53 56 8D 85 */

there was a space at the end x.x but it works now sorry for the trouble e.e
sonic155 is offline
VladimirTk
Senior Member
Join Date: Apr 2021
Location: Perú - Latino América
Old 10-21-2021 , 23:34   Re: [L4D & L4D2] Survivor Bot Select
Reply With Quote #33

Updated Game Data Signatures


Signature credits updated to Psykotik for signatures
Attached Files
File Type: txt l4d_survivor_bot_select.txt (1.2 KB, 478 views)
VladimirTk is offline
laurauwu
Member
Join Date: Feb 2022
Location: Curitiba / PR - Brazil
Old 03-06-2022 , 09:38   Re: [L4D & L4D2] Survivor Bot Select
Reply With Quote #34

HELP

can phantom infected or infected use this command to switch teams, how do I block the command for phantom infected, and leave it only for dead survivors?
laurauwu is offline
Toranks
Senior Member
Join Date: Dec 2021
Location: Spain
Old 04-17-2022 , 19:29   Re: [L4D & L4D2] Survivor Bot Select
Reply With Quote #35

I have a doubt. When a player uses !pickbot, many times their stats will be reset at that time. I'm looking for a plugin that fixes this, because I'm pretty sure there is one. Can anybody point me? I've been searching so far
Toranks is offline
Spicee
Junior Member
Join Date: Jul 2020
Old 04-20-2022 , 06:18   Re: [L4D & L4D2] Survivor Bot Select
Reply With Quote #36

Suggestion: Players can also select bots without menu by typing "/pickbot <bot name>", like sb_takecontrol but without cheats.
Spicee is offline
BioHazardN7
Member
Join Date: Oct 2020
Location: Укр
Old 07-26-2023 , 12:46   Re: [L4D & L4D2] Survivor Bot Select
Reply With Quote #37

Code:
l4d_survivor_bot_select.sp(8) : warning 241: scalar assignment to array is deprecated; use "{ <val>, ... }" instead
l4d_survivor_bot_select.sp(109) : warning 242: function "Timer_RecordSteamID" should return an explicit value
l4d_survivor_bot_select.sp(150) : warning 242: function "Event_PlayerDeath" should return an explicit value
l4d_survivor_bot_select.sp(150) : warning 242: function "Event_PlayerDeath" should return an explicit value
l4d_survivor_bot_select.sp(150) : warning 242: function "Event_PlayerDeath" should return an explicit value
l4d_survivor_bot_select.sp(150) : warning 242: function "Event_PlayerDeath" should return an explicit value
l4d_survivor_bot_select.sp(150) : warning 242: function "Event_PlayerDeath" should return an explicit value
l4d_survivor_bot_select.sp(286) : warning 242: function "Timer_MenuHandler" should return an explicit value
l4d_survivor_bot_select.sp(293) : warning 209: function has explicit 'int' tag but does not return a value
l4d_survivor_bot_select.sp(293) : warning 209: function has explicit 'int' tag but does not return a value
l4d_survivor_bot_select.sp(293) : warning 209: function has explicit 'int' tag but does not return a value
Code size:         16644 bytes
Data size:         4648 bytes
Stack/heap size:      16724 bytes
Total requirements:   38016 bytes

11 Warnings.
BioHazardN7 is offline
srcaveira
New Member
Join Date: Sep 2023
Location: Recife (PE) - Brazil
Old 09-26-2023 , 16:30   Re: [L4D & L4D2] Survivor Bot Select
Reply With Quote #38

Hello, I'm not sure if it's allowed here to update third-party plugins, but I went ahead and updated your plugin.

If it's not permitted, I apologize as I'm relatively new here and not yet familiar with the rules.

Here are the new features I've added:

[Translations]
The plugin now includes PT-BR, ES, and EN translations for the menu and in-game elements (chat, menu, hint text, and more).

Translation Files:

- [EN]: translations/l4d_survivor_bot_select_pressing_e.phrases.tx t
- [PT-BR]: translations/pt/l4d_survivor_bot_select_pressing_e.phrases.tx t
- [ES]: translations/es/l4d_survivor_bot_select_pressing_e.phrases.tx t

[Hint Text]
When your character dies, a hint text will appear, instructing you to press the "E" key while spectating a bot to pick him up.

[New Function]
Pressing the "E" key after dying while spectating a bot will allow you to pick him up (allow to pick up the bot you were spectating).

[Fixes]
(26/09/2023) - I've fixed some compilation warnings related to returns (action functions now have a return Plugin_Continue and so on).
(30/09/2023) - Fixed plugin conflict reported by BioHazard N7, where wasn't working to get a Bot if in Idle, thanks for reporting.
(14/10/2023) - Fixed plugin issue reported by BioHazard N7, where wasn't working to get a Bot if it is the last one. But now it's fixed and working to get any bot (event if it's has be last one bot).

That's all! Your plugin is fantastic, btw. Thanks for your hard work!

Here go the files:

* .Zip File contains all files including translations, gamedata, plugin, source and all that *
* Download the .Zip File to load translations and all that *
Attached Files
File Type: zip L4D Bot Select Pressing E.zip (20.2 KB, 80 views)
File Type: smx l4d_survivor_bot_select_pressing_e.smx (10.7 KB, 44 views)
File Type: sp Get Plugin or Get Source (l4d_survivor_bot_select_pressing_e.sp - 78 views - 19.3 KB)

Last edited by srcaveira; 10-14-2023 at 05:03. Reason: Fixed plugin conflict reported by BioHazard N7, where wasn't working to get a Bot if in Idle and when was resting just 1 bot, thanks for reporting.
srcaveira is offline
BioHazardN7
Member
Join Date: Oct 2020
Location: Укр
Old 09-29-2023 , 09:00   Re: [L4D & L4D2] Survivor Bot Select
Reply With Quote #39

Quote:
Originally Posted by srcaveira View Post
[New Function]
Pressing the "E" key after dying while spectating a bot will allow you to pick him up (allow to pick up the bot you were spectating).
Plugins conflict!
Doesn't work when I use AutoTakeOver 5+ Survivors Improved Version 2.3 and Death Check Final together. I get the message: "This survivor bot is no longer available."
BioHazardN7 is offline
srcaveira
New Member
Join Date: Sep 2023
Location: Recife (PE) - Brazil
Old 09-30-2023 , 01:17   Re: [L4D & L4D2] Survivor Bot Select
Reply With Quote #40

Quote:
Originally Posted by BioHazardN7 View Post
Plugins conflict!
Doesn't work when I use AutoTakeOver 5+ Survivors Improved Version 2.3 and Death Check Final together. I get the message: "This survivor bot is no longer available."
It's fixed. Thanks for reporting. Btw, why are you using 2 plugins with the same goal (pick bots)?

Last edited by srcaveira; 09-30-2023 at 01:19.
srcaveira 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:18.


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