Update anti_aim.c, globals.c, and 7 more files...

This commit is contained in:
2025-04-04 21:13:50 -04:00
parent dcdd090677
commit 0b9c748444
9 changed files with 684 additions and 61 deletions

View File

@@ -320,6 +320,15 @@ void h_HUD_PostRunCmd(struct local_state_s* from, struct local_state_s* to,
g_flNextPrimaryAttack =
to->weapondata[to->client.m_iId].m_flNextPrimaryAttack;
g_iClip = to->weapondata[to->client.m_iId].m_iClip;
// Track current weapon ID
int weaponId = to->client.m_iId;
// Update global weapon ID if it changed
if (g_currentWeaponID != weaponId) {
g_currentWeaponID = weaponId;
i_engine->Con_Printf("Weapon changed: ID=%d\n", g_currentWeaponID);
}
}
}