Whirlwind's DoSpecialDamage()'s DamageMobj() mixup
Posted: 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
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