Broke Protocol Game API Reference  1.39
Code reference for server and client scripting
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Static Protected Attributes | Properties | List of all members
BrokeProtocol.Entities.ShPlayer Class Reference
Inheritance diagram for BrokeProtocol.Entities.ShPlayer:
BrokeProtocol.Entities.ShMovable BrokeProtocol.Entities.ShPhysical BrokeProtocol.Entities.ShDestroyable BrokeProtocol.Entities.ShMountable BrokeProtocol.Entities.ShDamageable BrokeProtocol.Entities.ShEntity BrokeProtocol.Entities.Serialized

Public Member Functions

JobInfoShared GetJobInfoShared ()
 
int GetMaxExperience ()
 
bool CanEquip (ShEquipable e)
 
bool CanWear (ShWearable w)
 
int GetPlaceItemLimit ()
 
bool IsMount< T > (out T mount)
 
bool IsPassenger (out ShMovable mount)
 
Vector3 OriginOffset ()
 
ShTransport GetDeployable ()
 
bool TryGetCachedItem< T > (out T item)
 
void Bind (int equipableIndex, byte slot)
 
void Unbind (byte slot)
 
override void PreInitialize (int ID)
 
override void Initialize ()
 
override void Destroy ()
 
void ZeroInputs ()
 
override void ResetInputs ()
 
float Perlin (float scale)
 
void TrySetInput (float x, float y, float z)
 
bool TryUpdateMode (byte modeInput)
 
override float GetSpeedLimit ()
 
override void SetRotation (Quaternion rotation)
 
bool SetEquipable (int equipableIndex, bool resetAmmo)
 
ShAttachment GetAttachment (int type)
 
bool SetAttachment (int attachmentIndex, UnderbarrelSetting underbarrelSetting=UnderbarrelSetting.Default)
 
bool SetAttachment (ShAttachment a, UnderbarrelSetting underbarrelSetting=UnderbarrelSetting.Default)
 
bool BindAttachment (int attachmentIndex, byte slot)
 
bool UnbindAttachment (int attachmentIndex, byte slot)
 
bool SetWearable (int wearableIndex)
 
void ResetMode ()
 
void SendFire (int mountableIndex)
 
void Fire (int mountableIndex)
 
void UpdateAmmo (ShMountable weapon)
 
ShItem GetAmmoItem (bool underbarrel)
 
void Consume (int index)
 
void Orient (Vector2 delta)
 
override void Die (ShPlayer attacker=null)
 
bool IsShielded (DamageIndex damageIndex, Collider collider)
 
bool IsBlocking (DamageIndex damageIndex)
 
override void HitEffect (Collider collider, DamageIndex damageIndex, Vector3 point, Vector3 normal)
 
override void Mounted (ShPlayer occupant, int seat)
 
void SetStanceColliders (StanceIndex stanceIndex)
 
void UpdateShieldEnabled ()
 
void SetStance (StanceIndex stanceIndex)
 
void SetBody ()
 
void Mount (ShMountable mount, byte enterSeat)
 
override bool InActionRange (ShEntity e)
 
int GetLayer ()
 
void UpdateLayer ()
 
void Dismount ()
 
void Jump ()
 
void FinishTrade (bool isGood)
 
void SetCapsuleHeight (float height)
 
override void CleanUp ()
 
override void Restore (Vector3 position, Quaternion rotation, Transform placeT)
 
bool CanCollectEntity (ShEntity e)
 
override void Spawn (Vector3 position, Quaternion rotation, Transform placeT)
 
IEnumerator Maintenance ()
 
void AddInjury (BodyPart part, BodyEffect effect, byte amount)
 
void ClearInjuries ()
 
void RemoveInjury (int index)
 
void UpdateInjuries ()
 
override bool IsAccessible (ShPlayer attempter, bool checkOwner)
 
bool CanMount (ShMountable mount, bool checkOwner, bool checkRestrained, out byte seatIndex)
 
override void DestroyExtras ()
 
override bool CanBeSearched (ShPlayer p)
 
void SendSelfTransfer (byte deltaType, int itemIndex, int amount)
 
override void TransferItem (byte deltaType, int itemIndex, int amount=1, bool dispatch=true)
 
void CorrectMoveMode ()
 
void CheckEquipment (int itemIndex, int delta)
 
override void AddToMyItems (int itemIndex, int amount, bool dispatch)
 
override void RemoveFromMyItems (int itemIndex, int amount, bool dispatch)
 
- Public Member Functions inherited from BrokeProtocol.Entities.ShPhysical
void SetVelocity (Vector3 velocity)
 
void SetAngularVelocity (Vector3 velocity)
 
bool GroundEntityOffsets (out int groundID, out Vector3 posOffset, out Quaternion rotOffset)
 
void ApplyInverseGravity ()
 
void Force (Vector3 force)
 
override void SetTransform (Vector3 position, Quaternion rotation, bool zeroVelocity)
 
- Public Member Functions inherited from BrokeProtocol.Entities.ShMountable
virtual void Reload ()
 
void UpdatePrimaryAmmo (int delta)
 
