Thread: [Solved] Unexpected TraceAttack
View Single Post
ConorCC
Member
Join Date: Feb 2014
Old 01-10-2021 , 12:59   Re: Unexpected TraceAttack
Reply With Quote #3

Tested with AMXX 1.8 and 1.9, on HLDS and ReHLDS, on Linux and Windows, with players and bots. The results are the same.

I detected when mystery damage has taken it says 15.0 that is actually not true cause after I repeat the last damage on myself it multipled by 1/3 so 5.0.

Edit: Updated source code in comment one. That is generating the following logs:

Code:
L 01/11/2021 - 08:22:14: CMD ATT! FROM Johan as Corn TO [POD]Headshot Deluxe (96) WITH 50.00
L 01/11/2021 - 08:22:14: TRACE ATTACK! FROM Johan as Corn TO [POD]Headshot Deluxe (96) WITH 50.00
L 01/11/2021 - 08:22:21: TRACE ATTACK! FROM [POD]Headshot Deluxe (96) TO Johan as Corn WITH 65.00
L 01/11/2021 - 08:22:21: TAKE DAMAGE! FROM [POD]Headshot Deluxe (96) TO Johan as Corn WITH 65.00
L 01/11/2021 - 08:22:22: CMD ATT! FROM Johan as Corn TO [POD]Headshot Deluxe (96) WITH 50.00
L 01/11/2021 - 08:22:22: TAKE DAMAGE! FROM Johan as Corn TO Johan as Corn WITH 65.00
L 01/11/2021 - 08:22:22: TRACE ATTACK! FROM Johan as Corn TO [POD]Headshot Deluxe (96) WITH 50.00
After a real attack (by a bot to me) (knife stab) I receive his last damage * 1/3 from myself. The first time this extra damage doesn't apper cause I think there is no prev damage in the puffer.

Edit: As I see the damage receiver will be te prev attack's target and not the sender. In this example it is me both but can be anybody else.

Last edited by ConorCC; 01-11-2021 at 02:42. Reason: Add tests
ConorCC is offline