-- [ Picked text/plain from multipart/alternative ] Hey all, I'm looking to add a view punch when the player reloads the weapon, basically COD2-esque just to test some stuff out. I'm trying to figure out the best way to go about this. I've tried adding an anim event and compiling the model using that (added entries in eventlist.cpp and eventlist.h) but I am getting a crash when checking the event in both C_BaseViewModel::FireEvent and C_BaseAnimating::FireEvent when using this code:
C_BasePlayer *pPlayer = C_BasePlayer::GetLocalPlayer(); pPlayer->ViewPunch( QAngle( -2, 0, 0 ) ); What I'm needing to know is wether that code is crashing it, or wether there is something else that may be doing it (something to do with the event declaration, two events running on the same frame etc), and wether there is another way to go about this (ie checking the current animation and frame number in the ItemBusyFrame/ItemPostFrame function for example) Thanks all, Matt -- Matt Stafford (Wraiyth) http://www.wraiyth.freesuperhost.com NightFall HL2 Mod - www.nightfallmod.net -- _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

