Banner
*moan* m-my health, you baka
Thumbnail
Downloads2,402
Views12,502
Publish Date3 years ago
Last Updated3 years ago
Version1.1
Members
Avatar
KotOwner
Avatar

It doesn't work correctly with Gambler. Ammo pickups (which heal you) play the hurt sounds.

Avatar
(Owner)3 years ago(Edited)

Weird, im going to look into it once i have time. I set it so that the when the change_of_health is negative it should play it, perhaps there's some weird fuckery with it, since it doesn't play the sound with any other healing afaik.

Update: I tried it myself, didnt play any sound for me at least. So i dont know what's on your end, did you edit the LUA file or did you have any other skills that could affect health gain?

Avatar

@Kot

So i dont know what's on your end, did you edit the LUA file or did you have any other skills that could affect health gain?

Gambler Perk Deck Buff. For whatever reason, the two are incompatible.

Avatar
(Owner)3 years ago(Edited)

@Awooo So it seems, i figured it out, at least on surface, it seems that the Gambler deck buff mod deals 10 damage right before healing you.

You can fix it by changing the lua file playermanager.lua line

				damage_ext:_calc_health_damage({damage = 1, variant = "melee"})

to

				damage_ext:_calc_health_damage({damage = 0, variant = "melee"})

but im unsure whether it breaks that mod. At least it did heal me still.

Alternatively you can change the value in my mod to be

				tonumber(change_of_health) < 0  

to

				tonumber(change_of_health) < -10

It's twice there, in line 19 and 22. In this case you wont hear the sound if you take less than 10 damage though.

Avatar

dang a gambler player

22 964