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

[L4D2] Anti Safe Room Camping


Post New Thread Reply   
 
Thread Tools Display Modes
Author
GsiX
gee, six eggs
Join Date: Aug 2012
Location: Land Below The Wind
Plugin ID:
3366
Plugin Version:
1.1.0
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
Servers with this Plugin:
 
Plugin Description:
Prevent player from campaign inside safe room too long
Old 11-12-2012 , 08:19   [L4D2] Anti Safe Room Camping
Reply With Quote #1

L4D2 Safe Room Hazard

* Anti player campaign in safe room too long. When other player already out in action.. some player just too ignorant to go out.. Well not any more.

* Admin command
- !srh_enter - will teleport all players to second saferoom.

Public Cvar
Spoiler


Custom map developer command support:
Do this ONLY FOR CUSTOM MAP. Stock map already configured properly.
* enable developer mode l4d2_hazard_debugging_enable 1
* l4d2_hazard_debugging_enemy 0 to disable enemy in developing mode.

* !srh_box - create bounding box for touch trigger. This box for start area/first saferoom area
* !srh_box 0 to delete the created custom box.
* !srh_box 1 ~ 5 is move type follow by value to move the box around. Example srh_box 1 -15

* !srh_save spawn - save the newly created bounding box as a touch detection for the start/spawn area.
* !srh_save vehicle1 - save current position where player standing as touch detection for finale vehicle arrive position.
* !srh_save vehicle2 - save current position where player standing as touch detection for finale vehicle arrive position.

- Note that, for map like c2m5 finale, there is 2 vehicle arrive position. This is the purpose.
- For map that only have 1 fixed vehicle arrival, do !srh_save vehicle1 and !srh_save vehicle2 command at same spot.

For custom map that have second/checkpoint saferoom, the angle rotation of the room may be incorrect.
This indicated by the position of the toy should be inside the room. If the toy incorrect,
go to folder sourcemod/data/ and open the file named saferoom_cpdoor.cfg and it look like below: Add them manually.

