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)
74 lines
1.3 KiB
Text
74 lines
1.3 KiB
Text
//===========================================================================
|
|
//
|
|
// Pink Demon
|
|
//
|
|
//===========================================================================
|
|
ACTOR Demon 3002
|
|
{
|
|
Game Doom
|
|
SpawnID 8
|
|
Health 150
|
|
PainChance 180
|
|
Speed 10
|
|
Radius 30
|
|
Height 56
|
|
Mass 400
|
|
Monster
|
|
+FLOORCLIP +FASTER +FASTMELEE
|
|
SeeSound "demon/sight"
|
|
AttackSound "demon/melee"
|
|
PainSound "demon/pain"
|
|
DeathSound "demon/death"
|
|
ActiveSound "demon/active"
|
|
Obituary "$OB_DEMONHIT"
|
|
States
|
|
{
|
|
Spawn:
|
|
SARG AB 10 A_Look
|
|
Loop
|
|
See:
|
|
SARG AABBCCDD 2 A_Chase
|
|
Loop
|
|
Melee:
|
|
SARG EF 8 A_FaceTarget
|
|
SARG G 8 A_SargAttack
|
|
Goto See
|
|
Pain:
|
|
SARG H 2
|
|
SARG H 2 A_Pain
|
|
Goto See
|
|
Death:
|
|
SARG I 8
|
|
SARG J 8 A_Scream
|
|
SARG K 4
|
|
SARG L 4 A_Fall
|
|
SARG M 4
|
|
SARG N -1
|
|
Stop
|
|
Raise:
|
|
SARG N 5
|
|
SARG MLKJI 5
|
|
Goto See
|
|
}
|
|
}
|
|
|
|
//===========================================================================
|
|
//
|
|
// Spectre
|
|
//
|
|
//===========================================================================
|
|
ACTOR Spectre : Demon 58
|
|
{
|
|
SpawnID 9
|
|
+SHADOW
|
|
RenderStyle OptFuzzy
|
|
Alpha 0.5
|
|
SeeSound "spectre/sight"
|
|
AttackSound "spectre/melee"
|
|
PainSound "spectre/pain"
|
|
DeathSound "spectre/death"
|
|
ActiveSound "spectre/active"
|
|
HitObituary "$OB_SPECTREHIT"
|
|
}
|
|
|
|
|