diff --git a/Source/Client/.Overview.c.un~ b/Source/Client/.Overview.c.un~ deleted file mode 100755 index e12b0094..00000000 Binary files a/Source/Client/.Overview.c.un~ and /dev/null differ diff --git a/Source/FreeCS-CE.prj b/Source/FreeCS-CE.prj old mode 100755 new mode 100644 index a66e5e21..03f42b99 --- a/Source/FreeCS-CE.prj +++ b/Source/FreeCS-CE.prj @@ -117,7 +117,5 @@ - - diff --git a/Source/Shared/Equipment.c b/Source/Shared/Equipment.c index 56f01291..ef672ae0 100755 --- a/Source/Shared/Equipment.c +++ b/Source/Shared/Equipment.c @@ -36,6 +36,7 @@ void CSEv_PlayerBuyEquipment_f( float fID ) { if ( ( self.fMoney - eqptTable[ fID ].iPrice ) >= 0 ) { if ( eqptTable[ fID ].iID == EQUIPMENT_DEFUSALKIT ) { + if ( self.team == TEAM_T ) { return; } if ( !( self.iEquipment & EQUIPMENT_DEFUSALKIT ) ) { self.iEquipment |= EQUIPMENT_DEFUSALKIT; Money_AddMoney( self, -200 ); diff --git a/Source/Shared/Weapons.c b/Source/Shared/Weapons.c index 26990d72..60c9e4a7 100755 --- a/Source/Shared/Weapons.c +++ b/Source/Shared/Weapons.c @@ -481,7 +481,20 @@ void CSEv_PlayerBuyWeapon_f( float fWeapon ) { return; } - // TODO: Don't allow CTs to buy T guns and vice versa! + if ( self.team == TEAM_T ) { + if ( fWeapon == WEAPON_M4A1 ) { return; } + if ( fWeapon == WEAPON_AUG ) { return; } + if ( fWeapon == WEAPON_SG550 ) { return; } + if ( fWeapon == WEAPON_FIVESEVEN ) { return; } + if ( fWeapon == WEAPON_TMP ) { return; } + } else if ( self.team == TEAM_CT ) { + if ( fWeapon == WEAPON_AK47 ) { return; } + if ( fWeapon == WEAPON_SG552 ) { return; } + if ( fWeapon == WEAPON_G3SG1 ) { return; } + if ( fWeapon == WEAPON_ELITES ) { return; } + if ( fWeapon == WEAPON_MAC10 ) { return; } + } + if ( ( self.fMoney - wptTable[ fWeapon ].iPrice ) >= 0 ) { Weapon_AddItem( fWeapon );