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 next message
mrãçķz is currently offline  mrãçķz
Messages: 3069
Registered: August 2007
Karma: 0
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);
};
Re: [Script] Fun Script [message #368135 is a reply to message #368129] Tue, 20 January 2009 15:09 Go to previous messageGo to next message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma: 0
General (3 Stars)
Why do you keep reattaching it? Why not make a Timer_Expired loop instead?
Re: [Script] Fun Script [message #368144 is a reply to message #368129] Tue, 20 January 2009 15:53 Go to previous messageGo to next message
mrãçķz is currently offline  mrãçķz
Messages: 3069
Registered: August 2007
Karma: 0
General (3 Stars)
Permabanned for trying and failing DDoS
Didnt got the Idea, but it works lol Big Ups
Re: [Script] Fun Script [message #368513 is a reply to message #368129] Fri, 23 January 2009 07:36 Go to previous messageGo to next message
ErroR is currently offline  ErroR
Messages: 2984
Registered: March 2008
Location: Moldova
Karma: 0
General (2 Stars)
doesn't it really lag ur server? i mean i played st0rm coop and when u stand on the ammo crate u can throw c4s very very fast.. and when all of them start to blow SFPS drops to 1 and realy lags for some time

[Updated on: Fri, 23 January 2009 07:37]

Report message to a moderator

Re: [Script] Fun Script [message #368518 is a reply to message #368513] Fri, 23 January 2009 07:47 Go to previous messageGo to next message
Genesis2001
Messages: 1397
Registered: August 2006
Karma: 0
General (1 Star)
ErroR wrote on Fri, 23 January 2009 07:36

doesn't it really lag ur server? i mean i played st0rm coop and when u stand on the ammo crate u can throw c4s very very fast.. and when all of them start to blow SFPS drops to 1 and realy lags for some time


Thanks for pointing this out. I'll see what we can do to fix it. lol

Re: [Script] Fun Script [message #368533 is a reply to message #368129] Fri, 23 January 2009 08:33 Go to previous messageGo to next message
mrãçķz is currently offline  mrãçķz
Messages: 3069
Registered: August 2007
Karma: 0
General (3 Stars)
Permabanned for trying and failing DDoS
Maybe you have a bad Computer? my Computer didnt lag, maybe you blow up to many Remotes at the same Time, Timed C4´s wouldnt take much FPS
Re: [Script] Fun Script [message #368536 is a reply to message #368533] Fri, 23 January 2009 08:54 Go to previous messageGo to next message
ErroR is currently offline  ErroR
Messages: 2984
Registered: March 2008
Location: Moldova
Karma: 0
General (2 Stars)
mǻdrãçķz wrote on Fri, 23 January 2009 17:33

Maybe you have a bad Computer? my Computer didnt lag, maybe you blow up to many Remotes at the same Time, Timed C4´s wouldnt take much FPS

no, no prob with fps, prob with SFPS
Re: [Script] Fun Script [message #368601 is a reply to message #368129] Fri, 23 January 2009 15:32 Go to previous messageGo to next message
Gen_Blacky is currently offline  Gen_Blacky
Messages: 3250
Registered: September 2006
Karma: 1
General (3 Stars)
then the server sucks if it cant handle big booms

http://s18.postimage.org/jc6qbn4k9/bricks3.png
Re: [Script] Fun Script [message #369506 is a reply to message #368518] Thu, 29 January 2009 20:54 Go to previous message
samous is currently offline  samous
Messages: 616
Registered: August 2008
Karma: 0
Colonel
Zack wrote on Fri, 23 January 2009 06:47

ErroR wrote on Fri, 23 January 2009 07:36

doesn't it really lag ur server? i mean i played st0rm coop and when u stand on the ammo crate u can throw c4s very very fast.. and when all of them start to blow SFPS drops to 1 and realy lags for some time


Thanks for pointing this out. I'll see what we can do to fix it. lol




not for long.


Samous Ind. modding group website:
http://samous.webs.com/img/Capture.PNG

and Facebook Page: here
Previous Topic: [Texture] Eyeball bullet holes
Next Topic: [skin] TIGER PATTERN!!!
Goto Forum:
  


Current Time: Fri Dec 13 10:09:35 MST 2024

Total time taken to generate the page: 0.00869 seconds