Read target indicators from daemon contacts
This commit is contained in:
parent
710ce0fc70
commit
f9694b8695
2 changed files with 6 additions and 3 deletions
|
|
@ -7747,6 +7747,7 @@ static void RequireMainMenuContinueRunState(string root)
|
|||
"var currentEntityKey = $\"{zoneEntityKeyPrefix}{run.CurrentZoneEntityIndex}.v1\"",
|
||||
"TargetVisibilityFill.fillAmount = Mathf.Lerp(.25f, .75f, (CurrentEntity.EntityInfoGathered[target] - threshold) / (1 - threshold));",
|
||||
"VisibilityToTargetFill.fillAmount = Mathf.Lerp(.25f, .75f, target.EntityInfoGathered[CurrentEntity] / threshold);",
|
||||
"indicator.Key.EntityInfoGathered[CurrentEntity]",
|
||||
"CurrentEntity.Target.Value.IsHostileTo(CurrentEntity)"
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -3436,10 +3436,11 @@ public class ActionGameManager : MonoBehaviour
|
|||
indicator.Value.Fill.enabled = false;
|
||||
else
|
||||
{
|
||||
var infoGatheredByHostile = GetObservedInfoGathered(indicator.Key, CurrentEntity);
|
||||
indicator.Value.Fill.fillAmount =
|
||||
Saturate(indicator.Key.EntityInfoGathered[CurrentEntity] / Settings.GameplaySettings.TargetDetectionInfoThreshold);
|
||||
Saturate(infoGatheredByHostile / Settings.GameplaySettings.TargetDetectionInfoThreshold);
|
||||
indicator.Value.Fill.enabled =
|
||||
!(indicator.Key.EntityInfoGathered[CurrentEntity] > Settings.GameplaySettings.TargetDetectionInfoThreshold) ||
|
||||
!(infoGatheredByHostile > Settings.GameplaySettings.TargetDetectionInfoThreshold) ||
|
||||
Mathf.Sin(TargetSpottedBlinkFrequency * Time.time) + TargetSpottedBlinkOffset > 0;
|
||||
}
|
||||
}
|
||||
|
|
@ -3452,8 +3453,9 @@ public class ActionGameManager : MonoBehaviour
|
|||
else
|
||||
{
|
||||
indicator.Value.Fill.enabled = true;
|
||||
var infoGatheredByFriendly = GetObservedInfoGathered(indicator.Key, CurrentEntity);
|
||||
indicator.Value.Fill.fillAmount =
|
||||
Saturate(indicator.Key.EntityInfoGathered[CurrentEntity] / Settings.GameplaySettings.TargetDetectionInfoThreshold);
|
||||
Saturate(infoGatheredByFriendly / Settings.GameplaySettings.TargetDetectionInfoThreshold);
|
||||
}
|
||||
}
|
||||
var look = Input.Player.Look.ReadValue<Vector2>();
|
||||
|
|
|
|||
Loading…
Reference in a new issue