I have written a knife based very closely on the crowbar in the SDK. Since I ported it to the 2.2 SDK, the client side animations are not working correctly. I have gone through my code line by line and compared it with the crowbar code. I have made everything the same except for the models and animations.
My EV_Knife function is not getting called, although the primary attack is getting called in both client and server dll's. The PLAYBACK_EVENT_FULL() is getting called in my primary attack. This means that hit animations work fine (they are not scripted), but the miss animations don't work. Also, I ported all my other weapons without a problem, so I think I know everything I need to change (if anyone is interested, I have a list of changes need to add weapons within the new 2.2 client side scripting model) From what I can tell, in HUD_WeaponsPostThink() in hl_weapons.cpp, from->client.m_iId is being passed in as 0 for the knife when it should actually be 1. Because of this, the knife isn't being selected as the current weapon. Does this ring a bell? Anyone know where I should be looking? This same thing was also reported to the wavelength forumns with the crowbar, but it was not answered. To see if it was an SDK bug, I compiled the release version of the 2.2 SDK and it works. The URL for that post is; http://dynamic.gamespy.com/~wavelength/ubb/Forum3/HTML/008218.html Any ideas? Rob 'Commando' Prouse Tour of Duty Mod http://www.tourofdutymod.com _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

