morerokk / IreNFist

A continuation/fix of the IreNFist mod for PAYDAY 2
MIT License
4 stars 2 forks source link

Crash on crit with Mk211 Mod 0 Multipurpose round for Thanatos #130

Open Vulfski opened 2 years ago

Vulfski commented 2 years ago

Application has crashed: C++ exception [string "lib/units/enemies/cop/copdamage.lua"]:2277: attempt to perform arithmetic on local 'damage' (a nil value)

SCRIPT STACK

damage_fire() @mods/IRE AND FIST REBORN/lua/copdamage.lua:286 give_fire_damage() @mods/IRE AND FIST REBORN/lua/raycast.lua:1098 func() @mods/IRE AND FIST REBORN/lua/raycast.lua:958 on_collision() @mods/base/req/core/Hooks.lua:282 _fire_raycast() @mods/WeaponLib/hooks/lib/units/weapons/newraycastweaponbase.lua:457 original_fire() @mods/IRE AND FIST REBORN/lua/raycast.lua:300 fire() @mods/IRE AND FIST REBORN/lua/raycast.lua:328 fire_original() @mods/WeaponLib/hooks/lib/units/weapons/newraycastweaponbase.lua:1350 fire() @mods/IRE AND FIST REBORN/lua/BurstFire.lua:150 trigger_pressed() lib/units/weapons/raycastweaponbase.lua:413 original() @mods/IRE AND FIST REBORN/lua/playerstandard.lua:1191 _check_action_primary_attack() @mods/base/req/core/Hooks.lua:288 _update_check_actions() lib/units/beings/player/states/playerstandard.lua:962 original() lib/units/beings/player/states/playerstandard.lua:441 update_original() @mods/base/req/core/Hooks.lua:288 update() @mods/IRE AND FIST REBORN/lua/BurstFire.lua:350 original() lib/units/beings/player/playermovement.lua:279 @mods/base/req/core/Hooks.lua:288


Crashes every single time I get a crit, either on the initial hit or the fire ticks.

Vulfski commented 2 years ago

Any fire crashes with the same log it seems