package package_name
{
function miniGameSO::removeMember( %this, %cl )
{
%cl.isDead = "";
parent::removeMember( %this, %cl );
}
function miniGameSO::reset( %this, %cl )
{
for ( %i = 0 ; %i < %this.numMembers ; %i++ )
{
%this.member[ %i ].isDead = "";
}
parent::reset( %this, %cl );
}
function gameConnection::createPlayer( %this, %transform )
{
%this.isDead = "";
return parent::createPlayer( %this, %transform );
}
function gameConnection::onDeath( %this, %pl, %cl, %type, %loc )
{
parent::onDeath( %this, %pl, %cl, %type, %loc );
messageClient( %this, 'MsgYourSpawn' );
%this.isDead = true;
%this.centerPrint( "\c5You are dead.", 2 );
}
function observer::onTrigger( %this, %obj, %slot, %val )
{
if ( !%obj.client.isDead )
{
return parent::onTrigger( %this, %obj, %slot, %val );
}
}
};
activatePackage( "package_name" );