Quote:
Originally Posted by ARES[ro]
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()
__________________