firingrate #33
Reference in New Issue
Block a user
Delete Branch "firingrate"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
ajout d'un changement pour la cadence de tir
Tu ne mets pas à jour correctement le cooldown du timer
@@ -68,3 +67,3 @@}bool canShoot = m_ShootTimer.Update(delta);bool canShoot = m_ShootTimer.Update(m_Client->GetConfig()->GetServerConfigShootTimer());il faut update avec le delta
@@ -169,3 +169,3 @@float sensitivity = m_Client->GetConfig()->GetMouseSpeed() * 200.0f;ImGui::SetNextItemWidth(300.0f);if (ImGui::DragFloat("Sensibilite", &sensitivity, 0.005f, 0.0f, 10.0f, "%.3f")) {if (ImGui::DragFloat("Sensibilite", &sensitivity, 0.005f, 0.001f, 10.0f, "%.3f")) {tu peux utiliser std::clamp
@@ -69,0 +72,4 @@ImGui::SetNextItemWidth(300.0f);if (ImGui::DragInt("##CADENCE TIR", &shoottimer, 1, 1, 100)) {if (shoottimer < 0)shoottimer = 1;là aussi clamp
Fix #32