sfall-team / sfall

sfall - Engine modifications for Fallout 2
https://sfall-team.github.io/sfall/
GNU General Public License v3.0
342 stars 40 forks source link

HOOK_TOHIT does not include weapon/ammo #414

Closed tnevolin closed 2 years ago

tnevolin commented 2 years ago

HOOK_TOHIT does not include weapon among parameters. The weapon can carry important perks affecting accuracy and so does ammo. Can these parameters be included?

NovaRain commented 2 years ago

Just get the weapon pointer from the attacker's hand.

tnevolin commented 2 years ago

Which hand?

FakelsHub commented 2 years ago

https://phobos2077.github.io/sfall/sfall-funcx-macros/#critter_inven_obj2

for a Non-Player Character, the active hand is always right. (_RIGHT_SLOT)

tnevolin commented 2 years ago

Awesome! Thank you.