Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Death Zone Script
Death Zone Script [message #303016] Thu, 13 December 2007 23:50 Go to next message
Gen_Blacky is currently offline  Gen_Blacky
Messages: 3250
Registered: September 2006
Karma: 1
General (3 Stars)
Here is a Death Zone Script by Reborn

you can chose what player type is affected by the death zone.


void reb_team_death_Zone::Entered(GameObject *obj,GameObject *enter)
{
	int x;
	x = Get_Int_Parameter("Player_Type");
	if (CheckPlayerType(enter,x))
	{
		return;
	}
	if (!Commands->Is_A_Star(enter))
	{
		return;
	}
Commands->Apply_Damage(enter,99999,"Shrapnel",false);

}


ScriptRegistrant<reb_team_death_Zone> reb_team_death_Zone_Registrant("reb_team_death_Zone","Player_Type:int");


class reb_tea
class reb_team_death_Zone : public ScriptImpClass {
	void Entered(GameObject *obj,GameObject *enter);
};


http://s18.postimage.org/jc6qbn4k9/bricks3.png
Re: Death Zone Script [message #303054 is a reply to message #303016] Fri, 14 December 2007 08:42 Go to previous messageGo to next message
cnc95fan is currently offline  cnc95fan
Messages: 1261
Registered: July 2007
Karma: 0
General (1 Star)
Lul, it only takes off 99999 damage, but hey, it'll probably kill XD.
Re: Death Zone Script [message #303057 is a reply to message #303016] Fri, 14 December 2007 08:48 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
i think there already was a script like that
Re: Death Zone Script [message #303089 is a reply to message #303054] Fri, 14 December 2007 12:29 Go to previous messageGo to next message
bisen11 is currently offline  bisen11
Messages: 797
Registered: December 2004
Karma: 0
Colonel
cnc95fan wrote on Fri, 14 December 2007 10:42

Lul, it only takes off 99999 damage, but hey, it'll probably kill XD.

Not if the people are blamo xP


http://i6.photobucket.com/albums/y206/bisen11/bisensubzerosig2.jpg
Re: Death Zone Script [message #303096 is a reply to message #303016] Fri, 14 December 2007 12:56 Go to previous messageGo to next message
Jerad2142 is currently offline  Jerad2142
Messages: 3812
Registered: July 2006
Location: USA
Karma: 6
General (3 Stars)
void reb_team_death_Zone::Entered(GameObject *obj,GameObject *enter)
{
	int x;
	x = Get_Int_Parameter("Player_Type");
	if (CheckPlayerType(enter,x))
	{
		return;
	}
	if (!Commands->Is_A_Star(enter))
	{
		return;
	}
Commands->Apply_Damage(enter,99999,"Blamokiller",false);

}


ScriptRegistrant<reb_team_death_Zone> reb_team_death_Zone_Registrant("reb_team_death_Zone","Player_Type:int");


class reb_team_death_Zone : public ScriptImpClass {
	void Entered(GameObject *obj,GameObject *enter);
};

Fixed that.

Is it meant to only kill the player and no ai?


[Updated on: Fri, 14 December 2007 12:57]

Report message to a moderator

Re: Death Zone Script [message #303136 is a reply to message #303016] Fri, 14 December 2007 14:10 Go to previous messageGo to next message
Gen_Blacky is currently offline  Gen_Blacky
Messages: 3250
Registered: September 2006
Karma: 1
General (3 Stars)
idk he just made real fast 4 me.

cnc95fan wrote on Fri, 14 December 2007 09:42

Lul, it only takes off 99999 damage, but hey, it'll probably kill XD.


not team death zones.


http://s18.postimage.org/jc6qbn4k9/bricks3.png

[Updated on: Fri, 14 December 2007 14:13]

Report message to a moderator

Re: Death Zone Script [message #307425 is a reply to message #303136] Wed, 02 January 2008 15:10 Go to previous message
Jerad2142 is currently offline  Jerad2142
Messages: 3812
Registered: July 2006
Location: USA
Karma: 6
General (3 Stars)
Just to let you know it will not kill any AI that enters the zone if it stays set up like that.

Previous Topic: {Help}Mechs in Renegade
Next Topic: BGate Animation
Goto Forum:
  


Current Time: Fri Dec 20 10:38:44 MST 2024

Total time taken to generate the page: 0.00784 seconds