Code: Select all
class Bostan : Actor
{
Default
{
Health 500;
Radius 20;
Height 56;
Speed 8;
PainChance 200;
MinMissileChance 256;
Monster;
-COUNTKILL
+FLOORCLIP
+NOBLOOD
SeeSound "bostan/sight";
AttackSound "bostan/attack";
PainSound "bostan/pain";
DeathSound "bostan/death";
ActiveSound "bostan/active";
Obituary "%o did to many push-ups.";
Tag "$FN_BOSTAN";
}
States
{
Spawn:
BOST AB 10 A_Look;
Loop;
See:
BOST AABBCCDD 4 A_Chase;
Loop;
Missile:
BOST E 10 A_FaceTarget;
BOST E 8 A_Playsound("bostan/attack");
BOST E 8;
Goto See;
Pain:
BOST G 3;
BOST G 3 A_Pain;
Goto See;
Death:
BOST H 5;
BOST I 5 A_Scream;
BOST J 5 A_NoBlocking;
BOST K 5 A_GiveInventory ("Pushupscount",1);
Goto Pushups;
Pushups:
BOST IJK 10 {A_GiveInventory ("Pushupscount",1);
A_Playsound("bostan/PushUps");
A_NoBlocking();
{if(CountInv("Pushupscount") < 5);
A_Jump(256,"Pushups");
}
}
//XDeath:
//BOST M 5;
//BOST N 5 A_XScream;
//BOST O 5 A_NoBlocking;
//BOST PQRST 5;
//BOST U -1;
//Stop;
Raise:
BOST K 5;
BOST JIH 5;
Goto See;
}
}
Class Pushupscount : Inventory
{
Default
{
Inventory.Amount 1;
Inventory.MaxAmount 250;
}
}