Raised This Month: $51 Target: $400
 12% 

[TF2] Setup Time


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
LOOY
Junior Member
Join Date: Sep 2008
Old 10-02-2008 , 07:40   [TF2] Setup Time
Reply With Quote #1

Anyone know how to check whether setup time has ended or not?

I couldn't find any plugins or topics that did this.

I also couldn't find anything in the events list in the wiki, i only found "teamplay_round_start" which i'm guessing starts at the start of setup time.

Help be greatly apreciated as always.
LOOY is offline
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Location: The Netherlands
Old 10-02-2008 , 08:46   Re: [TF2] Setup Time
Reply With Quote #2

There's an m_bInSetup offset, I believe in tf_gamerules. You can also hook the OnSetupStart/OnSetupFinished outputs from team_round_timer.
__________________
Advertisements | REST in Pawn - HTTP client for JSON REST APIs
Please do not PM me with questions. Post in the plugin thread.
DJ Tsunami is offline
Antithasys
Moderator
Join Date: Apr 2008
Old 10-02-2008 , 14:32   Re: [TF2] Setup Time
Reply With Quote #3

Quote:
Originally Posted by DJ Tsunami View Post
There's an m_bInSetup offset, I believe in tf_gamerules. You can also hook the OnSetupStart/OnSetupFinished outputs from team_round_timer.
Ya I saw that too, but the output has been very unreliable. When trying to get the round timer I ran across this and decided to test it. It didn't exactly do what I thought, or at least didn't provide consistent results.
Antithasys is offline
naris
AlliedModders Donor
Join Date: Dec 2006
Old 10-02-2008 , 14:40   Re: [TF2] Setup Time
Reply With Quote #4

Quote:
Originally Posted by LOOY View Post
Anyone know how to check whether setup time has ended or not?
Hook the teamplay_setup_finished event and set a flag.
naris is offline
LOOY
Junior Member
Join Date: Sep 2008
Old 10-03-2008 , 05:11   Re: [TF2] Setup Time
Reply With Quote #5

Quote:
Originally Posted by naris View Post
Hook the teamplay_setup_finished event and set a flag.
Does that exist? I don't see it in this list:
http://wiki.alliedmods.net/Team_Fortress_2_Events
I'll try it anyway as it seems the easiest option.
LOOY is offline
naris
AlliedModders Donor
Join Date: Dec 2006
Old 10-03-2008 , 15:27   Re: [TF2] Setup Time
Reply With Quote #6

Quote:
Originally Posted by LOOY View Post
Does that exist? I don't see it in this list:
http://wiki.alliedmods.net/Team_Fortress_2_Events
I'll try it anyway as it seems the easiest option.
Yes, it does exist, it is in modevents.res, right after "teamplay_teambalanced_player". The list you mention is incomplete.

All of the events are listed in the modevents.res file on the server which can be found in the resource directory. However, not all of them are actually ever fired. I am pretty sure that the "teamplay_setup_finished" event does indeed get fired, I use it.
naris is offline
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Location: The Netherlands
Old 10-03-2008 , 16:22   Re: [TF2] Setup Time
Reply With Quote #7

Then someone should update that list. It's a wiki you know..
__________________
Advertisements | REST in Pawn - HTTP client for JSON REST APIs
Please do not PM me with questions. Post in the plugin thread.
DJ Tsunami 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:54.


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