AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   Solved [L4D2]About some event (https://forums.alliedmods.net/showthread.php?t=339002)

LinLinLin 08-09-2022 05:49

[L4D2]About some event
 
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".:cry::cry:

Psyk0tik 08-09-2022 08:52

Re: [L4D2]About some event
 
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.

HarryPotter 08-09-2022 11:01

Re: [L4D2]About some event
 
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() 


LinLinLin 08-16-2022 12:58

Re: [L4D2]About some event
 
OK,clearly!


All times are GMT -4. The time now is 19:01.

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