void UpdateSecondaryAmmo (int delta)
 
virtual bool CanUse ()
 
virtual Vector3 GetWeaponPosition ()
 
virtual Vector3 GetWeaponVector ()
 
virtual void ResetAmmo ()
 
void Rearm (float amount)
 
void IncrementFireTime (float delay)
 
void MountFire ()
 
- Public Member Functions inherited from BrokeProtocol.Entities.ShEntity
Bounds GetWorldBounds ()
 
override void CheckSave ()
 
float GetLocalY (Vector3 worldPosition)
 
float GetFlatAngle (Vector3 v)
 
bool CanSeeEntity (ShEntity other, bool checkInFront=false, float viewRange=Util.visibleRange)
 
bool GetOverlapEntity< T > (Vector3 position, Quaternion rotation, int maskIndex, float extentsMultiplier, Predicate< T > predicate, out T entity)
 
bool CanSpawn (Vector3 position, Quaternion rotation, ShEntity[] ignoreArray)
 
bool CanSee (Vector3 position)
 
float Distance (ShEntity other)
 
float DistanceSqr (ShEntity other)
 
float DistanceSqr2D (ShEntity other)
 
float DistanceSqr2D (Vector3 other)
 
float Distance (Vector3 other)
 
float DistanceSqr (Vector3 other)
 
void SetParent (Transform parent)
 
void SetPosition (Vector3 position)
 
void SetPositionSafe (Vector3 targetPosition)
 
void DeactivateEntity ()
 
void IgnoreCollision (ShPlayer p, bool ignore)
 
IEnumerator ResetCollisions (ShPlayer p)
 
int InventoryValue ()
 
int GetMyItemValue (ShItem item, bool markup)
 
void SendViewerDelta (byte delta, int itemIndex, int amount, ShPlayer ignorePlayer)
 
void TransferMoney (byte deltaType, int amount=1, bool dispatch=true)
 
void TransferItem (byte deltaType, ShItem item, int amount=1, bool dispatch=true)
 
bool ValidTransfer (int itemIndex, int amount)
 
byte[] SerializeMyItems ()
 
SizedArray SerializeShop ()
 
void DeserializeMyItems (byte[] inventoryArray)
 
void DeserializeShop (byte[] inventoryArray)
 
void AddToTradeItems (int itemIndex, int amount)
 
void RemoveFromTradeItems (int itemIndex, int amount)
 
bool CanBeCracked (ShPlayer p)
 
int ItemCount (Dictionary< int, InventoryItem > inventory, int itemIndex)
 
bool HasItem (ShItem item)
 
bool HasItem (int itemIndex)
 
int MyItemCount (ShEntity item)
 
int TradeItemCount (ShEntity item)
 
int MyItemCount (int itemIndex)
 
int TradeItemCount (int itemIndex)
 
void ClearAllViewers ()
 
void RemoveViewer (ShPlayer viewer)
 
bool ShopCanBuy (ShItem item)
 
- Public Member Functions inherited from BrokeProtocol.Entities.Serialized
virtual void InitializeEditor ()
 
virtual void BoundsHighlightAdd ()
 
virtual void BoundsHighlightRemove ()
 
void Trigger (Collider collider, string eventName, bool enter)
 

Public Attributes

CharacterType characterType
 
StanceType[] stances
 
ClPlayer clPlayer
 
SvPlayer svPlayer
 
string hands
 
string surrender
 
ShPlayer specPlayer
 
string username
 
string displayName
 
Language language
 
WearableOptions[] wearableOptions
 
CapsuleCollider capsule
 
Dictionary< Type, int > cachedItems = new ()
 
bool boss
 
Vector3 moveFactor = new(12f, 12f, 12f)
 
Vector3 input
 
byte mode
 
ushort chatChannel
 
ChatMode chatMode
 
bool pointing
 
Binding[] bindings
 
ShEquipable curEquipable
 
ShWearable[] curWearables = new ShWearable[Enum.GetNames(typeof(WearableType)).Length]
 
ShMountable curMount
 
Transform curMountT
 
byte seat
 
StanceType stance
 
float armorLevel
 
Collider headCollider
 
BoxCollider shieldCollider
 
float[] stats = new float[] { 1f, 1f, 1f }
 
bool lockedTrade
 
Transform originT
 
bool switching
 
int experience
 
int rank
 
ShEntity otherEntity
 
float lockOnTime
 
ShEntity lockOnTarget
 
ClimbState climbState
 
float[] injuryAmount = new float[(int)BodyPart.Count]
 
List< Injuryinjuries = new ()
 
byte fireIndex
 
Dictionary< ShApartment, PlaceownedApartments = new ()
 
HashSet< ShTransportownedTransports = new ()
 
float weight
 
float weightLimit = baseWeightLimit
 
- Public Attributes inherited from BrokeProtocol.Entities.ShMovable
ClMovable clMovable
 
SvMovable svMovable
 
float maxSpeed
 
ShTransport towParent
 
ShTransport towChild
 
- Public Attributes inherited from BrokeProtocol.Entities.ShPhysical
ClPhysical clPhysical
 
SvPhysical svPhysical
 
