From 5969fc35c908bda2eda305d1a0a378d00650c8c8 Mon Sep 17 00:00:00 2001 From: eukara Date: Mon, 27 Nov 2017 00:52:25 -0600 Subject: [PATCH] Actual sources for commit dccd39b66c8f76221277e16482d44af9b5a63581 --- Source/Client/.Overview.c.un~ | Bin 556 -> 0 bytes Source/FreeCS-CE.prj | 2 -- Source/Shared/Equipment.c | 1 + Source/Shared/Weapons.c | 15 ++++++++++++++- 4 files changed, 15 insertions(+), 3 deletions(-) delete mode 100755 Source/Client/.Overview.c.un~ mode change 100755 => 100644 Source/FreeCS-CE.prj diff --git a/Source/Client/.Overview.c.un~ b/Source/Client/.Overview.c.un~ deleted file mode 100755 index e12b00946d0f6af37fb2ef95b69b8c33722ce096..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 556 zcmWH`%$*;a=aT=FfvIxStecAZ(OOI=eZR(-gkQhFWf3YBXRr9-=bcHF&s-NXFfgnI zVi-^aG8my4BnD%HXoe`!bEjD#BJmeM0%!mvRSLw4Ao2e|0M-uTi~<^j05CdEL8IfV z1kn5vAT9^uH9!oC3dOSg%oGLxvecro%+&IDm!iaSpTx@4A`Jzwgr-8ZY2))%0A&v@ A^8f$< 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 );