Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Tiberian Technologies / Blackhand Studios » Tiberian Technologies Forum » PowerupGameObj::Grant() and C4GameObj::Detonate()
Re: PowerupGameObj::Grant() and C4GameObj::Detonate() [message #470614 is a reply to message #470397] Tue, 03 July 2012 03:54 Go to previous messageGo to previous message
jonwil is currently offline  jonwil
Messages: 3555
Registered: February 2003
Karma:
General (3 Stars)

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
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: fps drop
Next Topic: CommandLineParser::getInt() doesn't work with negative integers
Goto Forum:
  


Current Time: Thu May 09 05:45:21 MST 2024

Total time taken to generate the page: 0.00869 seconds