Rigidbody positionRB
 
Vector3 boostVelocity
 
float spawnVelocity
 
float originalDrag
 
float originalAngularDrag
 
- Public Attributes inherited from BrokeProtocol.Entities.ShDestroyable
ClDestroyable clDestroyable
 
SvDestroyable svDestroyable
 
float health
 
float maxStat = 20f
 
- Public Attributes inherited from BrokeProtocol.Entities.ShMountable
ClMountable clMountable
 
SvMountable svMountable
 
Seat[] seats
 
Transform[] exitTransforms
 
float viewAngleLimit = 89f
 
Transform turretT
 
Transform barrelT
 
WeaponSet[] weaponSets
 
int weaponIndex
 
Vector2 recoilP
 
Vector2 recoilV
 
ShPlayer[] occupants
 
float nextFire
 
- Public Attributes inherited from BrokeProtocol.Entities.ShDamageable
SvDamageable svDamageable
 
- Public Attributes inherited from BrokeProtocol.Entities.ShEntity
ClEntity clEntity
 
SvEntity svEntity
 
Animator animator
 
bool syncAnimator
 
ShPlayer controller
 
Dictionary< string, string > dynamicActions = new ()
 
bool isHuman
 
float videoStartTime
 
string profile = string.Empty
 
bool isWorldEntity
 
Renderer[] renderers
 
AppIndex[] availableApps
 
InventoryType inventoryType
 
Dictionary< int, InventoryItemmyItems = new ()
 
Dictionary< int, InventoryItemtradeItems = new ()
 
HashSet< ShPlayerviewers = new ()
 
HashSet< Collider > colliders
 
int ID
 
int index
 
ShManager manager
 
int value
 
int respawnFrame
 
Vector3 relativeVelocity
 
Bounds bounds
 
- Public Attributes inherited from BrokeProtocol.Entities.Serialized
string referencePrefab
 
GameObject go
 
Transform mainT
 
string data
 
BoundsHighlight highlight
 

Protected Member Functions

override void MoveControlled ()
 
override void Move ()
 
IEnumerator ArmSway ()
 
override void UpdateMainColliders ()
 
void SetFriction (bool highFriction)
 
void OnCollisionStay (Collision collision)
 
IEnumerator SetEquipableFinish ()
 
bool SafeRemove (int itemIndex, int amount, bool dispatch)
 
- Protected Member Functions inherited from BrokeProtocol.Entities.ShPhysical
void FixedUpdate ()
 
virtual void MoveSimulated ()
 
- Protected Member Functions inherited from BrokeProtocol.Entities.ShMountable
void DeltaClip (int delta)
 
IEnumerator RearmLoop ()
 
IEnumerator MoveTurret ()
 
- Protected Member Functions inherited from BrokeProtocol.Entities.ShEntity
InventoryItem DeserializeItem (byte[] itemArray)
 
InventoryItem DeserializeShopItem (byte[] itemArray)
 
void AddToInventory (Dictionary< int, InventoryItem > inventory, int itemIndex, int amount)
 
void RemoveFromInventory (Dictionary< int, InventoryItem > inventory, int itemIndex, int amount)
 

Protected Attributes

readonly int[] injuryDecay
 
Transform rotationT
 
bool armSway
 
float switchFinishTime
 
float jumpVelocity = 14f
 
Vector3 climbableNormal
 
- Protected Attributes inherited from BrokeProtocol.Entities.ShPhysical
Vector3 lastPosition
 

Static Protected Attributes

const float baseWeightLimit = 100f
 

Properties

bool InOwnApartment [get]
 
int PlaceItemCount [get]
 
override ShEntity SpecEntity [get]
 
bool LockOnValid [get]
 
ShWeapon Hands [get]
 
ShEquipable Surrender [get]
 
ShRestraint Handcuffs [get]
 
bool IsMountArmed [get]
 
ShMountable ActiveWeapon [get]
 
bool CanUpdateInputs [get]
 
bool OutsideController [get]
 
bool IsMountController [get]
 
GameObject HiddenInterior [get]
 
bool CanCrouch [get]
 
bool CanJump [get]
 
bool CanDeploy [get]
 
override Collider Ground [get]
 
override Vector3 Velocity [get, set]
 
override StanceIndex GetStanceIndex [get]
 
bool IsCapable [get]
 
bool IsUp [get]
 
bool IsMobile [get]
 
bool CanFollow [get]
 
bool InventoryLocked [get]
 
bool IsRestrained [get]
 
bool IsSurrendered [get]
 
bool IsKnockedOut [get]
 
override Vector3 CenterBuoyancy [get]
 
override Vector3 GetOrigin [get]
 
override Transform GetRotationT [get]
 
override Quaternion GetRotation [get]
 
override SerializedParameters Parameters [get]
 
override Type EditorType [get]
 
override ShPlayer Player [get]
 
override ShMountable GetMount [get]
 
override bool InWater [get]
 
override float MountHealth [get]
 
ShMovable GetControlled [get]
 
bool IsSlow [get]
 
int CurrentAmmoTotal [get]
 
