Class BetterHelpers
A collection of helper methods
Inheritance
System.Object
BetterHelpers
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: !BetterMods.dll
Syntax
public class BetterHelpers
Methods
|
Improve this Doc
View Source
DisarmCreature(Creature)
Make a creature drop whatever they are holding
Declaration
public static void DisarmCreature(Creature creature)
Parameters
Type |
Name |
Description |
ThunderRoad.Creature |
creature |
|
|
Improve this Doc
View Source
DisarmCreature(Creature, Side)
Make a creature drop whatever they are holding in a particular side
Declaration
public static void DisarmCreature(Creature creature, Side side)
Parameters
Type |
Name |
Description |
ThunderRoad.Creature |
creature |
|
ThunderRoad.Side |
side |
|
|
Improve this Doc
View Source
IsBeingChoked(Creature)
Checks to see if the ragdoll is being choked
Declaration
public static bool IsBeingChoked(Creature creature)
Parameters
Type |
Name |
Description |
ThunderRoad.Creature |
creature |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsCastPressed()
returns true if cast button is being pressed on any controller
Declaration
public static bool IsCastPressed()
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsCastPressed(Side)
returns true if cast button is being pressed on controller side
Declaration
public static bool IsCastPressed(Side side)
Parameters
Type |
Name |
Description |
ThunderRoad.Side |
side |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsCreatureArmed(Creature)
Returns true if the creature is holding something
Declaration
public static bool IsCreatureArmed(Creature creature)
Parameters
Type |
Name |
Description |
ThunderRoad.Creature |
creature |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsCreatureArmed(Creature, Side)
Returns true if the creature is holding something in a particular side
Declaration
public static bool IsCreatureArmed(Creature creature, Side side)
Parameters
Type |
Name |
Description |
ThunderRoad.Creature |
creature |
|
ThunderRoad.Side |
side |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsCreatureGrabbingHandle(Creature)
Returns true if the creature is holding something
Declaration
public static bool IsCreatureGrabbingHandle(Creature creature)
Parameters
Type |
Name |
Description |
ThunderRoad.Creature |
creature |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsCreatureGrabbingHandle(Creature, Side)
Returns true if the creature is holding something in a particular side
Declaration
public static bool IsCreatureGrabbingHandle(Creature creature, Side side)
Parameters
Type |
Name |
Description |
ThunderRoad.Creature |
creature |
|
ThunderRoad.Side |
side |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsGripAndCastPressed()
returns true if grip button and cast button is being pressed on any controller side
Declaration
public static bool IsGripAndCastPressed()
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsGripAndCastPressed(Side)
returns true if grip button and cast button is being pressed on a controller side
Declaration
public static bool IsGripAndCastPressed(Side side)
Parameters
Type |
Name |
Description |
ThunderRoad.Side |
side |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsGripOrCastPressed()
returns true if grip button or cast button is being pressed on any controller side
Declaration
public static bool IsGripOrCastPressed()
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsGripOrCastPressed(Side)
returns true if grip button or cast button is being pressed on a controller side
Declaration
public static bool IsGripOrCastPressed(Side side)
Parameters
Type |
Name |
Description |
ThunderRoad.Side |
side |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsGripPressed()
returns true if grip button is being pressed on any controller
Declaration
public static bool IsGripPressed()
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsGripPressed(Side)
returns true if grip button is being pressed on a controller side
Declaration
public static bool IsGripPressed(Side side)
Parameters
Type |
Name |
Description |
ThunderRoad.Side |
side |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsHandleChokeable(Handle)
Check if a specific handle is chokable
Declaration
public static bool IsHandleChokeable(Handle handle)
Parameters
Type |
Name |
Description |
ThunderRoad.Handle |
handle |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsHandleChokeable(HandleRagdoll)
Check if a specific HandleRagdoll is chokable
Declaration
public static bool IsHandleChokeable(HandleRagdoll handle)
Parameters
Type |
Name |
Description |
ThunderRoad.HandleRagdoll |
handle |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsHandleChoked(Handle)
Check if handle is being choked
Declaration
public static bool IsHandleChoked(Handle handle)
Parameters
Type |
Name |
Description |
ThunderRoad.Handle |
handle |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsPlayerUsingTelekinesis()
Returns true if player using TK in any hand
Declaration
public static bool IsPlayerUsingTelekinesis()
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsPlayerUsingTelekinesis(Side)
Returns true if player using TK for given hand side
Declaration
public static bool IsPlayerUsingTelekinesis(Side side)
Parameters
Type |
Name |
Description |
ThunderRoad.Side |
side |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
MakeItemCollideWithCollider(Item, Collider)
Will make an item's colliders collide with a specific collider
Declaration
public static void MakeItemCollideWithCollider(Item item, Collider otherCollider)
Parameters
Type |
Name |
Description |
ThunderRoad.Item |
item |
|
UnityEngine.Collider |
otherCollider |
|
|
Improve this Doc
View Source
MakeItemCollideWithOtherItem(Item, Item)
Will make an item's colliders collide with another item's colliders
Declaration
public static void MakeItemCollideWithOtherItem(Item item, Item otherItem)
Parameters
Type |
Name |
Description |
ThunderRoad.Item |
item |
|
ThunderRoad.Item |
otherItem |
|
|
Improve this Doc
View Source
MakeItemNotCollideWithCollider(Item, Collider)
Will make an item's colliders ignore collisions with a specific collider
Declaration
public static void MakeItemNotCollideWithCollider(Item item, Collider otherCollider)
Parameters
Type |
Name |
Description |
ThunderRoad.Item |
item |
|
UnityEngine.Collider |
otherCollider |
|
|
Improve this Doc
View Source
MakeItemNotCollideWithOtherItem(Item, Item)
Will make an item's colliders ignore collisions with another items colliders
Declaration
public static void MakeItemNotCollideWithOtherItem(Item item, Item otherItem)
Parameters
Type |
Name |
Description |
ThunderRoad.Item |
item |
|
ThunderRoad.Item |
otherItem |
|
|
Improve this Doc
View Source
TryGetHeldItem(Creature, Side, out Item)
Tries to get the item a creature is holding on a particular side
Declaration
public static bool TryGetHeldItem(Creature creature, Side side, out Item item)
Parameters
Type |
Name |
Description |
ThunderRoad.Creature |
creature |
|
ThunderRoad.Side |
side |
|
ThunderRoad.Item |
item |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
TryGetHeldItem(RagdollHand, out Item)
Tries to get the item a ragdollhand is holding
Declaration
public static bool TryGetHeldItem(RagdollHand ragdollHand, out Item item)
Parameters
Type |
Name |
Description |
ThunderRoad.RagdollHand |
ragdollHand |
|
ThunderRoad.Item |
item |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
TryGetHeldItem(SpellCaster, out Item)
Tries to get the item a spellcaster is holding
Declaration
public static bool TryGetHeldItem(SpellCaster spellCaster, out Item item)
Parameters
Type |
Name |
Description |
ThunderRoad.SpellCaster |
spellCaster |
|
ThunderRoad.Item |
item |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
TryGetLevelModuleBetterEvents(out LevelModuleBetterEvents)
Helper method to Try and get the current instance of the BetterEvents levelmodule
Declaration
public static bool TryGetLevelModuleBetterEvents(out LevelModuleBetterEvents levelModuleBetterEvents)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
TryGetRagdollHand(Creature, Side, out RagdollHand)
Tries to return the Ragdoll hand for a creatures Side
Declaration
public static bool TryGetRagdollHand(Creature creature, Side side, out RagdollHand ragdollHand)
Parameters
Type |
Name |
Description |
ThunderRoad.Creature |
creature |
|
ThunderRoad.Side |
side |
|
ThunderRoad.RagdollHand |
ragdollHand |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
WasBeingChoked(Creature)
Checks to see if the ragdoll was being choked and is now dead
Declaration
public static bool WasBeingChoked(Creature creature)
Parameters
Type |
Name |
Description |
ThunderRoad.Creature |
creature |
|
Returns
Type |
Description |
System.Boolean |
|