OpenJK icon indicating copy to clipboard operation
OpenJK copied to clipboard

Animevents is unreliable...

Open dusty22 opened this issue 9 years ago • 3 comments

I noticed entries in animevents.cfg tend to be unreliable sometimes in Single Player. For example, BOTH_MELEE2 never plays any sound despite having an entry in the file as: BOTH_MELEE2 AEV_SOUNDCHAN 2 CHAN_AUTO sound/weapons/melee/swing%d.wav 1 4 0

I can confirm from my own testing that the issue seems to be in the function CG_PlayerAnimEvents. Will do some more testing later.

dusty22 avatar Mar 30 '16 12:03 dusty22

In MP I think it works correctly, so maybe we could port the code over.

dusty22 avatar Jun 16 '16 13:06 dusty22

@Razish @mrwonko @xycaleth

I never did really look into this. I did a preliminary investigation and what seemed to be happening was that the loop (I think it was in the cgame or bg) that combs through the animevents file looking for entries was running but failing to find the animevent entry at all, at least for the punch animations in the case where the sounds weren't playing. I didn't look into the cause though.

Perhaps someone else could take it up? I've been doing a lot of coding on my fork lately and have been pretty tied up with that.

dusty22 avatar Aug 04 '16 22:08 dusty22

Anybody there?

dusty22 avatar Aug 09 '16 13:08 dusty22