20 lines
351 B
Plaintext
Raw Permalink Normal View History

void main()
{
int nArmed=GetLocalInt(OBJECT_SELF,"armed");
if (nArmed==0)
{
return;
}
if (GetDamageDealtByType(DAMAGE_TYPE_FIRE) > 0)
{
ExecuteScript("gzcs_pkeg_ignite",OBJECT_SELF);
} else
if (d100()<21) // 20 % chance to blow it up
{
ExecuteScript("gz_pkeg_detonate",OBJECT_SELF);
}
}