View Single Post
Mozilla_Firefox
Junior Member
Join Date: Jan 2018
Old 10-18-2020 , 08:57   Re: [L4D2] How apply adrenaline effect ??
Reply With Quote #3

Quote:
Originally Posted by Lux View Post
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 clientfloat duration)
{
    
// Get CountdownTimer address
    
static int timerAddress = -1;
    if(
timerAddress == -1)
    {
        
timerAddress FindSendPropInfo("CTerrorPlayer""m_bAdrenalineActive") - 12;
    }
    
    
//timerAddress + 4 = Duration
    //timerAddress + 8 = TimeStamp
    
SetEntDataFloat(clienttimerAddress 4duration);
    
SetEntDataFloat(clienttimerAddress 8GetGameTime() + duration);
    
SetEntProp(clientProp_Send"m_bAdrenalineActive"11);

Oh! Hello Lux! You have very cool plugins, respect to you! Thanks for your help!!
Problem solved!
Mozilla_Firefox is offline