mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-09 15:05:53 +00:00
Added reaction time to enemies
This commit is contained in:
parent
1c4897f054
commit
543f5f0d6b
11 changed files with 63 additions and 31 deletions
|
|
@ -21,4 +21,13 @@ public partial class EnemyResource : Resource
|
|||
[Export] public float ViewRange { get; private set; } = 120f;
|
||||
[Export] public float AlarmReactRange { get; private set; }
|
||||
[Export] public float PlayerDisengageRange { get; private set; }
|
||||
[Export] public float StrafeSpeed { get; private set; } = 25f;
|
||||
[Export] public float MaxStrafeDistance { get; private set; } = 64f;
|
||||
[Export] public float MinStrafeDistance { get; private set; } = 16f;
|
||||
|
||||
/// <summary>
|
||||
/// Time it takes for the enemy to change strafing direction
|
||||
/// </summary>
|
||||
[Export] public float ResponseTime { get; private set; } = 0.5f;
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue