You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[PlayerProperty.Inventory]=newInfo<CollectionValue<Item>>(plr =>new(plr.Inventory.UserInventory.Items.Values.Select(Item.Get).RemoveNulls()),$"A collection of references to {nameof(Item)} objects"),
[PlayerProperty.Stamina]=newInfo<NumberValue>(plr =>(decimal)plr.StaminaRemaining,"Returns the player's remaining stamina."),
226
229
[PlayerProperty.MovementState]=newInfo<TextValue>(plr =>plr.RoleBaseisIFpcRolecurrentRole?currentRole.FpcModule.CurrentMovementState.ToString().ToStaticTextValue():new("None"),"Returns the player's movement state or 'None' if the player is not a first-person role."),
227
-
[PlayerProperty.RoleColor]=newInfo<ColorValue>(plr =>plr.RoleBase.RoleColor,"Returns the hex value of the player's role color."),
230
+
[PlayerProperty.RoleColor]=newInfo<ColorValue>(plr =>plr.RoleBase.RoleColor,"Returns a color value of the player's role color."),
[PlayerProperty.Unit]=newInfo<TextValue>(plr =>NamingRulesManager.ClientFetchReceived(plr.Team,plr.UnitId).ToStaticTextValue(),"Returns the player's unit (e.g FOXTROT-03) if player is NTF or Facility Guard, otherwise returns an empty text value."),
231
-
[PlayerProperty.CRole]=newInfo<ReferenceValue<CRole>>(plr =>CRole.AssignedRoles.TryGetValue(plr,outvarrole)?role:null,"Returns the player's CRole if player is a CRole, otherwise returns an empty reference value."),
232
-
[PlayerProperty.IsTransmitting]=newInfo<BoolValue>(plr =>PersonalRadioPlayback.IsTransmitting(plr.ReferenceHub),"Returns true if player is speaking through a radio, otherwise false.")
234
+
[PlayerProperty.CRole]=newInfo<ReferenceValue<CRole>>(plr =>CRole.LifeIdAssignedRoles.TryGetValue(plr.LifeId,outvarrole)?role:null,"Returns the player's CRole if player is a CRole, otherwise returns an empty reference value."),
235
+
[PlayerProperty.IsTransmitting]=newInfo<BoolValue>(plr =>PersonalRadioPlayback.IsTransmitting(plr.ReferenceHub),"Returns true if player is speaking through a radio, otherwise false."),
0 commit comments