simple dynamic crosshair

This commit is contained in:
Morph01
2024-08-25 18:25:22 +02:00
parent 5c6f82c5d7
commit 68d3cec08a
8 changed files with 152 additions and 5 deletions

View File

@@ -1,5 +1,6 @@
#pragma once
#include "Crosshair.h"
#include <godot_cpp/classes/area3d.hpp>
namespace blitz {
@@ -15,16 +16,17 @@ class BoneCollisionShape : public godot::Area3D {
~BoneCollisionShape();
void _ready();
void headshot_hit();
void headshot_hit();
void bodyshot_hit();
private:
int m_HeadDamage = 2;
int m_BodyDamage = 1;
void set_head_damage(int d);
int get_head_damage() const;
void set_head_damage(int d);
int get_head_damage() const;
void set_body_damage(int d);
int get_body_damage() const;
int get_body_damage() const;
Crosshair* m_Crosshair;
};
} // namespace blitz