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

[TF2] Block Round Start


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Requiesta
Senior Member
Join Date: May 2012
Location: Texas
Old 04-22-2017 , 21:42   [TF2] Block Round Start
Reply With Quote #1

I have a mod I'm designing where I want to wait for a certain number of players before I start the round. The current way I'm trying to do this is to return Plugin_Handled on the teamplay_round_start event and create a looping timer which periodically checks for players until there are a minimum of 4.

First, is there a better way to achieve this?

Second, is there any issue with returning Plugin_Handled on the round start event?
__________________
YouTuber, Modder, Accountant, and somehow I still enjoy programming after all that.

Check out my YouTube Channel.
Requiesta is offline
Chaosxk
Veteran Member
Join Date: Aug 2010
Location: Westeros
Old 04-22-2017 , 22:39   Re: [TF2] Block Round Start
Reply With Quote #2

Does returning Plugin_Handled to teamplay_round_start even work? Events are just notification that occur after the actual event. Sending return Plugin_Handled just stops broadcasting the notification.

Maybe just set mp_waitingforplayers_time to a really high number and when you get 4 players, set it to 0.
__________________

Last edited by Chaosxk; 04-22-2017 at 22:39.
Chaosxk is offline
Requiesta
Senior Member
Join Date: May 2012
Location: Texas
Old 04-23-2017 , 00:26   Re: [TF2] Block Round Start
Reply With Quote #3

Quote:
Originally Posted by Chaosxk View Post
Does returning Plugin_Handled to teamplay_round_start even work? Events are just notification that occur after the actual event. Sending return Plugin_Handled just stops broadcasting the notification.

Maybe just set mp_waitingforplayers_time to a really high number and when you get 4 players, set it to 0.
Thanks for the advice!

Also your signature is evil and so are you.
__________________
YouTuber, Modder, Accountant, and somehow I still enjoy programming after all that.

Check out my YouTube Channel.
Requiesta is offline
Chaosxk
Veteran Member
Join Date: Aug 2010
Location: Westeros
Old 04-23-2017 , 01:25   Re: [TF2] Block Round Start
Reply With Quote #4

Quote:
Originally Posted by Requiesta View Post
Also your signature is evil and so are you.
No idea what your talking about,
__________________

Last edited by Chaosxk; 04-23-2017 at 01:25.
Chaosxk is offline
luki1412
Veteran Member
Join Date: Oct 2008
Location: OnPluginStart()
Old 04-23-2017 , 13:48   Re: [TF2] Block Round Start
Reply With Quote #5

Or you can let them play and restart the round when its ready
__________________
luki1412 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 15:02.


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