add some extra assets FX and SFX

This commit is contained in:
Robii Aragon
2026-03-29 23:03:14 -07:00
parent 6ef3eb1535
commit 24dc66a81e
10142 changed files with 2535978 additions and 36608 deletions

View File

@@ -0,0 +1,63 @@
using UnityEngine;
using System.Collections.Generic;
namespace NobleMuffins.LimbHacker
{
[RequireComponent(typeof(Hackable))]
public class ToRagdollOrNot : AbstractSliceHandler
{
public enum Operator { And, Or };
public enum Presentness { Equals, Not };
public Operator groupRule = Operator.And;
public Presentness totalityRule = Presentness.Not;
public Transform[] bones;
public override bool cloneAlternate(Dictionary<string, bool> hierarchyPresence)
{
List<bool> relevantStates = new List<bool>(bones.Length);
foreach (Transform t in bones)
{
string key = t.name;
if (hierarchyPresence.ContainsKey(key))
{
relevantStates.Add(hierarchyPresence[key]);
}
}
bool totality = false;
if (groupRule == Operator.And)
{
totality = true;
foreach (bool b in relevantStates)
{
totality &= b;
}
}
else if (groupRule == Operator.Or)
{
totality = false;
foreach (bool b in relevantStates)
{
totality |= b;
}
}
if (totalityRule == Presentness.Not)
{
totality = !totality;
}
return totality;
}
public override void handleSlice(GameObject[] results)
{
//Do nothing.
}
}
}