Add simple miss chances for NPCs (#12978)

Doesn't consider juking potential but okay for now.
This commit is contained in:
metalgearsloth
2022-12-12 00:37:09 +11:00
committed by GitHub
parent da31f9e5ee
commit 83fede79eb
6 changed files with 39 additions and 9 deletions

View File

@@ -11,6 +11,12 @@ public sealed class NPCMeleeCombatComponent : Component
/// </summary>
[ViewVariables] public EntityUid Weapon;
/// <summary>
/// If the target is moving what is the chance for this NPC to miss.
/// </summary>
[ViewVariables(VVAccess.ReadWrite)]
public float MissChance;
[ViewVariables]
public EntityUid Target;