|
|
|
Very simple done, this you now be able to taunt other players when you have the crowbar out. Startup by opening mp workspace and crowbar.cpp Then in the crowbar class add a new function: //bigguy void SecondaryAttack(void); Then goto the bottom of the file and add this: void CCrowbar::SecondaryAttack(void) { //bigguy SENTENCEG_PlayRndSz( ENT(pev), "HG_TAUNT", 0.35, ATTN_NORM, 0, 100); m_flNextSecondaryAttack = gpGlobals->time + 2; } Now you have a secondary fire for the crowbar!
Any questions or suggestions should be sent to me:
bigguy@valveworld.com