mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
combat: tweaked roshwalr melee detection and range
This commit is contained in:
parent
13980861f8
commit
ed25a84c72
@ -8,7 +8,7 @@ ComboMelee(
|
||||
poise_damage_increase: 0,
|
||||
knockback: 3.0,
|
||||
range: 3,
|
||||
angle: 30.0,
|
||||
angle: 75.0,
|
||||
base_buildup_duration: 1.2,
|
||||
base_swing_duration: 0.07,
|
||||
hit_timing: 0.5,
|
||||
@ -24,7 +24,7 @@ ComboMelee(
|
||||
poise_damage_increase: 0,
|
||||
knockback: 3.0,
|
||||
range: 3,
|
||||
angle: 30.0,
|
||||
angle: 75.0,
|
||||
base_buildup_duration: 0.2,
|
||||
base_swing_duration: 0.07,
|
||||
hit_timing: 0.5,
|
||||
|
@ -3542,7 +3542,7 @@ impl<'a> AgentData<'a> {
|
||||
agent.action_state.counters
|
||||
[ActionStateFCounters::FCounterRoshwalrAttack as usize] = 0.0;
|
||||
}
|
||||
} else if attack_data.dist_sqrd < MELEE_RANGE.powi(2) && attack_data.angle < 90.0{
|
||||
} else if attack_data.dist_sqrd < MELEE_RANGE.powi(2) && attack_data.angle < 135.0{
|
||||
// Basic attack if in melee range
|
||||
controller.push_basic_input(InputKind::Primary);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user