Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » START_TIMER Parameters
Re: START_TIMER Parameters [message #434585 is a reply to message #434519] Wed, 11 August 2010 13:54 Go to previous messageGo to previous message
Omar007 is currently offline  Omar007
Messages: 1711
Registered: December 2007
Location: Amsterdam
Karma:
General (1 Star)
Instead of using Set_Model he wants you to change the preset and then set the health/shield/weapons to that of the previous preset.
Here is an example of what he means (i think (only CPP)).

void MySwapCharScript::Created(GameObject *obj)
{
    int maxH = Commands->Get_Max_Health(obj);
    int curH = Commands->Get_Health(obj);
    int maxS = Commands->Get_Max_Shield_Strength(obj);
    int curS = Commands->Get_Shield_Strength(obj);

    Change_Character(obj, "clown"); //Change preset

    Commands->Set_Max_Health(maxH); //Set max health to that of the previous preset
    Commands->Set_Health(curH); //Set health to that of the previous preset
    Commands->Set_Max_Shield_Strength(maxS); //Set max shield to that of the previous preset
    Commands->Set_Shield_Strength(curS); //Set shield to that of the previous preset
}


NOTE: this is only what I think he means. I can't look into his head Razz
Also I'm not 100% sure this code is flawless as I do this on memorized info.


http://tiberiumredux.omarpakker.nl/Old Unused Parts/Plaatjes/PromoteBanner_Hades_small.jpg

[Updated on: Wed, 11 August 2010 14:03]

Report message to a moderator

 
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
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: build error
Next Topic: Update_PT_Data
Goto Forum:
  


Current Time: Wed Dec 18 14:16:29 MST 2024

Total time taken to generate the page: 0.00816 seconds