Swapped the internal button bits for use/attack2 as it was causing problems in new engine binaries.

This commit is contained in:
Marco Cawthorne 2018-12-05 20:52:27 +01:00
parent 40c247a823
commit f15217db91
9 changed files with 6 additions and 5 deletions

View file

@ -721,7 +721,7 @@ void CSQC_Input_Frame( void ) {
} }
if ( iInputAttack2 == TRUE ) { if ( iInputAttack2 == TRUE ) {
input_buttons |= INPUT_BUTTON5; input_buttons |= INPUT_BUTTON3;
} }
if ( iInputReload == TRUE ) { if ( iInputReload == TRUE ) {
@ -729,7 +729,7 @@ void CSQC_Input_Frame( void ) {
} }
if ( iInputUse == TRUE ) { if ( iInputUse == TRUE ) {
input_buttons |= INPUT_BUTTON3; input_buttons |= INPUT_BUTTON5;
} }
if ( iInputDuck == TRUE ) { if ( iInputDuck == TRUE ) {

View file

@ -327,6 +327,8 @@ float Weapon_GetSpeedM( float fWeapon );
.vector view_ofs; .vector view_ofs;
.float maxspeed; .float maxspeed;
.int iNull;
/* /*
================= =================
Game_GetMaxSpeed Game_GetMaxSpeed

View file

@ -133,7 +133,6 @@ int iBombPlanted;
entity eActivator; entity eActivator;
.void() vUse; .void() vUse;
.int iUsable; .int iUsable;
.int iNull;
// GoldSrc-Rendermode Fields // GoldSrc-Rendermode Fields
.vector rendercolor; .vector rendercolor;

View file

@ -55,7 +55,7 @@ void Input_Handle( void ) {
Weapon_Switch( SLOT_GRENADE ); Weapon_Switch( SLOT_GRENADE );
} }
if ( self.button3 ) { if ( self.button5 ) {
Player_UseDown(); Player_UseDown();
} else { } else {
Player_UseUp(); Player_UseUp();
@ -67,7 +67,7 @@ void Input_Handle( void ) {
} }
} else if ( self.button4 ) { } else if ( self.button4 ) {
Weapon_Reload( self.weapon ); Weapon_Reload( self.weapon );
} else if ( self.button5 ) { } else if ( self.button3 ) {
Weapon_SecondaryAttack( self.weapon ); Weapon_SecondaryAttack( self.weapon );
} else { } else {
Weapon_Release(); Weapon_Release();

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.