mirror of
https://github.com/hanetzer/sdraw_mods_cvr.git
synced 2025-09-03 10:29:22 +00:00
Detecting destroyed pickup
This commit is contained in:
parent
4b171bbbad
commit
c28b1dc826
3 changed files with 12 additions and 7 deletions
|
@ -10,5 +10,5 @@ Merged set of MelonLoader mods for ChilloutVR.
|
||||||
| Extended Game Notifications | ml_egn | 1.0.1 | Yes | Working
|
| Extended Game Notifications | ml_egn | 1.0.1 | Yes | Working
|
||||||
| Four Point Tracking | ml_fpt | 1.0.9 | Retired | Deprecated | In-game feature since 2022r170 update
|
| Four Point Tracking | ml_fpt | 1.0.9 | Retired | Deprecated | In-game feature since 2022r170 update
|
||||||
| Leap Motion Extension | ml_lme | 1.3.2 | Yes | Working |
|
| Leap Motion Extension | ml_lme | 1.3.2 | Yes | Working |
|
||||||
| Pickup Arm Movement | ml_pam | 1.0.1 | Yes | Working |
|
| Pickup Arm Movement | ml_pam | 1.0.2 | Yes, update review| Working |
|
||||||
| Server Connection Info | ml_sci | 1.0.2 | Retired | Retired | Superseded by `Extended Game Notifications`
|
| Server Connection Info | ml_sci | 1.0.2 | Retired | Retired | Superseded by `Extended Game Notifications`
|
||||||
|
|
|
@ -61,10 +61,15 @@ namespace ml_pam
|
||||||
|
|
||||||
void Update()
|
void Update()
|
||||||
{
|
{
|
||||||
if(m_enabled && (m_pickup != null))
|
if(m_enabled && !ReferenceEquals(m_pickup, null))
|
||||||
{
|
{
|
||||||
Matrix4x4 l_result = m_pickup.transform.GetMatrix() * m_offset;
|
if(m_pickup != null)
|
||||||
m_target.position = l_result * ms_pointVector;
|
{
|
||||||
|
Matrix4x4 l_result = m_pickup.transform.GetMatrix() * m_offset;
|
||||||
|
m_target.position = l_result * ms_pointVector;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
this.OnPickupDrop(m_pickup);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
|
|
||||||
[assembly: AssemblyTitle("PickupArmMovement")]
|
[assembly: AssemblyTitle("PickupArmMovement")]
|
||||||
[assembly: AssemblyVersion("1.0.1")]
|
[assembly: AssemblyVersion("1.0.2")]
|
||||||
[assembly: AssemblyFileVersion("1.0.1")]
|
[assembly: AssemblyFileVersion("1.0.2")]
|
||||||
|
|
||||||
[assembly: MelonLoader.MelonInfo(typeof(ml_pam.PickupArmMovement), "PickupArmMovement", "1.0.1", "SDraw", "https://github.com/SDraw/ml_mods_cvr")]
|
[assembly: MelonLoader.MelonInfo(typeof(ml_pam.PickupArmMovement), "PickupArmMovement", "1.0.2", "SDraw", "https://github.com/SDraw/ml_mods_cvr")]
|
||||||
[assembly: MelonLoader.MelonGame(null, "ChilloutVR")]
|
[assembly: MelonLoader.MelonGame(null, "ChilloutVR")]
|
||||||
[assembly: MelonLoader.MelonPriority(1)]
|
[assembly: MelonLoader.MelonPriority(1)]
|
||||||
[assembly: MelonLoader.MelonPlatform(MelonLoader.MelonPlatformAttribute.CompatiblePlatforms.WINDOWS_X64)]
|
[assembly: MelonLoader.MelonPlatform(MelonLoader.MelonPlatformAttribute.CompatiblePlatforms.WINDOWS_X64)]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue