Add simple miss chances for NPCs (#12978)
Doesn't consider juking potential but okay for now.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user