Pigman AI input to detonate trashbag

This commit is contained in:
Michal Pikulski
2025-12-16 19:51:14 +01:00
parent aaaeef19d7
commit ecb9bf1b2b
3 changed files with 82 additions and 4 deletions

View File

@@ -22,15 +22,25 @@ namespace Minigames.FortFight.Data
[Tooltip("Maximum thinking time in seconds")]
public float thinkTimeMax;
[Header("TrashBag Detonation")]
[Tooltip("Minimum detonation distance from target (0-1, normalized along trajectory)")]
public float trashBagDetonationDistanceMin;
[Tooltip("Maximum detonation distance from target (0-1, normalized along trajectory)")]
public float trashBagDetonationDistanceMax;
/// <summary>
/// Create AI difficulty data with specified parameters
/// </summary>
public AIDifficultyData(float angleDeviation, float forceDeviation, float thinkTimeMin, float thinkTimeMax)
public AIDifficultyData(float angleDeviation, float forceDeviation, float thinkTimeMin, float thinkTimeMax,
float trashBagDetonationDistanceMin = 0.2f, float trashBagDetonationDistanceMax = 0.4f)
{
this.angleDeviation = angleDeviation;
this.forceDeviation = forceDeviation;
this.thinkTimeMin = thinkTimeMin;
this.thinkTimeMax = thinkTimeMax;
this.trashBagDetonationDistanceMin = trashBagDetonationDistanceMin;
this.trashBagDetonationDistanceMax = trashBagDetonationDistanceMax;
}
}