Raised This Month: $ Target: $400
 0% 

[CSS] Pausing Freezetime/Roundtime


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Twelve-60
Senior Member
Join Date: Aug 2007
Old 03-27-2011 , 23:34   [CSS] Pausing Freezetime/Roundtime
Reply With Quote #1

Anyone aware if it is possible to pause freezetime or the roundtime clock, without using the inbuilt 'pause' command? My goal is to create a custom server-side controlled pause command
__________________
Twelve-60 is offline
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 03-28-2011 , 06:20   Re: [CSS] Pausing Freezetime/Roundtime
Reply With Quote #2

I'd try to monitor any changed netprops when executing "pause" in client console and print a list of all new added entitys via sdkhooks OnEntityCreated() to see, if it's anything entity related you could simulate.
__________________
Peace-Maker is offline
psychonic

BAFFLED
Join Date: May 2008
Old 03-28-2011 , 09:19   Re: [CSS] Pausing Freezetime/Roundtime
Reply With Quote #3

You would need an extension to do it since the properties are on the gamerules class, but you could try saving the round time value, setting a new round time for freeze time and m_bFreezePeriod to true, and then when done, set m_bFreezePeriod back to false and restore the original round time.
psychonic is offline
Twelve-60
Senior Member
Join Date: Aug 2007
Old 03-29-2011 , 14:45   Re: [CSS] Pausing Freezetime/Roundtime
Reply With Quote #4

Alright thanks guys I'll look into it
__________________
Twelve-60 is offline
psychonic

BAFFLED
Join Date: May 2008
Old 03-29-2011 , 15:00   Re: [CSS] Pausing Freezetime/Roundtime
Reply With Quote #5

I don't remember the exact state of it since i haven't touched it in a couple weeks (the latest version may not even be committed nor are binaries), but this may come in handy for that, http://hg.nicholashastings.com/gamerules/files/tip/

Edit: I just realized that the Set* natives aren't committed. I'll commit and push shortly as they are done and do work.
psychonic 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 10:07.


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