Here is a stock i made, this is raw so no events will trigger for it when set.
PHP Code:
stock void Terror_SetAdrenalineTime(int client, float duration)
{
// Get CountdownTimer address
static int timerAddress = -1;
if(timerAddress == -1)
{
timerAddress = FindSendPropInfo("CTerrorPlayer", "m_bAdrenalineActive") - 12;
}
//timerAddress + 4 = Duration
//timerAddress + 8 = TimeStamp
SetEntDataFloat(client, timerAddress + 4, duration);
SetEntDataFloat(client, timerAddress + 8, GetGameTime() + duration);
SetEntProp(client, Prop_Send, "m_bAdrenalineActive", 1, 1);
}
__________________