[DIY] Delayed in time damage virtual

Moderator: GZDoom Developers

Delayed in time damage virtual

Postby Apeirogon » Thu Feb 07, 2019 11:45 am

Virtual function in which can be defined how much time some actor receive damage, like burning, radiation or poisoning, with pointer to actor which inflict such damage.
Like "DOT(Damage Over Time)Mobj(actor source, int damage, int duration, string damage type, other important variables)", i.e. wrapper around damage mobj which calls it some time, if that is correct name for this.
Because if I want to make a projectile which must cause internal trauma/bleeding/acid/alkali/etc. damage I must use hacks with inventory items and/or projectiles which perform such attack to correctly store pointer to actor which perform this attack.
I have a strange sense of humour
Joined: 12 Jun 2017

Re: Delayed in time damage virtual

Postby Graf Zahl » Thu Feb 07, 2019 11:59 am

You do not need hacks. What you need is a thinker that periodically inflicts the damage. Internally I couldn't do it any other way.
User avatar
Graf Zahl
Lead GZDoom Developer
Lead GZDoom Developer
Joined: 19 Jul 2003
Location: Germany

Return to Closed Feature Suggestions

Who is online

Users browsing this forum: No registered users and 1 guest