Extending actors

Moderator: GZDoom Developers

Post Reply
Evil Space Tomato
Posts: 78
Joined: Tue Jul 20, 2004 7:56 pm
Graphics Processor: nVidia with Vulkan support

Extending actors

Post by Evil Space Tomato »

I think it would be helpful if when you extend an actor and give it the same name as the original it would modify the original, this would allow me to add burning, ice, disintegration death states to original doom monsters and the player.
User avatar
Sir_Alien
Posts: 863
Joined: Sun Aug 29, 2004 6:15 am
Location: Sydney, Australia
Contact:

Post by Sir_Alien »

Have you actually tried to do this? I'm pretty sure it's already possible. Just inherit with the same name and number and add the appropriate states/flags.
User avatar
Kirby
Posts: 2697
Joined: Thu Aug 26, 2004 1:23 pm

Post by Kirby »

Sir_Alien wrote:Have you actually tried to do this? I'm pretty sure it's already possible. Just inherit with the same name and number and add the appropriate states/flags.
Sir_Alien is right. All you have to do is use inheriting in Decorate, like so

Code: Select all

ACTOR SpecialRevenant : Revenant 23000
{
 Health 2500
 RenderStyle OptFuzzy
 Alpha 0.4
 Painchance 30
 +DONTHURTSHOOTER
} 
That's an example showing an inherited revenant, enhacned to have the specter translucency, more health, an extra flag, and a lower painchance
User avatar
Siggi
Posts: 3288
Joined: Sun Oct 03, 2004 8:57 am
Preferred Pronouns: They/Them
Location: South Africa

Post by Siggi »

That method does work, however, it also gives warning messages when ZDoom starts.
So maybe there should be a way to stop the warning message from appearing...
User avatar
Anakin S.
Posts: 1067
Joined: Fri Nov 28, 2003 9:39 pm
Location: A long time ago in a galaxy far, far away...

Post by Anakin S. »

...which you can do by editing a dehacked patch. For the revenant thing you would type in:

Code: Select all

Thing 6 (Revenant)
ID# = -1
To replace the original revenant, the decorate monster would have to have this as the top line:

Code: Select all

ACTOR SpecialRevenant : Revenant 66
Evil Space Tomato
Posts: 78
Joined: Tue Jul 20, 2004 7:56 pm
Graphics Processor: nVidia with Vulkan support

Post by Evil Space Tomato »

I should have tried that, now i feal a bit dumb.
Thx for all your help.
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”