Raised This Month: $30 Target: $400
 7% 

[L4D2] Is It Possible To Disable Panic Event?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ndls
Junior Member
Join Date: Mar 2020
Old 06-18-2022 , 03:19   [L4D2] Is It Possible To Disable Panic Event?
Reply With Quote #1

hi everyone, is it possible to disable the panic event?
ndls is offline
Austin
Senior Member
Join Date: Oct 2005
Old 06-26-2022 , 06:54   Re: [L4D2] Is It Possible To Disable Panic Event?
Reply With Quote #2

Yes you can disable them and modify them.
https://forums.alliedmods.net/showthread.php?t=334216
Austin is offline
Austin
Senior Member
Join Date: Oct 2005
Old 06-28-2022 , 15:14   Re: [L4D2] Is It Possible To Disable Panic Event?
Reply With Quote #3

In a message to me you mentioned this was for c3m2_swamp to disable the panic event when the plane door is opened.

I tested this and it works to disable this panic event.

1) I am assuming you have metamod and stripper installed
and you checked that stripper is running using the meta list command
like I show in this post steps 1-3
https://forums.alliedmods.net/showthread.php?t=334216

2) Create a new text file called c3m2_swamp.cfg
And put this in the file exactly these lines.

PHP Code:
Austin Remove the panic event when opening the plane door
modify
:
{
    
match:
    {
        
"hammerid" "1900972"
    
}
    
delete:
    {
        
"OnTrigger" "director PanicEvent  3 -1"
    
}

3) Put this file in your stripper\maps folder.
Your path will be different but look for your ..\left4dead2\addons folder and then \stripper and then \maps.
C:\L4D2\left4dead2\addons\stripper\maps\c3m2_ swamp.cfg

4) stripper only runs when the map is loaded so if the map c3m2_swamp is already loaded you have to reload it to see these stripper changes.
You can start a new campaign or
Go to the server console and type
Changelevel c3m2_swamp

5) Join the map and now when you open the door it will blow open, the alarm will go off for just a few seconds and no panic event will be created since we used stripper to delete the director command that starts that panic event on door open.


Here is exactly how I found this / figured this out.

I switched to that map on my server,
changelevel c3m2_swamp.cfg

I then did a stripper_dump command at the console (or rcon) to get all of the map's entities.
When you do this stripper creates a cfg file of all of the maps entities in this file
..\left4dead2\addons\stripper\dumps\C3m2_swam p.0000.cfg

Then I opened the C3m2_swamp.0000.cfg file of the maps entities and searched for:

panic

I found this entity and looking at it it obviously is th eentity that handle that door being opened.

Notice the hammer id.
This uniquely identifies this particular entity in the map.
When you use that in the stripper match command you KNOW you will find it / stripper will match it and do the delete or replace or what ever you want to do with the entity..

All we need to do is delete the trigger for the panic event as shown above.

"OnTrigger" "directorPanicEvent3-1"

{
"angles" "-7 0 0"
"origin" "-1776.9 3062.11 57.7127"
"targetname" "Blow_door"
"StartDisabled" "0"
"spawnflags" "0"
"classname" "logic_relay"
"hammerid" "1900972"
"OnTrigger" "plane_alarmStopSound10-1"
"OnTrigger" "cabin_door_nav_blockerUnblockNav2-1"
"OnTrigger" "directorPanicEvent3-1"
"OnTrigger" "shake_op_01StartShake1-1"
"OnTrigger" "prop_dyn_exitdoorSetAnimationopen0.5-1"
"OnTrigger" "door_sparksStart1.2-1"
"OnTrigger" "cabin_doorOpen2-1"
"OnTrigger" "cabin_door_trackOpen2-1"
"OnTrigger" "cabin_door_buttonKill0-1"
"OnTrigger" "cabin_door_proxyKill0-1"
"OnTrigger" "oratorSpeakResponseConceptC3M2OpenDoor WhoDidIt:!Activator01"
"OnTrigger" "plane_doorexploPlaySound1.15-1"
"OnTrigger" "plane_alarmPlaySound3.25-1"
}

This is a stripper question and should be moved to that forum section.

Last edited by Austin; 06-28-2022 at 15:23.
Austin is offline
ndls
Junior Member
Join Date: Mar 2020
Old 07-01-2022 , 10:42   Re: [L4D2] Is It Possible To Disable Panic Event?
Reply With Quote #4

Thank you very much Austin. you are the best.
ndls 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 10:13.


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