AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Change round time in the middle of the round (https://forums.alliedmods.net/showthread.php?t=160183)

01101101 06-25-2011 22:20

Change round time in the middle of the round
 
For example, when bomb is planted the timer sets to bomb's time left to explode.

ARES[ro] 06-25-2011 23:48

Re: Change round time in the middle of the round
 
i smell orpheu

Exolent[jNr] 06-26-2011 02:01

Re: Change round time in the middle of the round
 
Quote:

Originally Posted by ARES[ro] (Post 1496634)
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()

bibu 06-26-2011 05:05

Re: Change round time in the middle of the round
 
http://forums.alliedmods.net/showthread.php?p=483666 ?


All times are GMT -4. The time now is 23:31.

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