Пример #1
0
void CElementRPCs::SetCustomWeaponState ( CClientEntity * pSource, NetBitStreamInterface& bitStream )
{
    char cWeaponState = 0;
    if ( bitStream.Read ( cWeaponState ) &&
        pSource->GetType() == CCLIENTWEAPON )
    {
        CClientWeapon * pWeapon = static_cast < CClientWeapon * > ( pSource );
        pWeapon->SetWeaponState ( (eWeaponState) cWeaponState );
    }
}