AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Snippets and Tutorials (https://forums.alliedmods.net/forumdisplay.php?f=112)
-   -   [L4D2] Event that fires only once at beginning of each map? (https://forums.alliedmods.net/showthread.php?t=236520)

PatriotGames 03-06-2014 19:42

[L4D2] Event that fires only once at beginning of each map?
 
Hello,

I am using the Execute Configs plugin to do various things based on player count. The plugin can use events to execute a file or a command and I would like to use an event to execute an sm command, but only once for each map.

Q: Is there an L4D2 event that will fire only once at the beginning of each map after the player count is recorded?

Thank you for your help,

PG

Dr. Greg House 03-06-2014 23:32

Re: [L4D2] Event that fires only once at beginning of each map?
 
A: FirstPlayerLeftSafeArea (or something like that, look it up on the wiki).

PatriotGames 03-07-2014 14:48

Re: [L4D2] Event that fires only once at beginning of each map?
 
Quote:

Originally Posted by Dr. Greg House (Post 2108566)
A: FirstPlayerLeftSafeArea (or something like that, look it up on the wiki).

Thank you for the suggestion!

That pointed me in the right direction and after looking through the events on the wiki and those listed by Disawar1's plugin, I decided to test round_start. By adding a small delay this event does exactly what I was looking for and fires before the players leave the start area.

Not sure why the round_start event is not listed on the Sourcemod Left 4 Dead 2 events wiki.

Thank you again,

PG

Powerlord 03-07-2014 15:15

Re: [L4D2] Event that fires only once at beginning of each map?
 
Quote:

Originally Posted by PatriotGames (Post 2108800)
Thank you for the suggestion!

That pointed me in the right direction and after looking through the events on the wiki and those listed by Disawar1's plugin, I decided to test round_start. By adding a small delay this event does exactly what I was looking for and fires before the players leave the start area.

Not sure why the round_start event is not listed on the Sourcemod Left 4 Dead 2 events wiki.

Thank you again,

PG

round_start would only be listed if it was different from the Generic Source Events version. Same with player_hurt, player_death, etc...

PatriotGames 03-07-2014 18:49

Re: [L4D2] Event that fires only once at beginning of each map?
 
Quote:

Originally Posted by Powerlord (Post 2108812)
round_start would only be listed if it was different from the Generic Source Events version. Same with player_hurt, player_death, etc...

Thank you, Powerlord, for explaining how the event lists are organized. It makes sense now...

Kind regards,

PG


All times are GMT -4. The time now is 08:51.

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