AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   lol (https://forums.alliedmods.net/showthread.php?t=204915)

pupalamini 01-04-2013 16:44

lol
 
lol

fysiks 01-04-2013 21:58

Re: how pdata in ?
 
So what is the question?

ConnorMcLeod 01-05-2013 04:07

Re: how pdata in ?
 
Code:

const m_flNextCharge = 60;
const m_iReactivate = 61
const m_iJuice = 62
const m_iOn = 63                // 0 = off, 1 = startup, 2 = going
const m_flSoundTime = 64

So you can see m_iReactivate is an integer.

This is how it is used in Off function :

Code:

        if ((!m_iJuice) &&  ( ( m_iReactivate = g_pGameRules->FlHealthChargerRechargeTime() ) > 0) )
        {
                pev->nextthink = pev->ltime + m_iReactivate;
                SetThink(Recharge);
        }
        else
                SetThink( SUB_DoNothing );

So try :

PHP Code:

set_pdata_int(chargerm_iReactivate1

Also, i think linux offset after CBaseToggle is 5 and not 4.

Both classes have as mother class CBaseToggle :
Code:

class CWallHealth : public CBaseToggle
Code:

class CRecharge : public CBaseToggle


All times are GMT -4. The time now is 13:37.

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