Actual sources for commit dccd39b66c8f76221277e16482d44af9b5a63581

This commit is contained in:
Marco Cawthorne 2017-11-27 00:52:25 -06:00
parent 54a8b696f5
commit 5969fc35c9
4 changed files with 15 additions and 3 deletions

Binary file not shown.

2
Source/FreeCS-CE.prj Executable file → Normal file
View file

@ -117,7 +117,5 @@
</project>
<workspace version="Crimson Editor 3.60">
<localfile path="C:\cygwin\home\User\FreeCS\Source\Shared\Effects.c" linenum="1" placement="0:1:-1:-1:-4:-23:22:22:894:458" />
<localfile path="C:\Users\User\Dropbox\The Wastes Build\wastes\scripts\weapons.shader" linenum="499" placement="2:3:-1:-1:-4:-23:22:22:894:458" />
</workspace>

View file

@ -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 );

View file

@ -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 );