mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-11 15:22:16 +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)
90 lines
1.4 KiB
Text
90 lines
1.4 KiB
Text
//===========================================================================
|
|
//
|
|
// Imp
|
|
//
|
|
//===========================================================================
|
|
ACTOR DoomImp 3001
|
|
{
|
|
Game Doom
|
|
SpawnID 5
|
|
Health 60
|
|
Radius 20
|
|
Height 56
|
|
Mass 100
|
|
Speed 8
|
|
PainChance 200
|
|
Monster
|
|
+FLOORCLIP
|
|
SeeSound "imp/sight"
|
|
PainSound "imp/pain"
|
|
DeathSound "imp/death"
|
|
ActiveSound "imp/active"
|
|
HitObituary "$OB_IMPHIT"
|
|
Obituary "$OB_IMP"
|
|
States
|
|
{
|
|
Spawn:
|
|
TROO AB 10 A_Look
|
|
Loop
|
|
See:
|
|
TROO AABBCCDD 3 A_Chase
|
|
Loop
|
|
Melee:
|
|
Missile:
|
|
TROO EF 8 A_FaceTarget
|
|
TROO G 6 A_TroopAttack
|
|
Goto See
|
|
Pain:
|
|
TROO H 2
|
|
TROO H 2 A_Pain
|
|
Goto See
|
|
Death:
|
|
TROO I 8
|
|
TROO J 8 A_Scream
|
|
TROO K 6
|
|
TROO L 6 A_Fall
|
|
TROO M -1
|
|
Stop
|
|
XDeath:
|
|
TROO N 5
|
|
TROO O 5 A_XScream
|
|
TROO P 5
|
|
TROO Q 5 A_Fall
|
|
TROO RST 5
|
|
TROO U -1
|
|
Stop
|
|
Raise:
|
|
TROO M 8
|
|
TROO KLJI 8
|
|
Goto See
|
|
}
|
|
}
|
|
|
|
//===========================================================================
|
|
//
|
|
// Imp fireball
|
|
//
|
|
//===========================================================================
|
|
ACTOR DoomImpBall
|
|
{
|
|
Radius 6
|
|
Height 8
|
|
Speed 10
|
|
FastSpeed 20
|
|
Damage 3
|
|
Projectile
|
|
+RANDOMIZE
|
|
RenderStyle Add
|
|
Alpha 1
|
|
SeeSound "imp/attack"
|
|
DeathSound "imp/shotx"
|
|
States
|
|
{
|
|
Spawn:
|
|
BAL1 AB 4 BRIGHT
|
|
Loop
|
|
Death:
|
|
BAL1 CDE 6 BRIGHT
|
|
Stop
|
|
}
|
|
}
|