Working on viewing distance for enemies

This commit is contained in:
Vladislav Khorev committed 2026-07-12 19:09:26 +03:00
1 parent 33c2b313af
commit 38e45d67b8
6 files changed
+17 -5

No files matched your search

+2
View File
@@ -295,6 +295,7 @@ namespace ZL {
data.modelCorrectionRotZ = item.value("modelCorrectionRotZ", 0.0f) * static_cast<float>(M_PI) / 180.0f;
data.facingAngle = item.value("facingAngle", 0.0f) * static_cast<float>(M_PI) / 180.0f;
data.hp = item.value("hp", 100.0f);
data.visibleRange = item.value("visibleRange", VISIBLE_RANGE);
data.canAttack = item.value("canAttack", false);
data.enabled = item.value("enabled", true);
@@ -321,6 +322,7 @@ namespace ZL {
st.modelScale = modelScale;
st.setHp(hp);
st.initialHp = hp;
st.visibleRange = visibleRange;
st.canAttack = canAttack;
st.enabled = enabled;
st.interactionRadius = interactionRadius;
+1
View File
@@ -74,6 +74,7 @@ namespace ZL {
float modelCorrectionRotZ = 0.0f;
float facingAngle = 0.0f;
float hp = 100.0f;
float visibleRange = VISIBLE_RANGE;
bool canAttack = false;
bool enabled = true;
float interactionRadius = 0.0f;