OpenJK
                                
                                
                                
                                    OpenJK copied to clipboard
                            
                            
                            
                        Animevents is unreliable...
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.
In MP I think it works correctly, so maybe we could port the code over.
@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.
Anybody there?