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
[url]https://github.com/ZDoom/gzdoom/blob/c0c4b784cad07e26f1dbf5759c74f7ceaa656f9a/wadsrc/static/zscript/actors/heretic/ironlich.zs#L324[/url]
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: [url]https://github.com/ZDoom/gzdoom/blob/c0c4b784cad07e26f1dbf5759c74f7ceaa656f9a/wadsrc/static/zscript/actors/actor.zs#L825[/url]
In this context, the source actor "target" is the whirlwind's owner, the ironlich