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 ) {
input_buttons |= INPUT_BUTTON5;
input_buttons |= INPUT_BUTTON3;
}
if ( iInputReload == TRUE ) {
@ -729,7 +729,7 @@ void CSQC_Input_Frame( void ) {
}
if ( iInputUse == TRUE ) {
input_buttons |= INPUT_BUTTON3;
input_buttons |= INPUT_BUTTON5;
}
if ( iInputDuck == TRUE ) {

View file

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

View file

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

View file

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

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.