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

[L4D2] Elevator Teleportation


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
alasfourom
Senior Member
Join Date: Feb 2022
Location: Saudi Arabia
Old 03-21-2022 , 11:04   [L4D2] Elevator Teleportation
Reply With Quote #1

Greetings,

Idea:
Is it possible to have a plugin simply if you called for the elevator a count down will appear and then teleport all survivors to the elevator.

This may also fix some elevator bugs like in c1m1 where survivors may stuck outside elevator or left behind.

Why?
Some sick players enjoy trolling, or game where +4 survivors, this may also fix survivor stuck or left behind glitch, and you have hope that elevator will teleport you, you won't stay like that forever

Similar Plugins?
Other plugins will kill all survivors if time pass, which this is different I believe

So as far as I know there is no similar plugin around

How it look like?
So, when a player activate the elevator, a count down will pop up as a hint box, showing time remains until teleportation like 300 seconds, and then if all players for example came before that time, game should run normally as usual, but if not and time passed, all living survivors will be teleported to the elevator, and all infected without tank will be slayed as tank may join them inside, more fun.

Thanks

Last edited by alasfourom; 03-21-2022 at 11:06.
alasfourom is offline
finishlast
Senior Member
Join Date: Nov 2018
Location: In Reno with the vitamin
Old 03-22-2022 , 13:25   Re: [L4D2] Elevator Teleportation
Reply With Quote #2

This is not the solution but maybe you find another entity to hook, then it would teleport everyone.
ATM the elevator button can only be pressed when all are in, so maybe someone can disable the non pressable state with a command, then the elevator button press will teleport everyone in and it will go up.

PHP Code:
removed first draw 
__________________

Last edited by finishlast; 03-23-2022 at 14:03.
finishlast is offline
alasfourom
Senior Member
Join Date: Feb 2022
Location: Saudi Arabia
Old 03-22-2022 , 16:42   Re: [L4D2] Elevator Teleportation
Reply With Quote #3

Interesting,

I don't know much about scripting, but what I think its possible is, if you can do it in a way that allow player press the elevator button, this will trigger simple hint text with duration.

Then if we can make a teleportation point inside the elevator that would be near to the elevator button, so if survivors were teleported there, they will press the button themselves.

Thanks finishlast
alasfourom is offline
finishlast
Senior Member
Join Date: Nov 2018
Location: In Reno with the vitamin
Old 03-23-2022 , 02:33   Re: [L4D2] Elevator Teleportation
Reply With Quote #4

This seemed to work in l4d1 cant test for l4d2:

Includes code from the elevator no door plugin think from dragokas?! and from marts trigger plugin.
Attached Files
File Type: sp Get Plugin or Get Source (l4d_nomercy_elevator_teleport.sp - 81 views - 1.9 KB)
__________________
finishlast is offline
alasfourom
Senior Member
Join Date: Feb 2022
Location: Saudi Arabia
Old 03-23-2022 , 04:44   Re: [L4D2] Elevator Teleportation
Reply With Quote #5

I didn’t test it yet, but the most annoying elevators are as you did in no mercy hospital, but also in dead center atrium, these are the most troublesome maps in my opinion at least.

Once I come from work, I will try it on L4D2.
alasfourom is offline
alasfourom
Senior Member
Join Date: Feb 2022
Location: Saudi Arabia
Old 03-23-2022 , 11:16   Re: [L4D2] Elevator Teleportation
Reply With Quote #6

It actually didn't work on Left 4 Dead 2, I tried to install the plugin directly but no success.

It also has these errors when I tried to compile it:

PHP Code:
//SourceMod Batch Compiler
// by the SourceMod Dev Team


//// l4d_nomercy_elevator_teleport.sp
//
// C:\Servers\L4D2\left4dead2\addons\sourcemod\scripting\l4d_nomercy_elevator_teleport.sp(33) : warning 217: inconsistent indentation (did you mix tabs and spaces?)
// C:\Servers\L4D2\left4dead2\addons\sourcemod\scripting\l4d_nomercy_elevator_teleport.sp(35) : warning 217: inconsistent indentation (did you mix tabs and spaces?)
// C:\Servers\L4D2\left4dead2\addons\sourcemod\scripting\l4d_nomercy_elevator_teleport.sp(69) : warning 209: function has explicit 'int' tag but does not return a value
// Code size:         5080 bytes
// Data size:         2708 bytes
// Stack/heap size:      16400 bytes
// Total requirements:   24188 bytes
//
// 3 Warnings.
//
// Compilation Time: 0.5 sec
// ----------------------------------------

Press enter to exit ... 

Last edited by alasfourom; 03-23-2022 at 11:22.
alasfourom is offline
finishlast
Senior Member
Join Date: Nov 2018
Location: In Reno with the vitamin
Old 03-23-2022 , 14:00   Re: [L4D2] Elevator Teleportation
Reply With Quote #7

That are just warnings bc of shitty programming, ignore that for now.

It almost made me vomit myself but I installed a l4d2 testserver and installed *ugh* l4d2.

Plugin is working for me on c8m4_interior, tried in campaign mode and versus

Don't know why it's not working for you but it is working for me under linux server.

Once you get in the elevator and hit the button, everyone except the one who pressed the button will be teleported into the elevator.

Didn't test if incapped will get teleported but I think all players should be teleported.

Make sure to reload the map after you put the plugin in the plugins folder.

/map c8m4_interior
__________________

Last edited by finishlast; 03-23-2022 at 14:05.
finishlast is offline
alasfourom
Senior Member
Join Date: Feb 2022
Location: Saudi Arabia
Old 03-23-2022 , 14:37   Re: [L4D2] Elevator Teleportation
Reply With Quote #8

I don't know why it didn't work for me the first time, I was testing it in c8m4 ,

I tried it now, and its working, and its really better than what I expected 1000 times, even the teleportation point where the survivors are positioned in my server, even though my server is 10 survivors. It also teleported the incapped players which is great.

I do really love it, I think I let you download l4d2 hahaha

but the main point is that its working 100%

=================================
For more improvements:

1) To include the following maps: c1m1_hotel, c1m4_atrium, c5m2_park, c5m3_cemetery

2) Set a trigger to display Hintbox with timing before teleportation occurs

3) Cvar for time duration for each map

=================================
alasfourom is offline
finishlast
Senior Member
Join Date: Nov 2018
Location: In Reno with the vitamin
Old 03-23-2022 , 15:01   Re: [L4D2] Elevator Teleportation
Reply With Quote #9

you can copy the plugin rename it do like c1m1 blabla and alter the if statement for that map to the name of it.

Then go into one of the bugged elevators and open console.

type
cl_showpos 1

you can see your position in middle of teleporter.

Then write down the coordinates that are shown in your game.

Use them as new teleport point for that map etc.

I am not sure if it will detect every button right, plus you might have to use different methods of unblocking the button.
Plus if there are buttons not names strcmp(sName, "elevator_button") you have to change that too.

I found that part in a plugin I thought it was from Marttt but I cant find it anymore, oh well.

Can't be bothered, in my world there is only one elevator and that is in no mercy....
__________________

Last edited by finishlast; 03-23-2022 at 15:03.
finishlast is offline
alasfourom
Senior Member
Join Date: Feb 2022
Location: Saudi Arabia
Old 03-23-2022 , 15:54   Re: [L4D2] Elevator Teleportation
Reply With Quote #10

Hahaaha Yeah, no mercy is one of the hardest

Alright then I will give it a try this weakened, and I will update it

if it turned to what I hope to, it gonna be a piece of art

Thank you finishlast
alasfourom 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 14:12.


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