Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion PracticeModManager.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Collections.Generic;
using System.ComponentModel.Design;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.UI;
Expand Down Expand Up @@ -147,6 +148,18 @@ void Update()
flashLight.gameObject.SetActive(!flashLight.gameObject.activeSelf);
}

if (flashLight.gameObject.active && !noClip)
{
if (Input.GetKey(KeyCode.LeftShift))
flashLight.GetComponent<Light>().intensity += Input.mouseScrollDelta.y * 0.1f;

else if (Input.GetKey(KeyCode.LeftControl))
flashLight.GetComponent<Light>().intensity += Input.mouseScrollDelta.y * 0.001f;

else
flashLight.GetComponent<Light>().intensity += Input.mouseScrollDelta.y * 0.01f;
}

if (noClip)
{
this.noClipSpeed += Input.mouseScrollDelta.y;
Expand Down Expand Up @@ -317,7 +330,10 @@ string GetPlayerTextString()
dynamicInfo += "\nUnlimited Render Distance";

if (flashLight.activeSelf)
dynamicInfo += "\nFlashlight";
{
dynamicInfo += "\nFlashlight | Intensity: ";
dynamicInfo += flashLight.GetComponent<Light>().intensity.ToString("0.000");
}

if (Time.time - this.storeTime <= 1f)
dynamicInfo += "\nPosition Stored";
Expand Down
30 changes: 18 additions & 12 deletions SuperliminalPracticeMod.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>SuperliminalPracticeMod</RootNamespace>
<AssemblyName>SuperliminalPracticeMod</AssemblyName>
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<Deterministic>true</Deterministic>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
Expand All @@ -32,15 +33,20 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="Assembly-CSharp">
<HintPath>D:\Games\Superliminal\Superliminal_Data\Managed\Assembly-CSharp.dll</HintPath>
<HintPath>..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Superliminal\SuperliminalSteam_Data\Managed\Assembly-CSharp.dll</HintPath>
</Reference>
<Reference Include="Assembly-CSharp-firstpass">
<HintPath>D:\Games\Superliminal\Superliminal_Data\Managed\Assembly-CSharp-firstpass.dll</HintPath>
<HintPath>..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Superliminal\SuperliminalSteam_Data\Managed\Assembly-CSharp-firstpass.dll</HintPath>
</Reference>
<Reference Include="MelonLoader">
<HintPath>..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Superliminal\MelonLoader\MelonLoader.dll</HintPath>
</Reference>
<Reference Include="MelonLoader.ModHandler">
<HintPath>D:\Games\Superliminal\MelonLoader\MelonLoader.ModHandler.dll</HintPath>
</Reference>
<Reference Include="Rewired_Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" />
<Reference Include="Rewired_Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null">
<HintPath>..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Superliminal\SuperliminalSteam_Data\Managed\Rewired_Core.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
Expand All @@ -50,35 +56,35 @@
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
<Reference Include="UnityEngine">
<HintPath>D:\Games\Superliminal\Superliminal_Data\Managed\UnityEngine.dll</HintPath>
<HintPath>..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Superliminal\SuperliminalSteam_Data\Managed\UnityEngine.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>D:\Games\Superliminal\Superliminal_Data\Managed\UnityEngine.CoreModule.dll</HintPath>
<HintPath>..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Superliminal\SuperliminalSteam_Data\Managed\UnityEngine.CoreModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.IMGUIModule, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>D:\Games\Superliminal\Superliminal_Data\Managed\UnityEngine.IMGUIModule.dll</HintPath>
<HintPath>..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Superliminal\SuperliminalSteam_Data\Managed\UnityEngine.IMGUIModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.InputLegacyModule, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>D:\Games\Superliminal\Superliminal_Data\Managed\UnityEngine.InputLegacyModule.dll</HintPath>
<HintPath>..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Superliminal\SuperliminalSteam_Data\Managed\UnityEngine.InputLegacyModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.PhysicsModule, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>D:\Games\Superliminal\Superliminal_Data\Managed\UnityEngine.PhysicsModule.dll</HintPath>
<HintPath>..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Superliminal\SuperliminalSteam_Data\Managed\UnityEngine.PhysicsModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.TextRenderingModule, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>D:\Games\Superliminal\Superliminal_Data\Managed\UnityEngine.TextRenderingModule.dll</HintPath>
<HintPath>..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Superliminal\SuperliminalSteam_Data\Managed\UnityEngine.TextRenderingModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.UI, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>D:\Games\Superliminal\Superliminal_Data\Managed\UnityEngine.UI.dll</HintPath>
<HintPath>..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Superliminal\SuperliminalSteam_Data\Managed\UnityEngine.UI.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.UIModule, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>D:\Games\Superliminal\Superliminal_Data\Managed\UnityEngine.UIModule.dll</HintPath>
<HintPath>..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Superliminal\SuperliminalSteam_Data\Managed\UnityEngine.UIModule.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
Expand Down