studio-minus / madness-interactive-reloaded

Moddable videogame based on Madness Combat
https://studiominus.nl/madness-interactive-reloaded.html
GNU General Public License v3.0
76 stars 14 forks source link

throwing sharp objects do not work #340

Open ahmetboi opened 1 month ago

ahmetboi commented 1 month ago

Describe the bug appareantly even a big ass axe cannot go in to the grunts body or head

Steps to reproduce

  1. get a knife,axe,sword etc 2.throw Expected behaviour the axe to stab the enemy

Screenshots or video

Desktop

issueacc commented 1 month ago

it does work, i think its just really random or something as in the blade needs to face the enemy as it hits them?

ahmetboi commented 1 month ago

No like the chance of a knife killing an enemy by throwing is %6, EVEN if the knives angle is facing the enemy

issueacc commented 1 month ago

oh, ok. that does seem rather low. i feel like 15% would work better, but nothing too high

ahmetboi commented 1 month ago

İts like it wants to do it, but it cant

issueacc commented 1 month ago

i never encountered that but i do notice that throwing blades is... way too janky. we should wait for a dev to respond I suppose

mestiez commented 1 month ago

Sharp projectiles are somehow tied to framerate. This is likely because the period during which the sharp bounds of the weapon intersect with the body part may be skipped entirely at low framerates.

The real solution here is to rewrite the VelocitySystem such that it runs in the fixed update loop instead of the frame update loop. Unfortunately it's a bit too late for this, so I haven't even tried to fix it.