- Properties inherited from BrokeProtocol.Entities.ShMovable
override bool DestroyOnDeath [get]
 
override bool ServersidePhysics [get]
 
bool DisableBrakes [get]
 
- Properties inherited from BrokeProtocol.Entities.ShPhysical
virtual float WaterDrag [get]
 
override bool SyncTransform [get]
 
override Vector3 Velocity [get, set]
 
override Vector3 CenterBuoyancy [get]
 
virtual StanceIndex GetStanceIndex [get]
 
Vector3 FutureOrigin [get]
 
Vector3 FuturePosition [get]
 
Quaternion FutureRotation [get]
 
- Properties inherited from BrokeProtocol.Entities.ShDestroyable
override bool IsDead [get]
 
override float MountHealth [get]
 
Color HealthToColor [get]
 
bool CanHeal [get]
 
virtual bool DestroyOnDeath [get]
 
- Properties inherited from BrokeProtocol.Entities.ShMountable
float NormalizedRecoilAmount [get]
 
virtual bool UsePathfinding [get]
 
WeaponSet WeaponSet [get]
 
virtual int ClipSize [get]
 
virtual int CurrentClip [get, set]
 
virtual bool CanReload [get]
 
virtual bool ServersideAmmo [get]
 
virtual ShItem AmmoItem [get]
 
int AmmoTotal [get]
 
virtual bool UseClips [get]
 
virtual bool MustAim [get]
 
virtual float Range [get]
 
virtual float Damage [get]
 
virtual bool CanLockOn [get]
 
bool ThrownHasGuidance [get]
 
virtual float CameraDistance [get]
 
override ShMountable GetMount [get]
 
bool CheckHitscans [get]
 
virtual bool ServersidePhysics [get]
 
bool IsSimulated [get]
 
bool HasWeapons [get]
 
virtual float WeaponVelocity [get]
 
float WeaponGravity [get]
 
float ThrownVelocity [get]
 
virtual float UseDelay [get]
 
- Properties inherited from BrokeProtocol.Entities.ShEntity
virtual bool IsDead [get]
 
virtual bool SyncTransform [get]
 
virtual Collider Ground [get]
 
virtual ShEntity SpecEntity [get]
 
bool SpecSelf [get]
 
override SerializedParameters Parameters [get]
 
override Type EditorType [get]
 
virtual ShMountable GetMount [get]
 
virtual ShPlayer Player [get]
 
virtual Vector3 Velocity [get, set]
 
virtual Vector3 GetOrigin [get]
 
virtual float MountHealth [get]
 
override bool SendInitial [get]
 
virtual InventoryStruct[] CollectedItems [get]
 
bool IsClientMain [get]
 
virtual float ProcessDuration [get]
 
Bounds ScaledBounds [get]
 
Vector3 CenterBounds [get]
 
bool HasInventory [get]
 
bool Shop [get]
 
int MyMoneyCount [get]
 
int TradeMoneyCount [get]
 
- Properties inherited from BrokeProtocol.Entities.Serialized
virtual bool SendInitial [get]
 
virtual SerializedParameters Parameters [get]
 
virtual Type EditorType [get]
 
ChildIndex GetChildIndex [get]
 
virtual Transform GetRotationT [get]
 
virtual Quaternion GetRotation [get]
 
Transform GetParent [get]
 
bool IsOutside [get]
 
int GetPlaceIndex [get]
 
Place GetPlace [get]
 
Vector3 GetPosition [get]
 
string LogPosition [get]
 
virtual Vector3 CenterBuoyancy [get]
 
virtual bool InWater [get]
 

Member Function Documentation

◆ AddInjury()

void BrokeProtocol.Entities.ShPlayer.AddInjury ( BodyPart part,
BodyEffect effect,
byte amount )
inline

◆ AddToMyItems()

override void BrokeProtocol.Entities.ShPlayer.AddToMyItems ( int itemIndex,
int amount,
bool dispatch )
inlinevirtual

Reimplemented from BrokeProtocol.Entities.ShEntity.

◆ ArmSway()

IEnumerator BrokeProtocol.Entities.ShPlayer.ArmSway ( )
inlineprotected

◆ Bind()

void BrokeProtocol.Entities.ShPlayer.Bind ( int equipableIndex,
byte slot )
inline

◆ BindAttachment()

bool BrokeProtocol.Entities.ShPlayer.BindAttachment ( int attachmentIndex,
byte slot )
inline

◆ CanBeSearched()

override bool BrokeProtocol.Entities.ShPlayer.CanBeSearched ( ShPlayer p)
virtual

Reimplemented from BrokeProtocol.Entities.ShEntity.

◆ CanCollectEntity()

bool BrokeProtocol.Entities.ShPlayer.CanCollectEntity ( ShEntity e)

◆ CanEquip()

bool BrokeProtocol.Entities.ShPlayer.CanEquip ( ShEquipable e)

◆ CanMount()

bool BrokeProtocol.Entities.ShPlayer.CanMount ( ShMountable mount,
bool checkOwner,
bool checkRestrained,
out byte seatIndex )
inline

◆ CanWear()

