Raised This Month: $ Target: $400
 0% 

Change round time in the middle of the round


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ARES[ro]
Senior Member
Join Date: Apr 2010
Old 06-25-2011 , 23:48   Re: Change round time in the middle of the round
Reply With Quote #1

i smell orpheu
__________________
okay
ARES[ro] is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 06-26-2011 , 02:01   Re: Change round time in the middle of the round
Reply With Quote #2

Quote:
Originally Posted by ARES[ro] View Post
i smell orpheu
Orpheu is not necessary in this case.

Hook when bomb is planted, then get the time from the bomb entity.
Update all players with RoundTime event and ShowTimer event with the specified time.

Code:
#define OFFSET_GRENADETYPE 96 // check for C4 "grenade" entity: if(get_pdata_int(ent, OFFSET_GRENADETYPE, 5) & (1<<8)) #define OFFSET_C4_EXPLODETIME 100 // timeleft = get_pdata_float(ent, OFFSET_C4_EXPLODETIME, 5) - get_gametime()
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] 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 23:31.


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