AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugin/Gameplay Ideas and Requests (https://forums.alliedmods.net/forumdisplay.php?f=60)
-   -   8 survivors in the rescue vehicle (https://forums.alliedmods.net/showthread.php?t=326643)

yabi 09-23-2021 20:38

Re: 8 survivors in the rescue vehicle
 
Quote:

Originally Posted by cravenge (Post 2726779)
Saved you the trouble for it. Left some comments in there too for easy customizing.


Excuse me, which folder is this file in?

Marttt 09-23-2021 21:11

Re: 8 survivors in the rescue vehicle
 
This is for Stripper extension.

You should paste it into "addons/stripper/maps" folder.

yabi 09-24-2021 13:01

Re: 8 survivors in the rescue vehicle
 
Quote:

Originally Posted by Marttt (Post 2758689)
This is for Stripper extension.

You should paste it into "addons/stripper/maps" folder.



Steam\steamapps\common\Left 4 Dead 2\left4dead2\addons\stripper\maps

@@?Is that right?~

Marttt 09-24-2021 13:24

Re: 8 survivors in the rescue vehicle
 
Yeah but you need Stripper extension installed.

Link here

VYRNACH_GAMING 02-11-2022 06:13

Re: 8 survivors in the rescue vehicle
 
Quote:

Originally Posted by cravenge (Post 2726779)
Saved you the trouble for it. Left some comments in there too for easy customizing.

Amazing work with this stripper config. Just wanna confirm on this:
Quote:

Keep in mind that the value of "info_survivor_position" entities must be equal to the maximum limit of survivors set inyour server
does this mean that I need to duplicate until there's enough records for each player if I have 20 players in my server?
c6m3_port.cfg
Code:

add:
{
        "origin" "-177.295 149.675 0"
        "targetname" "train_survivor_pos5"
        "Order" "1"
        "angles" "0 90 0"
        "classname" "info_survivor_position"
}
{
        "origin" "-241.295 149.675 0"
        "targetname" "train_survivor_pos6"
        "Order" "2"
        "angles" "0 90 0"
        "classname" "info_survivor_position"
}
{
        "origin" "-305.295 149.675 0"
        "targetname" "train_survivor_pos7"
        "Order" "3"
        "angles" "0 90 0"
        "classname" "info_survivor_position"
}
{
        "origin" "-369.295 149.675 0"
        "targetname" "train_survivor_pos8"
        "Order" "4"
        "angles" "0 90 0"
        "classname" "info_survivor_position"
}
{
        "origin" "-177.295 149.675 0"
        "targetname" "train_survivor_pos9"
        "Order" "1"
        "angles" "0 90 0"
        "classname" "info_survivor_position"
}
{
        "origin" "-241.295 149.675 0"
        "targetname" "train_survivor_pos10"
        "Order" "2"
        "angles" "0 90 0"
        "classname" "info_survivor_position"
}
{
        "origin" "-305.295 149.675 0"
        "targetname" "train_survivor_pos11"
        "Order" "3"
        "angles" "0 90 0"
        "classname" "info_survivor_position"
}
{
        "origin" "-369.295 149.675 0"
        "targetname" "train_survivor_pos12"
        "Order" "4"
        "angles" "0 90 0"
        "classname" "info_survivor_position"
}
{
        "origin" "-177.295 149.675 0"
        "targetname" "train_survivor_pos3"
        "Order" "1"
        "angles" "0 90 0"
        "classname" "info_survivor_position"
}
{
        "origin" "-241.295 149.675 0"
        "targetname" "train_survivor_pos14"
        "Order" "2"
        "angles" "0 90 0"
        "classname" "info_survivor_position"
}
{
        "origin" "-305.295 149.675 0"
        "targetname" "train_survivor_pos15"
        "Order" "3"
        "angles" "0 90 0"
        "classname" "info_survivor_position"
}
{
        "origin" "-369.295 149.675 0"
        "targetname" "train_survivor_pos16"
        "Order" "4"
        "angles" "0 90 0"
        "classname" "info_survivor_position"
}

Or do I just uncomment the lines
c6m3_port.cfg
Code:

add:
{
        "origin" "-177.295 149.675 0"
        "targetname" "train_survivor_pos5"
        "Order" "1"
        "angles" "0 90 0"
        "classname" "info_survivor_position"
}
{
        "origin" "-241.295 149.675 0"
        "targetname" "train_survivor_pos6"
        "Order" "2"
        "angles" "0 90 0"
        "classname" "info_survivor_position"
}
{
        "origin" "-305.295 149.675 0"
        "targetname" "train_survivor_pos7"
        "Order" "3"
        "angles" "0 90 0"
        "classname" "info_survivor_position"
}
{
        "origin" "-369.295 149.675 0"
        "targetname" "train_survivor_pos8"
        "Order" "4"
        "angles" "0 90 0"
        "classname" "info_survivor_position"
}
{
        "origin" "-177.295 149.675 0"
        "targetname" "train_survivor_pos9"
        "Order" "1"
        "angles" "0 90 0"
        "classname" "info_survivor_position"
}
{
        "origin" "-241.295 149.675 0"
        "targetname" "train_survivor_pos10"
        "Order" "2"
        "angles" "0 90 0"
        "classname" "info_survivor_position"
}
{
        "origin" "-305.295 149.675 0"
        "targetname" "train_survivor_pos11"
        "Order" "3"
        "angles" "0 90 0"
        "classname" "info_survivor_position"
}
{
        "origin" "-369.295 149.675 0"
        "targetname" "train_survivor_pos12"
        "Order" "4"
        "angles" "0 90 0"
        "classname" "info_survivor_position"
}


sorallll 02-11-2022 06:55

Re: 8 survivors in the rescue vehicle
 
Currently I use this and it works fine

PHP Code:

HookEvent("finale_vehicle_leaving"Event_FinaleVehicleLeaving);

void Event_FinaleVehicleLeaving(Event event, const char[] namebool dontBroadcast)
{
    
int entity FindEntityByClassname(MaxClients 1"info_survivor_position");
    if(
entity == INVALID_ENT_REFERENCE)
        return;

    
float vOrigin[3];
    
GetEntPropVector(entityProp_Send"m_vecOrigin"vOrigin);

    
int iSurvivor;
    static const 
char sOrder[][] = {"1""2""3""4"};
    for(
int i 1<= MaxClientsi++)
    {
        if(!
IsClientInGame(i) || GetClientTeam(i) != TEAM_SURVIVOR)
            continue;
            
        if(++
iSurvivor 4)
            continue;
            
        
entity CreateEntityByName("info_survivor_position");
        
DispatchKeyValue(entity"Order"sOrder[iSurvivor RoundToFloor(iSurvivor 4.0) * 4]);
        
TeleportEntity(entityvOriginNULL_VECTORNULL_VECTOR);
        
DispatchSpawn(entity);
    }



Gold Fish 02-11-2022 07:10

Re: 8 survivors in the rescue vehicle
 
Quote:

Originally Posted by sorallll (Post 2771135)
Currently I use this and it works fine

PHP Code:

HookEvent("finale_vehicle_leaving"Event_FinaleVehicleLeaving);

void Event_FinaleVehicleLeaving(Event event, const char[] namebool dontBroadcast)
{
    
int entity FindEntityByClassname(MaxClients 1"info_survivor_position");
    if(
entity == INVALID_ENT_REFERENCE)
        return;

    
float vOrigin[3];
    
GetEntPropVector(entityProp_Send"m_vecOrigin"vOrigin);

    
int iSurvivor;
    static const 
char sOrder[][] = {"1""2""3""4"};
    for(
int i 1<= MaxClientsi++)
    {
        if(!
IsClientInGame(i) || GetClientTeam(i) != TEAM_SURVIVOR)
            continue;
            
        if(++
iSurvivor 4)
            continue;
            
        
entity CreateEntityByName("info_survivor_position");
        
DispatchKeyValue(entity"Order"sOrder[iSurvivor RoundToFloor(iSurvivor 4.0) * 4]);
        
TeleportEntity(entityvOriginNULL_VECTORNULL_VECTOR);
        
DispatchSpawn(entity);
    }



Entity info_survivor_position is needed even for spawn players so that they do not spawn at one point. I think use Striper it is better idea to set unique coordinates for each info_survivor_position

VYRNACH_GAMING 02-11-2022 07:10

Re: 8 survivors in the rescue vehicle
 
Quote:

Originally Posted by sorallll (Post 2771135)
Currently I use this and it works fine

PHP Code:

HookEvent("finale_vehicle_leaving"Event_FinaleVehicleLeaving);

void Event_FinaleVehicleLeaving(Event event, const char[] namebool dontBroadcast)
{
    
int entity FindEntityByClassname(MaxClients 1"info_survivor_position");
    if(
entity == INVALID_ENT_REFERENCE)
        return;

    
float vOrigin[3];
    
GetEntPropVector(entityProp_Send"m_vecOrigin"vOrigin);

    
int iSurvivor;
    static const 
char sOrder[][] = {"1""2""3""4"};
    for(
int i 1<= MaxClientsi++)
    {
        if(!
IsClientInGame(i) || GetClientTeam(i) != TEAM_SURVIVOR)
            continue;
            
        if(++
iSurvivor 4)
            continue;
            
        
entity CreateEntityByName("info_survivor_position");
        
DispatchKeyValue(entity"Order"sOrder[iSurvivor RoundToFloor(iSurvivor 4.0) * 4]);
        
TeleportEntity(entityvOriginNULL_VECTORNULL_VECTOR);
        
DispatchSpawn(entity);
    }



how do you use this? As a plugin?

sorallll 02-11-2022 08:23

Re: 8 survivors in the rescue vehicle
 
2 Attachment(s)
Quote:

Originally Posted by VYRNACH_GAMING (Post 2771137)
how do you use this? As a plugin?


strikeraot 02-11-2022 09:29

Re: 8 survivors in the rescue vehicle
 
Code:

// C:\Program Files (x86)\Steam\steamapps\common\Left 4 Dead 2 Dedicated Server\left4dead2\addons\sourcemod\scripting\l4d2_test.sp(21) : error 017: undefined symbol "FindEntityByClassname"
// C:\Program Files (x86)\Steam\steamapps\common\Left 4 Dead 2 Dedicated Server\left4dead2\addons\sourcemod\scripting\l4d2_test.sp(32) : error 017: undefined symbol "TEAM_SURVIVOR"
// C:\Program Files (x86)\Steam\steamapps\common\Left 4 Dead 2 Dedicated Server\left4dead2\addons\sourcemod\scripting\l4d2_test.sp(38) : error 017: undefined symbol "CreateEntityByName"
// C:\Program Files (x86)\Steam\steamapps\common\Left 4 Dead 2 Dedicated Server\left4dead2\addons\sourcemod\scripting\l4d2_test.sp(39) : error 017: undefined symbol "DispatchKeyValue"
// C:\Program Files (x86)\Steam\steamapps\common\Left 4 Dead 2 Dedicated Server\left4dead2\addons\sourcemod\scripting\l4d2_test.sp(40) : error 017: undefined symbol "TeleportEntity"
// C:\Program Files (x86)\Steam\steamapps\common\Left 4 Dead 2 Dedicated Server\left4dead2\addons\sourcemod\scripting\l4d2_test.sp(41) : error 017: undefined symbol "DispatchSpawn"


sorallll 02-11-2022 10:17

Re: 8 survivors in the rescue vehicle
 
Quote:

Originally Posted by strikeraot (Post 2771145)
Code:

// C:\Program Files (x86)\Steam\steamapps\common\Left 4 Dead 2 Dedicated Server\left4dead2\addons\sourcemod\scripting\l4d2_test.sp(21) : error 017: undefined symbol "FindEntityByClassname"
// C:\Program Files (x86)\Steam\steamapps\common\Left 4 Dead 2 Dedicated Server\left4dead2\addons\sourcemod\scripting\l4d2_test.sp(32) : error 017: undefined symbol "TEAM_SURVIVOR"
// C:\Program Files (x86)\Steam\steamapps\common\Left 4 Dead 2 Dedicated Server\left4dead2\addons\sourcemod\scripting\l4d2_test.sp(38) : error 017: undefined symbol "CreateEntityByName"
// C:\Program Files (x86)\Steam\steamapps\common\Left 4 Dead 2 Dedicated Server\left4dead2\addons\sourcemod\scripting\l4d2_test.sp(39) : error 017: undefined symbol "DispatchKeyValue"
// C:\Program Files (x86)\Steam\steamapps\common\Left 4 Dead 2 Dedicated Server\left4dead2\addons\sourcemod\scripting\l4d2_test.sp(40) : error 017: undefined symbol "TeleportEntity"
// C:\Program Files (x86)\Steam\steamapps\common\Left 4 Dead 2 Dedicated Server\left4dead2\addons\sourcemod\scripting\l4d2_test.sp(41) : error 017: undefined symbol "DispatchSpawn"


Using the version I just uploaded, now it compiles

cravenge 02-14-2022 02:14

Re: 8 survivors in the rescue vehicle
 
I should mention before I forget that while the plug-in method works, it doesn't sit right with the Steam stats for some reason. I've had perfectionists (>.>) play in my server and complained that their Finales survived rate got ruined. So unless you care about complying to your players' demands, you can ignore this.

VYRNACH_GAMING 02-15-2022 22:50

Re: 8 survivors in the rescue vehicle
 
1 Attachment(s)
working perfectly well without any tweaking at all. Thank you so much for great work. Consider making this as a plugin thread as I'm sure many people will find this very useful.

I've added some basic descriptive info like name and description so that this does not confuse myself in the future and nothing else.

thewintersoldier97 02-16-2022 05:12

Re: 8 survivors in the rescue vehicle
 
Big thanks to everyone involved for this awesome fix!

laurauwu 03-20-2022 14:03

Re: 8 survivors in the rescue vehicle
 
I tried all the methods, stripper and all the plugins that posted here, but it doesn't work, the survivors are still stopped, and when the map ends it appears that only 4 survivors were rescued, my server is versus, in none of the 2 rounds it works, someone have another method

I use a plugin that warns when someone is about to die, I noticed that when the scene starts everyone is in "black and white" as if they were going to die, it's very fast but that happens

my server is linux, sourcemod 1.10

https://i.imgur.com/V4UyHHr.jpg

CaRmilla 11-29-2022 19:44

Re: 8 survivors in the rescue vehicle
 
God bless you!!! I hope this works cause it has been bugging me since the last stand update :|

CaRmilla 05-03-2024 11:31

Re: 8 survivors in the rescue vehicle
 
I have been using this plugin so far with no problems but I have noticed in the last few days that an extra 4+ player would randomly get killed in the rescue vehicle so I am wondering if the latest L4D2 update/updates might have broken the plugin?


All times are GMT -4. The time now is 04:08.

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