mirror of
https://github.com/hanetzer/sdraw_mods_cvr.git
synced 2025-09-05 03:19:23 +00:00
Pointer state checks
This commit is contained in:
parent
075ff67304
commit
bcbb07c172
1 changed files with 2 additions and 2 deletions
|
@ -90,7 +90,7 @@ namespace ml_prm
|
||||||
if(Settings.PointersReaction && (RagdollController.Instance != null))
|
if(Settings.PointersReaction && (RagdollController.Instance != null))
|
||||||
{
|
{
|
||||||
CVRPointer l_pointer = p_col.GetComponent<CVRPointer>();
|
CVRPointer l_pointer = p_col.GetComponent<CVRPointer>();
|
||||||
if((l_pointer != null) && (l_pointer.type == c_ragdollPointerType) && !IsIgnored(l_pointer.transform) && !RagdollController.Instance.IsRagdolled())
|
if((l_pointer != null) && (l_pointer.type == c_ragdollPointerType) && l_pointer.enabled && !IsIgnored(l_pointer.transform) && !RagdollController.Instance.IsRagdolled())
|
||||||
RagdollController.Instance.SwitchRagdoll();
|
RagdollController.Instance.SwitchRagdoll();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -183,7 +183,7 @@ namespace ml_prm
|
||||||
{
|
{
|
||||||
if(Settings.PointersReaction && (RagdollController.Instance != null))
|
if(Settings.PointersReaction && (RagdollController.Instance != null))
|
||||||
{
|
{
|
||||||
if((pointer != null) && (pointer.type == c_ragdollPointerType) && !IsIgnored(pointer.transform) && !RagdollController.Instance.IsRagdolled())
|
if((pointer != null) && (pointer.type == c_ragdollPointerType) && pointer.enabled && !IsIgnored(pointer.transform) && !RagdollController.Instance.IsRagdolled())
|
||||||
RagdollController.Instance.SwitchRagdoll();
|
RagdollController.Instance.SwitchRagdoll();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue