firingrate #33

Merged
Persson-dev merged 11 commits from firingrate into main 2024-04-02 20:25:48 +00:00
Owner

ajout d'un changement pour la cadence de tir

ajout d'un changement pour la cadence de tir
Morph01 added 2 commits 2024-04-02 07:52:19 +00:00
Add ShootTimer to ServerConfig
All checks were successful
Linux arm64 / Build (push) Successful in 5m20s
08e3463c70
Persson-dev requested changes 2024-04-02 07:54:43 +00:00
Dismissed
Persson-dev left a comment
Owner

Tu ne mets pas à jour correctement le cooldown du timer

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());
Owner

il faut update avec le delta

il faut update avec le delta
Morph01 marked this conversation as resolved
@@ -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")) {
Owner

tu peux utiliser std::clamp

tu peux utiliser std::clamp
Persson-dev marked this conversation as resolved
@@ -69,0 +72,4 @@
ImGui::SetNextItemWidth(300.0f);
if (ImGui::DragInt("##CADENCE TIR", &shoottimer, 1, 1, 100)) {
if (shoottimer < 0)
shoottimer = 1;
Owner

là aussi clamp

là aussi clamp
Persson-dev marked this conversation as resolved
Persson-dev added 1 commit 2024-04-02 08:32:54 +00:00
move config in Game.h
All checks were successful
Linux arm64 / Build (push) Successful in 4m44s
82b0ede933
Morph01 added 1 commit 2024-04-02 09:18:24 +00:00
Refactor shooting rate configuration and better clamp
Some checks failed
Linux arm64 / Build (push) Failing after 4m26s
64f8ceb964
Persson-dev requested review from Persson-dev 2024-04-02 09:20:03 +00:00
Persson-dev approved these changes 2024-04-02 09:20:20 +00:00
Morph01 added 1 commit 2024-04-02 09:34:04 +00:00
Fix firing rate data type in GameConfig struct
All checks were successful
Linux arm64 / Build (push) Successful in 4m58s
9e46b92687
Morph01 added 1 commit 2024-04-02 18:40:08 +00:00
Add ServerConfig et and implement SendServerConfigmethods
All checks were successful
Linux arm64 / Build (push) Successful in 5m3s
e121a092b2
Persson-dev added 1 commit 2024-04-02 19:31:17 +00:00
update game config on client
Some checks failed
Linux arm64 / Build (push) Failing after 3m24s
7cb9c0d280
Owner

Fix #32

Fix #32
Persson-dev added 2 commits 2024-04-02 19:51:24 +00:00
set gun animation speed relative to firerate
Some checks failed
Linux arm64 / Build (push) Failing after 3m20s
8bb224ec5f
Persson-dev added 1 commit 2024-04-02 19:58:29 +00:00
fix build
All checks were successful
Linux arm64 / Build (push) Successful in 5m12s
482fc5d702
Persson-dev added 1 commit 2024-04-02 20:13:45 +00:00
reset fire cooldown on firerate change
All checks were successful
Linux arm64 / Build (push) Successful in 6m47s
30e187ce4e
Persson-dev merged commit a7b235da38 into main 2024-04-02 20:25:48 +00:00
Persson-dev deleted branch firingrate 2024-04-02 20:25:48 +00:00
Sign in to join this conversation.