Vdauphin / HeartsAndMinds

:heart::brain: 1.24.4 is out! 🎉
http://vdauphin.github.io/HeartsAndMinds/
111 stars 66 forks source link

"Require Object" can cause massive amounts of damage to player(s) #1592

Closed Sora012 closed 7 months ago

Sora012 commented 7 months ago

Arma 3 Version: 2.16 (stable) CBA Version: 3.16 (steam workshop) ACE3 Version: 3.16 (steam workshop) Hearts and minds Version: 1.23.7 (stable + git master with base location change)

Mods: https://steamcommunity.com/sharedfiles/filedetails/?id=1798015776

Description: Using "Require Object" can cause a massive amount of damage or even death to a player after touching the objects

Steps to reproduce: 1) "Require Object" at the logistics point and swap to a h-barrier and apply -> touch object and receive no damage and no death even after raising/lowering 2) "Require Object" at the logistics point and swap to a h-barrier then swap away and then swap back and apply -> touch object (may need to raise/lower) and receive massive amounts of damage or death

RPT log file:

Vdauphin commented 7 months ago

Hello,

Can you try with only CBA and ACE?

Cheers

Sora012 commented 7 months ago

With the only exception of the base having been moved to a different location. I nuked the server profile, disabled all mods excluding CBA/ACE, and the issue still occurs.

I have updated the RPT in the above original comment, uploaded another video

Vdauphin commented 7 months ago

Open the chemical detector and check if you are not contaminated

Sora012 commented 7 months ago

Here is another video with chemical detector shown. This is the only mission I've played that has this issue.

Vdauphin commented 7 months ago

Please provide the requested .rpt and .pbo

Sora012 commented 7 months ago

Vanilla Release, ONLY CBA/ACE, with RPT, and Screenshot of proof it occurs.

A3.zip

Vdauphin commented 7 months ago

From what I see, you just have to avoid to press any key when releasing an object

Sora012 commented 7 months ago

It was originally discovered when we were moving props under fire, and air dropping them, but we were unsure what was causing it. However waiting about half a second or longer between releasing the key and releasing the prop, I wasn't able to recreate it.. But that was only with a small amount of testing, Is this fixable?

Vdauphin commented 7 months ago

Is this fixable?

I investigated yesterday but no luck, I will try this week end

Vdauphin commented 7 months ago

Apparently it is a A3/ACE bug that ACE team fixed by disabling damage Here is a quick code to reporduce the bug. Note that you must run when the object detach to reproduce the bug

btc_log_placing_obj = cursorObject;
private _bbr = 0 boundingBoxReal btc_log_placing_obj; 

btc_log_placing_h = (btc_log_placing_obj modelToWorldVisual [0, 0, 0] select 2) - (player modelToWorldVisual [0, 0, 0] select 2); 
btc_log_placing_d = 1.5 + abs(((_bbr select 1) select 1) - ((_bbr select 0) select 1));

btc_log_placing_obj attachTo [player, [0, btc_log_placing_d, btc_log_placing_h]];

["ace_common_fixCollision", player] call CBA_fnc_localEvent; 
["ace_common_fixCollision", btc_log_placing_obj, btc_log_placing_obj] call CBA_fnc_targetEvent; 

[] spawn {sleep 5; detach btc_log_placing_obj};
Vdauphin commented 7 months ago

The fix prevent player from getting damage for 2s https://github.com/acemod/ACE3/blob/master/addons/common/functions/fnc_fixCollision.sqf#L24 If you don't smash your head endlessly you should be fine