Raised This Month: $32 Target: $400
 8% 

Solved [L4D2]About some event


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
LinLinLin
Senior Member
Join Date: Sep 2021
Old 08-09-2022 , 05:49   [L4D2]About some event
Reply With Quote #1

so i have tested round_end event and OnMapEnd function.

1.If all players die in one chapter,only round_end will trigger.

2.If players change map in the half of the chapter,only OnMapEnd will trigger.

3.If players finish one chapter,both of these will trigger.

but what about this event: map_transition

it looks like trigger in the end of every chapter,but it seems that incorrectly happen in the last chapter.
Althoght WIKI say that "When campaign cinematics start",i dont know what is the "campaign cinematics".

Last edited by LinLinLin; 08-17-2022 at 06:52.
LinLinLin is offline
Psyk0tik
Veteran Member
Join Date: May 2012
Location: Homeless
Old 08-09-2022 , 08:52   Re: [L4D2]About some event
Reply With Quote #2

I only see the "map_transition" event trigger when the server is switching to the next map within the same campaign, like from c1m1 to c1m2. If the server switches to a map from a different campaign, it won't trigger.
__________________
Psyk0tik is offline
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: Taiwan, Asia
Old 08-09-2022 , 11:01   Re: [L4D2]About some event
Reply With Quote #3

PHP Code:
//trigger twice in versus mode, one when all survivors wipe out or make it to saferom, one when first round ends (second round_start begins).
    
HookEvent("round_end",            Event_RoundEnd);

//all survivors make it to saferoom, and server is about to change next level in coop mode (does not trigger round_end) 
    
HookEvent("map_transition"Event_RoundEnd);

//all survivors wipe out in coop mode (also triggers round_end)
    
HookEvent("mission_lost"Event_RoundEnd); 

//final map final rescue vehicle leaving  (does not trigger round_end)
    
HookEvent("finale_vehicle_leaving"Event_RoundEnd); 

//trigger when map change
OnMapEnd() 
__________________

Last edited by HarryPotter; 08-11-2022 at 09:38.
HarryPotter is offline
LinLinLin
Senior Member
Join Date: Sep 2021
Old 08-16-2022 , 12:58   Re: [L4D2]About some event
Reply With Quote #4

OK,clearly!
LinLinLin 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 16:24.


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