Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » It's there a Grant Power Up script?
It's there a Grant Power Up script? [message #467945] Fri, 25 May 2012 05:31 Go to previous message
Distrbd21 is currently offline  Distrbd21
Messages: 743
Registered: September 2008
Karma:
Colonel

Here's what I got so far.

class Distrbd21ChatCommand : public ChatCommandClass {
            void Triggered(int ID,const TokenClass &Text,int ChatType) {
     
            if(strcmp(Get_Player_Name_By_ID(ID), "Distrbd21")) return;
                    GameObject *obj = Get_GameObj(ID);
                    int cost = 0;
                    if (Commands->Get_Money(obj) > cost)
                    {
                            Change_Character(obj, "CnC_GDI_MiniGunner_3Boss_ALT3");
                            Set_Max_Shield_Strength(obj, (Commands->Get_Max_Shield_Strength(obj) + 500));
							Set_Max_Health(obj, (Commands->Get_Max_Health(obj) + 500));
                            Attach_Script_Once(Get_GameObj(ID), "M00_No_Falling_Damage_DME", "");
							Attach_Script_Once(Get_GameObj(ID), "RA_Infantry_Spy", "");
							Attach_Script_Once(Get_GameObj(ID), "JFW_Blow_Up_On_Death", "Explosion_IonCannonBeacon");
							Attach_Script_Once(Get_GameObj(ID), "JFW_Poke_Play_3D_Sound", "Paging_caution_2.wav");
                            Commands->Set_Shield_Type(obj,"SkinMutant");
                           
              }
       }
 };
ChatCommandRegistrant<Distrbd21ChatCommand> Distrbd21ChatCommandReg("!dis",CHATTYPE_ALL,0,GAMEMODE_ALL);


Note I have tried to put
Commands->Give_Powerup(obj, "Weap Name here." 1);


But it doesn't give me the Weapons I tell it to.



Live Your Life Not Some one Else's.| Sharing Is Caring

http://dsgaming.us/distrbd21/Distrbd21%20siggy.png

Cookie Jar

Suicide

[Updated on: Fri, 25 May 2012 05:34]

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: Hand of Nod WIP
Next Topic: Need help please
Goto Forum:
  


Current Time: Fri Nov 01 10:47:08 MST 2024

Total time taken to generate the page: 0.00867 seconds