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
01101101
BANNED
Join Date: Nov 2009
Location: 9`su 09`n0n7e`r0f76a
Old 06-25-2011 , 22:20   Change round time in the middle of the round
Reply With Quote #1

For example, when bomb is planted the timer sets to bomb's time left to explode.
01101101 is offline
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 #2

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 #3

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
bibu
Veteran Member
Join Date: Sep 2010
Old 06-26-2011 , 05:05   Re: Change round time in the middle of the round
Reply With Quote #4

http://forums.alliedmods.net/showthread.php?p=483666 ?
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu 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