bool BrokeProtocol.Entities.ShPlayer.CanWear ( ShWearable w)

◆ CheckEquipment()

void BrokeProtocol.Entities.ShPlayer.CheckEquipment ( int itemIndex,
int delta )
inline

◆ CleanUp()

override void BrokeProtocol.Entities.ShPlayer.CleanUp ( )
inlinevirtual

◆ ClearInjuries()

void BrokeProtocol.Entities.ShPlayer.ClearInjuries ( )
inline

◆ Consume()

void BrokeProtocol.Entities.ShPlayer.Consume ( int index)
inline

◆ CorrectMoveMode()

void BrokeProtocol.Entities.ShPlayer.CorrectMoveMode ( )
inline

◆ Destroy()

override void BrokeProtocol.Entities.ShPlayer.Destroy ( )
inlinevirtual

Reimplemented from BrokeProtocol.Entities.ShEntity.

◆ DestroyExtras()

override void BrokeProtocol.Entities.ShPlayer.DestroyExtras ( )
inlinevirtual

Reimplemented from BrokeProtocol.Entities.ShEntity.

◆ Die()

override void BrokeProtocol.Entities.ShPlayer.Die ( ShPlayer attacker = null)
inlinevirtual

◆ Dismount()

void BrokeProtocol.Entities.ShPlayer.Dismount ( )
inline

◆ FinishTrade()

void BrokeProtocol.Entities.ShPlayer.FinishTrade ( bool isGood)
inline

◆ Fire()

void BrokeProtocol.Entities.ShPlayer.Fire ( int mountableIndex)
inline

◆ GetAmmoItem()

ShItem BrokeProtocol.Entities.ShPlayer.GetAmmoItem ( bool underbarrel)

◆ GetAttachment()

ShAttachment BrokeProtocol.Entities.ShPlayer.GetAttachment ( int type)

◆ GetDeployable()

ShTransport BrokeProtocol.Entities.ShPlayer.GetDeployable ( )

◆ GetJobInfoShared()

JobInfoShared BrokeProtocol.Entities.ShPlayer.GetJobInfoShared ( )

◆ GetLayer()

int BrokeProtocol.Entities.ShPlayer.GetLayer ( )
inline

◆ GetMaxExperience()

int BrokeProtocol.Entities.ShPlayer.GetMaxExperience ( )
inline

◆ GetPlaceItemLimit()

int BrokeProtocol.Entities.ShPlayer.GetPlaceItemLimit ( )
inline

◆ GetSpeedLimit()

override float BrokeProtocol.Entities.ShPlayer.GetSpeedLimit ( )
inlinevirtual

Reimplemented from BrokeProtocol.Entities.ShMovable.

◆ HitEffect()

override void BrokeProtocol.Entities.ShPlayer.HitEffect ( Collider collider,
DamageIndex damageIndex,
Vector3 point,
Vector3 normal )
inlinevirtual

◆ InActionRange()

override bool BrokeProtocol.Entities.ShPlayer.InActionRange ( ShEntity e)
virtual

Reimplemented from BrokeProtocol.Entities.ShEntity.

◆ Initialize()

override void BrokeProtocol.Entities.ShPlayer.Initialize ( )
inlinevirtual

Reimplemented from BrokeProtocol.Entities.ShPhysical.

◆ IsAccessible()

override bool BrokeProtocol.Entities.ShPlayer.IsAccessible ( ShPlayer attempter,
bool checkOwner )
virtual

◆ IsBlocking()

bool BrokeProtocol.Entities.ShPlayer.IsBlocking ( DamageIndex damageIndex)

◆ IsMount< T >()

bool BrokeProtocol.Entities.ShPlayer.IsMount< T > ( out T mount)
inline

◆ IsPassenger()

bool BrokeProtocol.Entities.ShPlayer.IsPassenger ( out ShMovable mount)

◆ IsShielded()

bool BrokeProtocol.Entities.ShPlayer.IsShielded ( DamageIndex damageIndex,
Collider collider )

◆ Jump()

void BrokeProtocol.Entities.ShPlayer.Jump ( )

◆ Maintenance()

IEnumerator BrokeProtocol.Entities.ShPlayer.Maintenance ( )
inline

◆ Mount()

void BrokeProtocol.Entities.ShPlayer.Mount ( ShMountable mount,
byte enterSeat )
inline

◆ Mounted()

override void BrokeProtocol.Entities.ShPlayer.Mounted ( ShPlayer occupant,
int seat )
inlinevirtual

◆ Move()

override void BrokeProtocol.Entities.ShPlayer.Move ( )
inlineprotectedvirtual

Reimplemented from BrokeProtocol.Entities.ShMovable.

◆ MoveControlled()

override void BrokeProtocol.Entities.ShPlayer.MoveControlled ( )
inlineprotectedvirtual

Reimplemented from BrokeProtocol.Entities.ShMovable.

◆ OnCollisionStay()

void BrokeProtocol.Entities.ShPlayer.OnCollisionStay ( Collision collision)
inlineprotected

◆ Orient()

void BrokeProtocol.Entities.ShPlayer.Orient ( Vector2 delta)
inline

◆ OriginOffset()

Vector3 BrokeProtocol.Entities.ShPlayer.OriginOffset ( )
inline

◆ Perlin()

float BrokeProtocol.Entities.ShPlayer.Perlin ( float scale)

◆ PreInitialize()

override void BrokeProtocol.Entities.ShPlayer.PreInitialize ( int ID)
inlinevirtual

◆ RemoveFromMyItems()

override void BrokeProtocol.Entities.ShPlayer.RemoveFromMyItems ( int itemIndex,
int amount,
bool dispatch )
inlinevirtual

Reimplemented from BrokeProtocol.Entities.ShEntity.

◆ RemoveInjury()

void BrokeProtocol.Entities.ShPlayer.RemoveInjury ( int index)
inline

◆ ResetInputs()

override void BrokeProtocol.Entities.ShPlayer.ResetInputs ( )
inlinevirtual

◆ ResetMode()

void BrokeProtocol.Entities.ShPlayer.ResetMode ( )
inline

◆ Restore()

override void BrokeProtocol.Entities.ShPlayer.Restore ( Vector3 position,
Quaternion rotation,
Transform placeT )
inlinevirtual

Reimplemented from BrokeProtocol.Entities.ShPhysical.

◆ SafeRemove()

bool BrokeProtocol.Entities.ShPlayer.SafeRemove ( int itemIndex,
int amount,
bool dispatch )
inlineprotected

◆ SendFire()

void BrokeProtocol.Entities.ShPlayer.SendFire ( int mountableIndex)
inline

◆ SendSelfTransfer()

void BrokeProtocol.Entities.ShPlayer.SendSelfTransfer ( byte deltaType,
int itemIndex,
int amount )

◆ SetAttachment() [1/2]

bool BrokeProtocol.Entities.ShPlayer.SetAttachment ( int attachmentIndex,
UnderbarrelSetting underbarrelSetting = UnderbarrelSetting.Default )

◆ SetAttachment() [2/2]

bool BrokeProtocol.Entities.ShPlayer.SetAttachment ( ShAttachment a,
UnderbarrelSetting underbarrelSetting = UnderbarrelSetting::Default )
inline

◆ SetBody()

void BrokeProtocol.Entities.ShPlayer.SetBody ( )
inline

◆ SetCapsuleHeight()

void BrokeProtocol.Entities.ShPlayer.SetCapsuleHeight ( float height)
inline

◆ SetEquipable()

bool BrokeProtocol.Entities.ShPlayer.SetEquipable ( int equipableIndex,
bool resetAmmo )
inline

◆ SetEquipableFinish()

IEnumerator BrokeProtocol.Entities.ShPlayer.SetEquipableFinish ( )
inlineprotected

◆ SetFriction()

void BrokeProtocol.Entities.ShPlayer.SetFriction ( bool highFriction)
inlineprotected

◆ SetRotation()

override void BrokeProtocol.Entities.ShPlayer.SetRotation ( Quaternion rotation)
virtual

Reimplemented from BrokeProtocol.Entities.ShEntity.

◆ SetStance()

void BrokeProtocol.Entities.ShPlayer.SetStance ( StanceIndex stanceIndex)
inline

◆ SetStanceColliders()

void BrokeProtocol.Entities.ShPlayer.SetStanceColliders ( StanceIndex stanceIndex)
inline

◆ SetWearable()

bool BrokeProtocol.Entities.ShPlayer.SetWearable ( int wearableIndex)
inline

◆ Spawn()

override void BrokeProtocol.Entities.ShPlayer.Spawn ( Vector3 position,
Quaternion rotation,
Transform placeT )
inlinevirtual

Reimplemented from BrokeProtocol.Entities.ShPhysical.

◆ TransferItem()

override void BrokeProtocol.Entities.ShPlayer.TransferItem ( byte deltaType,
int itemIndex,
int amount = 1,
bool dispatch = true )
inlinevirtual

Reimplemented from BrokeProtocol.Entities.ShEntity.

◆ TryGetCachedItem< T >()

bool BrokeProtocol.Entities.ShPlayer.TryGetCachedItem< T > ( out T item)
inline
Type Constraints
T :ShItem 

◆ TrySetInput()

void BrokeProtocol.Entities.ShPlayer.TrySetInput ( float x,
float y,
float z )
inline

◆ TryUpdateMode()

bool BrokeProtocol.Entities.ShPlayer.TryUpdateMode ( byte modeInput)
inline

◆ Unbind()

void BrokeProtocol.Entities.ShPlayer.Unbind ( byte slot)
inline

◆ UnbindAttachment()

bool BrokeProtocol.Entities.ShPlayer.UnbindAttachment ( int attachmentIndex,
byte slot )
inline

◆ UpdateAmmo()

void BrokeProtocol.Entities.ShPlayer.UpdateAmmo ( ShMountable weapon)
inline

◆ UpdateInjuries()

void BrokeProtocol.Entities.ShPlayer.UpdateInjuries ( )
inline

◆ UpdateLayer()

void BrokeProtocol.Entities.ShPlayer.UpdateLayer ( )
inline

