Public/Debugging.Helpers.ps1
function Get-ASDObjectPlayerImmortal { [CmdletBinding()] [Alias("immortal")] Param( [Parameter()][String]$Shell, [Parameter(Position=0)][String]$Value ) if($Value) { $val = $false; if($Value -eq "1"){$val = $true} if($Value -eq $true){$val = $true} Get-ASDObject -Type "BenFox.CharacterController.Benedict, BenFox.CharacterController" | Set-ASDValue -FieldPath Immortal -Value $val } else { Get-ASDObject -Type "BenFox.CharacterController.Benedict, BenFox.CharacterController" | Get-ASDValue -FieldPath Immortal } } function Get-ASDObjectGraphyEnabled { [CmdletBinding()] [Alias("graphy")] Param( [Parameter()][String]$Shell, [Parameter(Position=0)][String]$Value ) if($Value) { $val = $false; if($Value -eq "1"){$val = $true} if($Value -eq $true){$val = $true} Get-ASDObject -Type "Tayx.Graphy.GraphyManager" | Set-ASDValue -FieldPath gameObject.active -Value $val } else { Get-ASDObject -Type "Tayx.Graphy.GraphyManager" | Get-ASDValue -FieldPath gameObject.active } } function Get-ASDObjectVsync { [CmdletBinding()] [Alias("vsync")] Param( [Parameter()][String]$Shell, [Parameter(Position=0)][String]$Value ) if($Value) { $val = 0; if($Value -eq "1"){$val = 1} if($Value -eq $true){$val = 1} Set-ASDValue -ObjectPath "UnityEngine.QualitySettings, UnityEngine" -FieldPath "vSyncCount" -Value $val } else { Get-ASDValue -ObjectPath "UnityEngine.QualitySettings, UnityEngine" -FieldPath "vSyncCount" } } function Get-ASDObjectStreamerLights { [CmdletBinding()] [Alias("streamLights")] Param( [Parameter()][String]$Shell, [Parameter(Position=0)][String]$Value ) if($Value) { $val = $false; if($Value -eq "1"){$val = $true} if($Value -eq $true){$val = $true} Get-ASDObject -Type "PlotTwist.SceneStreamer.StreamingManager" | Set-ASDValue -FieldPath loadLights -Value $val } else { Get-ASDObject -Type "PlotTwist.SceneStreamer.StreamingManager" | Get-ASDValue -FieldPath loadLights } } |