mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2026-02-18 05:27:43 +01:00
.
This commit is contained in:
parent
d1d369a56b
commit
65ce391051
19 changed files with 757 additions and 158 deletions
|
|
@ -23,13 +23,7 @@ public class VisorService : IDisposable
|
|||
|
||||
/// <summary> Obtain the current state of the Visor for the given draw object (true: toggled). </summary>
|
||||
public unsafe bool GetVisorState(Model characterBase)
|
||||
{
|
||||
if (!characterBase.IsCharacterBase)
|
||||
return false;
|
||||
|
||||
// TODO: use client structs.
|
||||
return (characterBase.AsCharacterBase->UnkFlags_01 & Offsets.DrawObjectVisorStateFlag) != 0;
|
||||
}
|
||||
=> characterBase.IsCharacterBase && characterBase.AsCharacterBase->VisorToggled;
|
||||
|
||||
/// <summary> Manually set the state of the Visor for the given draw object. </summary>
|
||||
/// <param name="human"> The draw object. </param>
|
||||
|
|
@ -45,7 +39,6 @@ public class VisorService : IDisposable
|
|||
if (oldState == on)
|
||||
return false;
|
||||
|
||||
|
||||
SetupVisorHook(human, (ushort)human.AsHuman->HeadSetID, on);
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue