From cb02ae7ee167ab907de274dc4b486acbb1539a2e Mon Sep 17 00:00:00 2001 From: Koda-Dog <koda@macwyver.de> Date: Sun, 2 Feb 2025 18:00:02 +0100 Subject: [PATCH] BugFix - solve a Bug with other way to die --- AutoTrackR2/KillTrackR_MainScript.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/AutoTrackR2/KillTrackR_MainScript.ps1 b/AutoTrackR2/KillTrackR_MainScript.ps1 index b1a4366..de51013 100644 --- a/AutoTrackR2/KillTrackR_MainScript.ps1 +++ b/AutoTrackR2/KillTrackR_MainScript.ps1 @@ -371,7 +371,7 @@ function New-CsvData { Mode = $script:GameMode GameVersion = $script:GameVersion TrackRver = $script:TrackRver - Logged = "NONE" + Logged = "local" PFP = $playerInfo.PFP } @@ -432,7 +432,7 @@ function New-KillEvent { Weapon = $weapon DamageType = $damageType #Location = if ($data.VictimShip -ne "vehicle_id") { $location } else { "NONE" } #I think this was an error - Location = if ($data.VictimShip -ne $vehicle_id) { $location } else { "NONE" } + Location = if ($data.VictimShip -ne $vehicle_id) { $location } else { "none" } } } @@ -470,7 +470,7 @@ function New-EventType { } # Death - if($deathLog){$type = "Death"}else{$type = "none"} + elseif($deathLog){$type = "Death"}else{$type = "none"} #Suicide } elseif ($eventData.AgressorPilot -eq $userName -or $eventData.VictimPilot -eq $userName) {