Whirlwind's DoSpecialDamage()'s DamageMobj() mixup

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.

Post a reply

Smilies
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :geek: :ugeek: :!: :?: :idea: :arrow: :| :mrgreen: :3: :wub: >:( :blergh:
View more smilies

BBCode is OFF
Smilies are ON

Topic review
   

Expand view Topic review: Whirlwind's DoSpecialDamage()'s DamageMobj() mixup

Re: Whirlwind's DoSpecialDamage()'s DamageMobj() mixup

by Rachael » Tue May 27, 2025 11:10 pm

Third time's a charm?

Whirlwind's DoSpecialDamage()'s DamageMobj() mixup

by Fishytza » Tue May 27, 2025 12:17 am

https://github.com/ZDoom/gzdoom/blob/c0 ... ch.zs#L324
Which reads: target.DamageMobj (null, victim, 3, 'Melee');

Should be: victim.DamageMobj (null, target, 3, 'Melee');

Because the syntax for DamageMobj is
int DamageMobj(Actor inflictor, Actor source, int damage, Name mod, int flags = 0, double angle = 0);
Source: https://github.com/ZDoom/gzdoom/blob/c0 ... or.zs#L825

In this context, the source actor "target" is the whirlwind's owner, the ironlich

Top