Battle Slug code (DECORATE):
Code: Select all
ACTOR BattleSlug
{
Tag "Battle Slug"
Scale 1.5
Health 900
Radius 60
Height 70
Mass 1000
Speed 8
PainChance 80
Monster
+FLOORCLIP
+BOSSDEATH
SeeSound "slug/sight"
PainSound "slug/pain"
DeathSound "slug/death"
ActiveSound "slug/active"
Obituary "%o was fried by a Battle Slug"
States
{
Spawn:
SLUG AB 15 A_Look
Loop
See:
SLUG AABBCCDDEEFF 4 A_Chase
Loop
Missile:
SLUG G 20 A_FaceTarget
TNT1 A 0 A_PlaySound("slug/attack")
SLUG H 10 Bright A_FatAttack1("SlugBall")
SLUG IG 5 A_FaceTarget
SLUG H 10 Bright A_FatAttack2("SlugBall")
SLUG IG 5 A_FaceTarget
SLUG H 10 Bright A_FatAttack3("SlugBall")
SLUG IG 5 A_FaceTarget
Goto See
Pain:
SLUG J 3
SLUG J 3 A_Pain
Goto See
Death:
SLUG K 6
SLUG L 6 A_Scream
SLUG M 6 A_NoBlocking
SLUG NOPQRS 6
SLUG T -1 A_BossDeath
Stop
Raise:
SLUG R 5
SLUG QPONMLK 5
Goto See
}
//$Category Monsters
}
Projectile code (DECORATE):
Code: Select all
ACTOR SlugBall
{
Scale 1.3
Radius 6
Height 8
Speed 25
Damage 15
Projectile
+RANDOMIZE
+ROCKETTRAIL
RenderStyle Normal
Damagetype Rocket
Alpha 1
SeeSound "slugball/shoot"
DeathSound "slugball/explode"
States
{
Spawn:
SLOT AB 4 Bright
Loop
Death:
SLEX B 8 Bright A_SpawnItem("SmallExplosionSpawner")
TNT1 A 0 A_PlaySound("Explosion")
SLEX C 6 Bright
SLEX D 4 Bright
Stop
}
}
https://youtu.be/NJBAmDwm1qo
Any help is appreciated!