#Sean’s Smarter Damage (WIP)
1 messages · Page 1 of 1 (latest)
What part needs aschar?
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
Sorry I'm at work rn, won't be around for a bit yet
no worries
didn't fix it but i've just made it so i check for if a character exists in an array before adding them
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
that might be it
i just check for if a character exists first
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
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
Changing the aschar is probably needed I think?
Even if you can access all the yams you needa access to deal and track limb/torso/head damage - I think you'd need aschar changes to do the effects you'd want as a result of said damage.
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.
that was an idea i had
i'm not gonna bother with the headache and just modify aschar
this was a lie