From 0e45b2b81e32487dfffa7a812ced6bc27cea5dcc Mon Sep 17 00:00:00 2001 From: Claudel-D-Roy <112507354+Claudel-D-Roy@users.noreply.github.com> Date: Wed, 13 Dec 2023 13:33:44 -0500 Subject: [PATCH 1/2] essaie no. 89657657457 --- SQCSim2021/remoteplayer.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/SQCSim2021/remoteplayer.cpp b/SQCSim2021/remoteplayer.cpp index 321c64d..9ed594c 100644 --- a/SQCSim2021/remoteplayer.cpp +++ b/SQCSim2021/remoteplayer.cpp @@ -130,9 +130,11 @@ void RemotePlayer::Render(TextureAtlas& atlas, Shader& shader, Transformation tr if (!current.states.shooting) Shooting = false; else - Shooting = !Shooting; + Shooting = true; } + std::cout << "shooting : " << current.states.shooting << " jumping : " << current.states.jumping << " jumpshot : " << current.states.jumpshot << " running : " << current.states.running << " still : " << current.states.still << " dead : " << current.states.dead << " hit : " << current.states.hit << std::endl; + if (angle >= 0.75) //Face - side positif { if(current.states.shooting){ From 83fc600ce2591c580bb6ccc7872b40c92aaffa13 Mon Sep 17 00:00:00 2001 From: Claudel-D-Roy <112507354+Claudel-D-Roy@users.noreply.github.com> Date: Wed, 13 Dec 2023 13:46:57 -0500 Subject: [PATCH 2/2] l;kjhgfd --- SQCSim2021/remoteplayer.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/SQCSim2021/remoteplayer.cpp b/SQCSim2021/remoteplayer.cpp index 9ed594c..8dd4676 100644 --- a/SQCSim2021/remoteplayer.cpp +++ b/SQCSim2021/remoteplayer.cpp @@ -153,7 +153,7 @@ void RemotePlayer::Render(TextureAtlas& atlas, Shader& shader, Transformation tr } else if (current.states.jumping) index = 25; - else if (current.states.running && current.states.still) + else if (!current.states.jumping && !current.states.shooting && !current.states.jumpshot) index = 0; } @@ -175,7 +175,7 @@ void RemotePlayer::Render(TextureAtlas& atlas, Shader& shader, Transformation tr } else if (current.states.jumping ) index = 26; - else if (current.states.running && current.states.still) + else if (!current.states.jumping && !current.states.shooting && !current.states.jumpshot) index = 1; } @@ -198,7 +198,7 @@ void RemotePlayer::Render(TextureAtlas& atlas, Shader& shader, Transformation tr } else if (current.states.jumping ) index = 28; - else if (current.states.running && current.states.still) + else if (!current.states.jumping && !current.states.shooting && !current.states.jumpshot) index = 3; } @@ -220,7 +220,7 @@ void RemotePlayer::Render(TextureAtlas& atlas, Shader& shader, Transformation tr } else if (current.states.jumping) index = 30; - else if (current.states.running && current.states.still) + else if (!current.states.jumping && !current.states.shooting && !current.states.jumpshot) index = 5; } else if (angle < -0.75) //Dos - side négatif @@ -241,7 +241,7 @@ void RemotePlayer::Render(TextureAtlas& atlas, Shader& shader, Transformation tr } else if (current.states.jumping ) index = 32; - else if (current.states.running && current.states.still) + else if (!current.states.jumping && !current.states.shooting && !current.states.jumpshot) index = 7; } @@ -263,7 +263,7 @@ void RemotePlayer::Render(TextureAtlas& atlas, Shader& shader, Transformation tr } else if (current.states.jumping) index = 27; - else if (current.states.running && current.states.still) + else if (!current.states.jumping && !current.states.shooting && !current.states.jumpshot) index = 2; } @@ -285,7 +285,7 @@ void RemotePlayer::Render(TextureAtlas& atlas, Shader& shader, Transformation tr } else if (current.states.jumping) index = 29; - else if (current.states.running && current.states.still) + else if (!current.states.jumping && !current.states.shooting && !current.states.jumpshot) index = 4; } @@ -309,7 +309,7 @@ void RemotePlayer::Render(TextureAtlas& atlas, Shader& shader, Transformation tr } else if (current.states.jumping) index = 31; - else if (current.states.running && current.states.still) + else if (!current.states.jumping && !current.states.shooting && !current.states.jumpshot) index = 6; }