PHP Code:
"saferoom_cpdoor"
{
    
"c14m3_CustomMapName"    //<< the current map name.
    
{
        
"rotate"        "-90.00" //<< rotation value
    
}

Command below intended for quick developer area position test.
But if you intend to use it for cheating, i do not mind.

* !srh_jump 1 - jump to first saferoom/ spawn area
* !srh_jump 2 - jump to second saferoom/ checkpoint area
* !srh_jump 3 - teleport everyone to caller current position.


=================== TODO ==================
- saferoom burning effect/particle by LUX@ChocolateCat


Requested by: clutch22

============= version history =============
v 1.1.0
- creadit:
@GL_INS beta tester
@Mart
@Impact
@Silver
@Dysphie
- plugins conversion to new syntax.
- changed command for force enter.
- change detection from radius to sdkhook sensor.
- renaming cvar
- added damage for checkpoint area if player refuse to enter
- added damage for finale vehicle if player refuse to enter
- added beam ring damage indicator.
- added developer command for custom map support outside l4d1/2 stock map.

Spoiler

GitHub Link
.
Attached Files
File Type: zip l4d2_saferoom_hazard.zip (50.9 KB, 217 views)

Last edited by GsiX; 02-12-2021 at 15:46.
GsiX is offline
GsiX
gee, six eggs
Join Date: Aug 2012
Location: Land Below The Wind
Old 11-12-2012 , 08:21   Re: [L4D2] Anti Safe Room Campaign
Reply With Quote #2

Reserved..
GsiX is offline
Gonzofred
Junior Member
Join Date: Nov 2012
Old 11-12-2012 , 11:02   Re: [L4D2] Anti Safe Room Campaign
Reply With Quote #3

Very nice plugin! ty...Is there a way to add some cvar for all waiting survivors in saferoom at the end of a map.
Teleport guys who dont want come to saferoom to finish the map! Sorry for my bad english.

Last edited by Gonzofred; 11-12-2012 at 11:22.
Gonzofred is offline
GsiX
gee, six eggs
Join Date: Aug 2012
Location: Land Below The Wind
Old 11-12-2012 , 12:31   Re: [L4D2] Anti Safe Room Campaign
Reply With Quote #4

If i found similarity 1 common entity for all map that valid for teleport point i can add.. I try but no promise because i lazy find teleport spot on each map..
GsiX is offline
Gonzofred
Junior Member
Join Date: Nov 2012
Old 11-12-2012 , 13:05   Re: [L4D2] Anti Safe Room Campaign
Reply With Quote #5

ok. that would be great! Thx...
Gonzofred is offline
GsiX
gee, six eggs
Join Date: Aug 2012
Location: Land Below The Wind
Old 11-12-2012 , 13:05   Re: [L4D2] Anti Safe Room Campaign
Reply With Quote #6

Holly ... Infected teleport script error..

I i was too sleepy when i make the infected teleport.. Now fixed, you may want to download again..

*edit
Gonzofred, i will try..

Last edited by GsiX; 11-12-2012 at 13:07.
GsiX is offline
GsiX
gee, six eggs
Join Date: Aug 2012
Location: Land Below The Wind
Old 11-13-2012 , 16:11   Re: [L4D2] Anti Safe Room Campaign
Reply With Quote #7

* V 1.0.2
- New cvar. Delete your old l4d2_safe_room_hazard.cfg inside cfg/sourcemod/ folder. Plugin will create new one.
- Little code clean up.
- Added rescue room force teleport for player who refuse to go in.
- Added Tank check.

* The timer of force player teleport to second safe room kick in after the safe room hazard begin.. This to prevent the first safe room door to trigger the timer.
* The second safe room must be closed at least once to trigger the timer. All individual player must at least enter the second safe room once to be mark as reached the safe room. This to prevent player that are left behind from being force teleport.
* I recommend to use setting open the safe room door after teleport "saferoomhazard_door 1". This to let the player know that they are being teleport instead of the round will end if the door closed. However choose your best setting.
* New setting for the Tank, "saferoomhazard_tank 500" is the radius value that if the tank fall inside this radius, the safe room hazard will not do any damage to player. Player may lure the tank closer to the safe room before can enter. If the tank out of this radius.. damage will start kick in, i make it like this so the survivor that are left out door will not be ignored by team mate (Chicky player).
* Admin has the ability to force all player to teleport to the second safe room if any. How ever the admin that call this command him self will not be teleport. This to prevent admin from being selfish. If you consider to use the command make sure you first reach the second safe room and alive.

*edit
- The force teleport player to second safe room may not be accurate especially for taller safe room as i m unable to predict where is usually the player might be at a time.

SORRY FOR MY BAD ENGLISH

Last edited by GsiX; 11-13-2012 at 16:16.
GsiX is offline
Gonzofred
Junior Member
Join Date: Nov 2012
Old 11-14-2012 , 01:16   Re: [L4D2] Anti Safe Room Campaign
Reply With Quote #8

Hey ... Thanks for adding the new cvar and the Tank check. I will test the plugin and tell you about it. Sounds great!

edit:
L 11/14/2012 - 12:43:21: [SM] [0] Line 456, /home/groups/sourcemod/upload_tmp/phpB2YsCs.sp::Timer_CheckSafeStatus()
L 11/14/2012 - 12:43:22: [SM] Native "AcceptEntityInput" reported: Entity 604 (604) is not a CBaseEntity
L 11/14/2012 - 12:43:22: [SM] Displaying call stack trace for plugin "l4d2_safe_room_hazard.smx":

Last edited by Gonzofred; 11-14-2012 at 08:53.
Gonzofred is offline
GsiX
gee, six eggs
Join Date: Aug 2012
Location: Land Below The Wind
Old 11-14-2012 , 10:36   Re: [L4D2] Anti Safe Room Campaign
Reply With Quote #9

Sorry i forgot to find the door every round restart at same map.. The door index is changing... i will fix it...

*edit
Updated.. v 1.0.3.. you can download again..

Last edited by GsiX; 11-14-2012 at 10:45.
GsiX is offline
Zbeer
SourceMod Donor
Join Date: Aug 2010
Old 11-14-2012 , 19:41   Re: [L4D2] Anti Safe Room Campaign
Reply With Quote #10

Great job!

I cant see these messages in game:
- [SAFEROOMHAZARD]: Count down started!!
- Safe Room Hazard in effect!!"

Teleport set to 0.

Thanks!

Last edited by Zbeer; 11-14-2012 at 19:41.
Zbeer 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 21:52.


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