Raised This Month: $235 Target: $400
 58% 

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


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
PatriotGames
AlliedModders Donor
Join Date: Feb 2012
Location: USA
Old 03-06-2014 , 19:42   [L4D2] Event that fires only once at beginning of each map?
Reply With Quote #1

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
__________________
PatriotGames is offline
Dr. Greg House
Professional Troll,
Part-Time Asshole
Join Date: Jun 2010
Old 03-06-2014 , 23:32   Re: [L4D2] Event that fires only once at beginning of each map?
Reply With Quote #2

A: FirstPlayerLeftSafeArea (or something like that, look it up on the wiki).
__________________
Santa or Satan?

Watch out when you're paying people for private requests! Most stuff already exists and you can hardly assess the quality of what you'll get, and if it's worth the money.
Dr. Greg House is offline
PatriotGames
AlliedModders Donor
Join Date: Feb 2012
Location: USA
Old 03-07-2014 , 14:48   Re: [L4D2] Event that fires only once at beginning of each map?
Reply With Quote #3

Quote:
Originally Posted by Dr. Greg House View Post
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
__________________
PatriotGames is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 03-07-2014 , 15:15   Re: [L4D2] Event that fires only once at beginning of each map?
Reply With Quote #4

Quote:
Originally Posted by PatriotGames View Post
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...
__________________
Am I back? Well, we'll see.
Powerlord is offline
PatriotGames
AlliedModders Donor
Join Date: Feb 2012
Location: USA
Old 03-07-2014 , 18:49   Re: [L4D2] Event that fires only once at beginning of each map?
Reply With Quote #5

Quote:
Originally Posted by Powerlord View Post
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
__________________
PatriotGames 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 07:55.


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