◆ UpdateMainColliders()

override void BrokeProtocol.Entities.ShPlayer.UpdateMainColliders ( )
inlineprotectedvirtual

Reimplemented from BrokeProtocol.Entities.ShEntity.

◆ UpdateShieldEnabled()

void BrokeProtocol.Entities.ShPlayer.UpdateShieldEnabled ( )

◆ ZeroInputs()

void BrokeProtocol.Entities.ShPlayer.ZeroInputs ( )

Member Data Documentation

◆ armorLevel

float BrokeProtocol.Entities.ShPlayer.armorLevel

◆ armSway

bool BrokeProtocol.Entities.ShPlayer.armSway
protected

◆ baseWeightLimit

const float BrokeProtocol.Entities.ShPlayer.baseWeightLimit = 100f
staticprotected

◆ bindings

Binding [] BrokeProtocol.Entities.ShPlayer.bindings

◆ boss

bool BrokeProtocol.Entities.ShPlayer.boss

◆ cachedItems

Dictionary<Type, int> BrokeProtocol.Entities.ShPlayer.cachedItems = new ()

◆ capsule

CapsuleCollider BrokeProtocol.Entities.ShPlayer.capsule

◆ characterType

CharacterType BrokeProtocol.Entities.ShPlayer.characterType

◆ chatChannel

ushort BrokeProtocol.Entities.ShPlayer.chatChannel

◆ chatMode

ChatMode BrokeProtocol.Entities.ShPlayer.chatMode

◆ climbableNormal

Vector3 BrokeProtocol.Entities.ShPlayer.climbableNormal
protected

◆ climbState

ClimbState BrokeProtocol.Entities.ShPlayer.climbState

◆ clPlayer

ClPlayer BrokeProtocol.Entities.ShPlayer.clPlayer

◆ curEquipable

ShEquipable BrokeProtocol.Entities.ShPlayer.curEquipable

◆ curMount

ShMountable BrokeProtocol.Entities.ShPlayer.curMount

◆ curMountT

Transform BrokeProtocol.Entities.ShPlayer.curMountT

◆ curWearables

ShWearable [] BrokeProtocol.Entities.ShPlayer.curWearables = new ShWearable[Enum.GetNames(typeof(WearableType)).Length]

◆ displayName

string BrokeProtocol.Entities.ShPlayer.displayName

◆ experience

int BrokeProtocol.Entities.ShPlayer.experience

◆ fireIndex

byte BrokeProtocol.Entities.ShPlayer.fireIndex

◆ hands

string BrokeProtocol.Entities.ShPlayer.hands

◆ headCollider

Collider BrokeProtocol.Entities.ShPlayer.headCollider

◆ injuries

List<Injury> BrokeProtocol.Entities.ShPlayer.injuries = new ()

◆ injuryAmount

float [] BrokeProtocol.Entities.ShPlayer.injuryAmount = new float[(int)BodyPart.Count]

◆ injuryDecay

readonly int [] BrokeProtocol.Entities.ShPlayer.injuryDecay
protected
Initial value:
= new int[]
{
20,
4,
2,
1,
0
}

◆ input

Vector3 BrokeProtocol.Entities.ShPlayer.input

◆ jumpVelocity

float BrokeProtocol.Entities.ShPlayer.jumpVelocity = 14f
protected

◆ language

Language BrokeProtocol.Entities.ShPlayer.language

◆ lockedTrade

bool BrokeProtocol.Entities.ShPlayer.lockedTrade

◆ lockOnTarget

ShEntity BrokeProtocol.Entities.ShPlayer.lockOnTarget

◆ lockOnTime

float BrokeProtocol.Entities.ShPlayer.lockOnTime

◆ mode

byte BrokeProtocol.Entities.ShPlayer.mode

◆ moveFactor

Vector3 BrokeProtocol.Entities.ShPlayer.moveFactor = new(12f, 12f, 12f)

◆ originT

Transform BrokeProtocol.Entities.ShPlayer.originT

◆ otherEntity

ShEntity BrokeProtocol.Entities.ShPlayer.otherEntity

◆ ownedApartments

Dictionary<ShApartment, Place> BrokeProtocol.Entities.ShPlayer.ownedApartments = new ()

◆ ownedTransports

HashSet<ShTransport> BrokeProtocol.Entities.ShPlayer.ownedTransports = new ()

◆ pointing

bool BrokeProtocol.Entities.ShPlayer.pointing

◆ rank

int BrokeProtocol.Entities.ShPlayer.rank

◆ rotationT

Transform BrokeProtocol.Entities.ShPlayer.rotationT
protected

◆ seat

byte BrokeProtocol.Entities.ShPlayer.seat

◆ shieldCollider

BoxCollider BrokeProtocol.Entities.ShPlayer.shieldCollider

◆ specPlayer

ShPlayer BrokeProtocol.Entities.ShPlayer.specPlayer

◆ stance

StanceType BrokeProtocol.Entities.ShPlayer.stance

◆ stances

StanceType [] BrokeProtocol.Entities.ShPlayer.stances

◆ stats

