Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Release Forum » [Script] Fun Script
[Script] Fun Script [message #368129] Tue, 20 January 2009 14:55 Go to previous message
mrãçķz is currently offline  mrãçķz
Messages: 3069
Registered: August 2007
Karma:
General (3 Stars)
Permabanned for trying and failing DDoS
By typing !Boom, you will get unlimited C4´s and Remotes, and you can throw about 100 of them in 1 Minute lol. It works ServerSide.


Chat Command:
class ExrefillChatCommand : public ChatCommandClass {
	void Triggered(int ID,const TokenClass &Text,int ChatType) {
		GameObject *obj = Get_GameObj(ID);
	    Commands->Attach_Script(obj, "Explosive_Refill", "");
	}
};
ChatCommandRegistrant<ExrefillChatCommand> ExrefillChatCommandReg("!boom",CHATTYPE_ALL,0,GAMEMODE_AOW);


.CPP
void Explosive_Refill::Created(GameObject *obj)
{
Commands->Start_Timer(obj,this,0.1,1);
}	

void Explosive_Refill::Timer_Expired(GameObject *obj,int number)
{
 	if (number == 1){
			Commands->Give_Powerup(obj, "CnC_POW_MineTimed_Player_01",false);
			//Commands->Give_Powerup(obj, "CnC_POW_MineTimed_Player_02",false);
			Commands->Give_Powerup(obj, "CnC_POW_MineRemote_01",false);
			//Commands->Give_Powerup(obj, "CnC_POW_MineRemote_02",false);
 		Commands->Attach_Script(obj, "Explosive_Refill", "");

	}
}
ScriptRegistrant<Explosive_Refill> Explosive_Refill_Registrant("Explosive_Refill","");


.H
class Explosive_Refill : public ScriptImpClass {
void  Created(GameObject *obj);
void Timer_Expired(GameObject *obj,int number);
};
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [Texture] Eyeball bullet holes
Next Topic: [skin] TIGER PATTERN!!!
Goto Forum:
  


Current Time: Thu Sep 12 11:44:04 MST 2024

Total time taken to generate the page: 0.00741 seconds