Store clip from HUD_PostRunCmd

This commit is contained in:
8dcc 2023-07-31 20:10:27 +02:00
parent da6cf86910
commit 42a7961142
3 changed files with 5 additions and 0 deletions

View File

@ -10,7 +10,10 @@
game_id this_game_id = HL;
vec3_t g_punchAngles = { 0, 0, 0 };
/* Weapon info */
float g_flNextAttack = 0.f, g_flNextPrimaryAttack = 0.f;
int g_iClip = 0;
void* hw;
void** h_client;

View File

@ -111,6 +111,7 @@ void h_HUD_PostRunCmd(struct local_state_s* from, struct local_state_s* to,
g_flNextAttack = to->client.m_flNextAttack;
g_flNextPrimaryAttack =
to->weapondata[to->client.m_iId].m_flNextPrimaryAttack;
g_iClip = to->weapondata[to->client.m_iId].m_iClip;
}
}

View File

@ -36,6 +36,7 @@ enum game_id {
extern game_id this_game_id;
extern vec3_t g_punchAngles;
extern float g_flNextAttack, g_flNextPrimaryAttack;
extern int g_iClip;
extern void* hw;
extern void** h_client; /* hClientDLL hander */