PDA

View Full Version : hooking FireEvent



P47R!CK
02-10-2005, 02:09 PM
void C_BaseViewModel::FireEvent( const Vector& origin, const QAngle& angles, int event, const char *options )
{
if ( ( event == AE_CL_PLAYSOUND ) || ( event == CL_EVENT_SOUND ) )
{
// soundesp goes here ;)
}

// Otherwise pass the event to our associated weapon
C_BaseCombatWeapon *pWeapon = GetActiveWeapon();
if ( pWeapon )
{
//nospread report shot
}
}

address is 0x241355C0
Credits: Tetsuo & PizzaPan

sp0rky
02-10-2005, 02:36 PM
Cool beans.
We got a little routine going here. Stickied.