Re: PowerupGameObj::Grant() and C4GameObj::Detonate() [message #470614 is a reply to message #470397] |
Tue, 03 July 2012 03:54 |
|
I can confirm that both PowerUpGameObj::Think and PowerUpGameObj::Grant are (or should be baring bugs) 100% identical to the stock functions.
PowerUpGameObj::Grant does something like this:
Get_Definition().Grant( obj, this );
if ( WeaponBag != NULL )
if ( obj->Get_Weapon_Bag()->Move_Contents( WeaponBag ) )
Set_State( PowerUpGameObj::STATE_GRANTING );
if ( State == STATE_GRANTING )
Send CUSTOM_EVENT_POWERUP_GRANTED to all scripts on the PowerUpGameObj
Note that this is the only place in the stock code that I can find that sends CUSTOM_EVENT_POWERUP_GRANTED
Jonathan Wilson aka Jonwil
Creator and Lead Coder of the Custom scripts.dll
Renegade Engine Guru
Creator and Lead Coder of TT.DLL
Official member of Tiberian Technologies
|
|
|