float [] BrokeProtocol.Entities.ShPlayer.stats = new float[] { 1f, 1f, 1f }

◆ surrender

string BrokeProtocol.Entities.ShPlayer.surrender

◆ svPlayer

SvPlayer BrokeProtocol.Entities.ShPlayer.svPlayer

◆ switchFinishTime

float BrokeProtocol.Entities.ShPlayer.switchFinishTime
protected

◆ switching

bool BrokeProtocol.Entities.ShPlayer.switching

◆ username

string BrokeProtocol.Entities.ShPlayer.username

◆ wearableOptions

WearableOptions [] BrokeProtocol.Entities.ShPlayer.wearableOptions

◆ weight

float BrokeProtocol.Entities.ShPlayer.weight

◆ weightLimit

float BrokeProtocol.Entities.ShPlayer.weightLimit = baseWeightLimit

Property Documentation

◆ ActiveWeapon

ShMountable BrokeProtocol.Entities.ShPlayer.ActiveWeapon
get

◆ CanCrouch

bool BrokeProtocol.Entities.ShPlayer.CanCrouch
get

◆ CanDeploy

bool BrokeProtocol.Entities.ShPlayer.CanDeploy
get

◆ CanFollow

bool BrokeProtocol.Entities.ShPlayer.CanFollow
get

◆ CanJump

bool BrokeProtocol.Entities.ShPlayer.CanJump
get

◆ CanUpdateInputs

bool BrokeProtocol.Entities.ShPlayer.CanUpdateInputs
get

◆ CenterBuoyancy

override Vector3 BrokeProtocol.Entities.ShPlayer.CenterBuoyancy
get

◆ CurrentAmmoTotal

int BrokeProtocol.Entities.ShPlayer.CurrentAmmoTotal
get

◆ EditorType

override Type BrokeProtocol.Entities.ShPlayer.EditorType
get

◆ GetControlled

ShMovable BrokeProtocol.Entities.ShPlayer.GetControlled
get

◆ GetMount

override ShMountable BrokeProtocol.Entities.ShPlayer.GetMount
get

◆ GetOrigin

override Vector3 BrokeProtocol.Entities.ShPlayer.GetOrigin
get

◆ GetRotation

override Quaternion BrokeProtocol.Entities.ShPlayer.GetRotation
get

◆ GetRotationT

override Transform BrokeProtocol.Entities.ShPlayer.GetRotationT
get

◆ GetStanceIndex

override StanceIndex BrokeProtocol.Entities.ShPlayer.GetStanceIndex
get

◆ Ground

override Collider BrokeProtocol.Entities.ShPlayer.Ground
get

◆ Handcuffs

ShRestraint BrokeProtocol.Entities.ShPlayer.Handcuffs
get

◆ Hands

ShWeapon BrokeProtocol.Entities.ShPlayer.Hands
get

◆ HiddenInterior

GameObject BrokeProtocol.Entities.ShPlayer.HiddenInterior
get

◆ InOwnApartment

bool BrokeProtocol.Entities.ShPlayer.InOwnApartment
get

◆ InventoryLocked

bool BrokeProtocol.Entities.ShPlayer.InventoryLocked
get

◆ InWater

override bool BrokeProtocol.Entities.ShPlayer.InWater
get

◆ IsCapable

bool BrokeProtocol.Entities.ShPlayer.IsCapable
get

◆ IsKnockedOut

bool BrokeProtocol.Entities.ShPlayer.IsKnockedOut
get

◆ IsMobile

bool BrokeProtocol.Entities.ShPlayer.IsMobile
get

◆ IsMountArmed

bool BrokeProtocol.Entities.ShPlayer.IsMountArmed
get

◆ IsMountController

bool BrokeProtocol.Entities.ShPlayer.IsMountController
get

◆ IsRestrained

bool BrokeProtocol.Entities.ShPlayer.IsRestrained
get

◆ IsSlow

bool BrokeProtocol.Entities.ShPlayer.IsSlow
get

◆ IsSurrendered

bool BrokeProtocol.Entities.ShPlayer.IsSurrendered
get

◆ IsUp

bool BrokeProtocol.Entities.ShPlayer.IsUp
get

◆ LockOnValid

bool BrokeProtocol.Entities.ShPlayer.LockOnValid
get

◆ MountHealth

override float BrokeProtocol.Entities.ShPlayer.MountHealth
get

◆ OutsideController

bool BrokeProtocol.Entities.ShPlayer.OutsideController
get

◆ Parameters

override SerializedParameters BrokeProtocol.Entities.ShPlayer.Parameters
get

◆ PlaceItemCount

int BrokeProtocol.Entities.ShPlayer.PlaceItemCount
get

◆ Player

override ShPlayer BrokeProtocol.Entities.ShPlayer.Player
get

◆ SpecEntity

override ShEntity BrokeProtocol.Entities.ShPlayer.SpecEntity
get

◆ Surrender

ShEquipable BrokeProtocol.Entities.ShPlayer.Surrender
get

◆ Velocity

override Vector3 BrokeProtocol.Entities.ShPlayer.Velocity
getset

The documentation for this class was generated from the following file: