mirror of
https://github.com/BubbaGumpShrump/AutoTrackR2.git
synced 2025-06-28 07:36:39 +00:00
Location Fix
This commit is contained in:
parent
77a3c936fd
commit
9400a087e2
1 changed files with 3 additions and 0 deletions
|
@ -250,15 +250,18 @@ function Read-LogEntry {
|
||||||
if ($damageType -eq "Bullet" -or $weapon -like "apar_special_ballistic*") {
|
if ($damageType -eq "Bullet" -or $weapon -like "apar_special_ballistic*") {
|
||||||
$ship = "Player"
|
$ship = "Player"
|
||||||
$enemyShip = "Player"
|
$enemyShip = "Player"
|
||||||
|
$global:got_location = "NONE"
|
||||||
}
|
}
|
||||||
If ($ship -match $cleanupPattern){
|
If ($ship -match $cleanupPattern){
|
||||||
$ship = $matches[1]
|
$ship = $matches[1]
|
||||||
}
|
}
|
||||||
if ($ship -notmatch $shipManPattern){
|
if ($ship -notmatch $shipManPattern){
|
||||||
$ship = "Player"
|
$ship = "Player"
|
||||||
|
$global:got_location = "NONE"
|
||||||
}
|
}
|
||||||
If ($enemyShip -notmatch $shipManPattern -and $enemyShip -notlike "Passenger" ) {
|
If ($enemyShip -notmatch $shipManPattern -and $enemyShip -notlike "Passenger" ) {
|
||||||
$enemyShip = "Player"
|
$enemyShip = "Player"
|
||||||
|
$global:got_location = "NONE"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Repeatedly remove all suffixes
|
# Repeatedly remove all suffixes
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue