mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-07 13:30:23 +00:00
063c85b157
with an FString now. - Fixed: The music strings in the default level info were never freed and caused memory leaks when used repeatedly. - Fixed: The intermusic string in the level info was never freed. - Fixed: The default fire obituary should only be printed if the damage came from the environment. If it comes from a monster the monster specific obituary should be used instead. - Added custom damage types from the floating point test release. - Changed Pain Elemental's massacre check. Now A_PainDie checks for the damage type and doesn't spawn anything if it is NAME_Massacre. A_PainDie can also be used by other actors so a more generalized approach is needed than hard coding it into the Pain Elemental. - Converted a few of Doom's monsters to DECORATE because I couldn't test the first version of the custom state code with the corpses inheriting from them. - Added custom states from last year's floating point test release and fixed some bugs I found in that code. Unfortunately it wasn't all salvageable and it was easier to recreate some parts from scratch. SVN r368 (trunk)
88 lines
1.4 KiB
Text
88 lines
1.4 KiB
Text
//===========================================================================
|
|
//
|
|
// Cacodemon
|
|
//
|
|
//===========================================================================
|
|
ACTOR Cacodemon 3005
|
|
{
|
|
Game Doom
|
|
SpawnID 19
|
|
Health 400
|
|
Radius 31
|
|
Height 56
|
|
Mass 400
|
|
Speed 8
|
|
FastSpeed 20
|
|
PainChance 128
|
|
Monster
|
|
+FLOAT +NOGRAVITY
|
|
SeeSound "caco/sight"
|
|
PainSound "caco/pain"
|
|
DeathSound "caco/death"
|
|
ActiveSound "caco/active"
|
|
Obituary "$OB_CACO"
|
|
HitObituary "$OB_CACOHIT"
|
|
States
|
|
{
|
|
Spawn:
|
|
HEAD A 10 A_Look
|
|
Loop
|
|
See:
|
|
HEAD A 3 A_Chase
|
|
Loop
|
|
Melee:
|
|
Missile:
|
|
HEAD B 5 A_FaceTarget
|
|
HEAD C 5 A_FaceTarget
|
|
HEAD D 5 A_HeadAttack
|
|
Goto See
|
|
Pain:
|
|
HEAD E 3
|
|
HEAD E 3 A_Pain
|
|
HEAD F 6
|
|
Goto See
|
|
Death:
|
|
HEAD G 8
|
|
HEAD H 8 A_Scream
|
|
HEAD I 8
|
|
HEAD J 8
|
|
HEAD K 8 A_Fall
|
|
HEAD L -1 A_SetFloorClip
|
|
Stop
|
|
Raise:
|
|
HEAD L 8 A_UnSetFloorClip
|
|
HEAD KJIHG 8
|
|
Goto See
|
|
}
|
|
}
|
|
|
|
//===========================================================================
|
|
//
|
|
// Cacodemon plasma ball
|
|
//
|
|
//===========================================================================
|
|
ACTOR CacodemonBall
|
|
{
|
|
Game Doom
|
|
SpawnID 126
|
|
Radius 6
|
|
Height 8
|
|
Speed 10
|
|
FastSpeed 20
|
|
Damage 5
|
|
Projectile
|
|
+RANDOMIZE
|
|
RenderStyle Add
|
|
Alpha 1
|
|
SeeSound "caco/attack"
|
|
DeathSound "caco/shotx"
|
|
States
|
|
{
|
|
Spawn:
|
|
BAL2 AB 4 BRIGHT
|
|
Loop
|
|
Death:
|
|
BAL2 CDE 6 BRIGHT
|
|
Stop
|
|
}
|
|
}
|