From 445c49bd4b64dab8df344b890c61a57dc3dc5e36 Mon Sep 17 00:00:00 2001 From: flo666 Date: Mon, 2 Oct 2023 21:43:59 +0200 Subject: [PATCH] large_bird: incr. sight_dist, decr. travel_speed, decr. flying_alt in attack --- common/src/comp/agent.rs | 2 +- rtsim/src/rule/npc_ai.rs | 4 ++-- server/agent/src/attack.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/common/src/comp/agent.rs b/common/src/comp/agent.rs index 575559aea8..477105224d 100644 --- a/common/src/comp/agent.rs +++ b/common/src/comp/agent.rs @@ -382,7 +382,7 @@ impl<'a> From<&'a Body> for Psyche { }, }, sight_dist: match body { - Body::BirdLarge(_) => 100.0, + Body::BirdLarge(_) => 250.0, _ => 40.0, }, listen_dist: 30.0, diff --git a/rtsim/src/rule/npc_ai.rs b/rtsim/src/rule/npc_ai.rs index 7bdbf8ab96..004065041e 100644 --- a/rtsim/src/rule/npc_ai.rs +++ b/rtsim/src/rule/npc_ai.rs @@ -1223,7 +1223,7 @@ fn bird_large() -> impl Action { if !is_deep_water { goto_2d_flying( pos, - 0.2, + 0.1, bearing_dist, 8.0, 8.0, @@ -1237,7 +1237,7 @@ fn bird_large() -> impl Action { goto_2d_flying( pos, - 0.2, + 0.1, bearing_dist, 8.0, 8.0, diff --git a/server/agent/src/attack.rs b/server/agent/src/attack.rs index 64cf3b92ea..d6e640e1e8 100644 --- a/server/agent/src/attack.rs +++ b/server/agent/src/attack.rs @@ -3118,7 +3118,7 @@ impl<'a> AgentData<'a> { bearing.xy().try_normalized().unwrap_or_else(Vec2::zero) * speed; if (self.pos.0.z - tgt_data.pos.0.z) < 35.0 { controller.push_basic_input(InputKind::Fly); - controller.inputs.move_z = 1.0; + controller.inputs.move_z = 0.2; } } } else if !read_data