Death Zone Script [message #303016] |
Thu, 13 December 2007 23:50 |
|
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);
};
|
|
|
|
|
Re: Death Zone Script [message #303089 is a reply to message #303054] |
Fri, 14 December 2007 12:29 |
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
|
|
|
Re: Death Zone Script [message #303096 is a reply to message #303016] |
Fri, 14 December 2007 12:56 |
|
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?
Visit Jerad's deer sweat shop
[Updated on: Fri, 14 December 2007 12:57] Report message to a moderator
|
|
|
|
|