Why not just go where it checks if the buttons are being pressed and add your conditional statement there.
----- Original Message ----- From: "r00t 3:16" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Tuesday, March 29, 2005 3:47 PM Subject: [hlcoders] Debounce the key or disable attack keys > I have a round based mod and when the player spawns they can turn etc but I > do not want them to be able to fire primary or secondary weapon. > I tried doing something like > In the CHL2MP_Player::PreThink() > > if ( HL2MPRules()->IsRoundFrozen() ) > { > m_nButtons |= ~IN_ATTACK; > m_nButtons |= ~IN_ATTACK2; > } > Which does not work as expected. > > How could I disable the attack keys ? > > > r00t 3:16 > CQC Gaming > www.cqc-gaming.com > > > _______________________________________________ > To unsubscribe, edit your list preferences, or view the list archives, please visit: > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > > _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

