Merge client/input.qc and server/input.qc into shared/input.qc
This commit is contained in:
parent
a6a0abcc5e
commit
24428a072f
5 changed files with 15 additions and 12 deletions
|
@ -33,7 +33,6 @@ crosshair.qc
|
|||
hud.qc
|
||||
hud_weaponselect.qc
|
||||
../../../valve/src/client/scoreboard.qc
|
||||
../../../valve/src/client/input.qc
|
||||
radio.qc
|
||||
../../../base/src/client/modelevent.qc
|
||||
|
||||
|
|
|
@ -18,6 +18,8 @@
|
|||
#include "money.h"
|
||||
#include "radio.h"
|
||||
#include "../../../valve/src/server/items.h"
|
||||
#include "../../../valve/src/server/flashlight.h"
|
||||
#include "../../../valve/src/server/player.h"
|
||||
|
||||
var int g_cstrike_buying = 0;
|
||||
var float g_cstrike_bombradius = 500;
|
||||
|
|
|
@ -53,7 +53,6 @@ server.qc
|
|||
../../../valve/src/server/flashlight.qc
|
||||
../../../base/src/server/modelevent.qc
|
||||
|
||||
input.qc
|
||||
spawn.qc
|
||||
|
||||
../../../src/server/include.src
|
||||
|
|
|
@ -47,6 +47,7 @@ w_hegrenade.qc
|
|||
w_smokegrenade.qc
|
||||
weapons.qc
|
||||
../../../valve/src/shared/weapon_common.qc
|
||||
input.qc
|
||||
pmove.qc
|
||||
../../../valve/src/shared/pmove_water.qc
|
||||
item_c4bomb.qc
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
void
|
||||
Game_Input(void)
|
||||
{
|
||||
#ifdef SERVER
|
||||
CGameRules rules = (CGameRules)g_grMode;
|
||||
|
||||
if (rules.m_iIntermission) {
|
||||
|
@ -24,16 +25,6 @@ Game_Input(void)
|
|||
return;
|
||||
}
|
||||
|
||||
if (input_buttons & INPUT_BUTTON0) {
|
||||
Weapons_Primary();
|
||||
} else if (input_buttons & INPUT_BUTTON4) {
|
||||
Weapons_Reload();
|
||||
} else if (input_buttons & INPUT_BUTTON3) {
|
||||
Weapons_Secondary();
|
||||
} else {
|
||||
Weapons_Release();
|
||||
}
|
||||
|
||||
if (input_buttons & INPUT_BUTTON5) {
|
||||
Player_UseDown();
|
||||
} else {
|
||||
|
@ -90,4 +81,15 @@ Game_Input(void)
|
|||
}
|
||||
|
||||
self.impulse = 0;
|
||||
#endif
|
||||
|
||||
if (input_buttons & INPUT_BUTTON0) {
|
||||
Weapons_Primary();
|
||||
} else if (input_buttons & INPUT_BUTTON4) {
|
||||
Weapons_Reload();
|
||||
} else if (input_buttons & INPUT_BUTTON3) {
|
||||
Weapons_Secondary();
|
||||
} else {
|
||||
Weapons_Release();
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue