#Sean’s Smarter Damage (WIP)

1 messages · Page 1 of 1 (latest)

finite cove
#

This is the mod for adding a limb damage system similar to games like EFT. Besides each body part having a health pool, damage to each body part will have different effects on characters.

#

So, i don’t think the mod can work without making changes to aschar

main violet
#

What part needs aschar?

finite cove
#

adding the effects to characters

#

so limping, stopping a character from attacking with a certain arm etc.

#

@main violet help

#

whenever i call this function i get an out of bounds index error

#

at line 37 which is the if statement

main violet
#

Sorry I'm at work rn, won't be around for a bit yet

finite cove
#

no worries

finite cove
main violet
#

It's a loop so you are probably looking outside of the array by accident

#

G2g

finite cove
#

didn't fix it but i've just made it so i check for if a character exists in an array before adding them

ionic river
#

quick guess and then i'm passing out - you get the length of the array once before any of the for-loops, but then remove stuff from the array within the for-loops which changes the length

idk, just a guess, i haven't touched any of this backwards-iterating stuff myself

anywho all the best

finite cove
#

i just check for if a character exists first

finite cove
#

ok so

#

i'm back to working on this again

#

took a day off

#

i have a few choices for how to implement the damage but i'm not quite sure which one i wanna do

#

or which work honestly

finite cove
#

i'm pretty sure i can't override the entire damage system without accessing aschar

#

if i could that would save me some trouble

#

cuz normally if a character takes damage it's always to what would be my torso health pool

ionic river
#

Also to answer your stuff from #overgrowth_modding - It's pretty much what Gyrth said.
If they got a weapon you can check from the weapon's position, but if they're unarmed I think there is a way of brute-forcing it.

Though if you're doing aschar changes then you don't gotta worry about that and can just use "pos" directly.

#

I think there is a way of brute-forcing it.
By looping through both of the attacker's fist and both of their feet, and whichever of those is closet to any "section" of the victim is probably the fist/foot they were hit by.

finite cove
#

i'm not gonna bother with the headache and just modify aschar

finite cove
#

tarkov addiction underway

#

will be back to work soonish

finite cove