Store clip from HUD_PostRunCmd
This commit is contained in:
parent
da6cf86910
commit
42a7961142
|
@ -10,7 +10,10 @@
|
||||||
|
|
||||||
game_id this_game_id = HL;
|
game_id this_game_id = HL;
|
||||||
vec3_t g_punchAngles = { 0, 0, 0 };
|
vec3_t g_punchAngles = { 0, 0, 0 };
|
||||||
|
|
||||||
|
/* Weapon info */
|
||||||
float g_flNextAttack = 0.f, g_flNextPrimaryAttack = 0.f;
|
float g_flNextAttack = 0.f, g_flNextPrimaryAttack = 0.f;
|
||||||
|
int g_iClip = 0;
|
||||||
|
|
||||||
void* hw;
|
void* hw;
|
||||||
void** h_client;
|
void** h_client;
|
||||||
|
|
|
@ -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_flNextAttack = to->client.m_flNextAttack;
|
||||||
g_flNextPrimaryAttack =
|
g_flNextPrimaryAttack =
|
||||||
to->weapondata[to->client.m_iId].m_flNextPrimaryAttack;
|
to->weapondata[to->client.m_iId].m_flNextPrimaryAttack;
|
||||||
|
g_iClip = to->weapondata[to->client.m_iId].m_iClip;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -36,6 +36,7 @@ enum game_id {
|
||||||
extern game_id this_game_id;
|
extern game_id this_game_id;
|
||||||
extern vec3_t g_punchAngles;
|
extern vec3_t g_punchAngles;
|
||||||
extern float g_flNextAttack, g_flNextPrimaryAttack;
|
extern float g_flNextAttack, g_flNextPrimaryAttack;
|
||||||
|
extern int g_iClip;
|
||||||
|
|
||||||
extern void* hw;
|
extern void* hw;
|
||||||
extern void** h_client; /* hClientDLL hander */
|
extern void** h_client; /* hClientDLL hander */
|
||||||
|
|
Loading…
Reference in New Issue