Skip to content

15 new methods, small method changes, 10 new player properties#19

Open
RetroReul wants to merge 11 commits intoScriptedEvents:mainfrom
RetroReul:retro-dev
Open

15 new methods, small method changes, 10 new player properties#19
RetroReul wants to merge 11 commits intoScriptedEvents:mainfrom
RetroReul:retro-dev

Conversation

@RetroReul
Copy link

@RetroReul RetroReul commented Mar 14, 2026

New Methods

Player methods

  • Stamina - Control the stamina of players. (Can add, remove and set stamina. Also comes with stamina regen delay parameter)
  • Jump - Make players jump (with modifiable jump strength).
  • ShowHitMarker - Shows a hit marker to players.

Effect methods

  • HasEffect [EXILED only] - Returns true or false indicating if the player has the provided effect.
  • ClearEffect [EXILED only] - Removes the provided status effect from players.
  • EffectInfo - Uses a StatusEffectBase reference to extract info. Should be used with events like UpdatingEffect.

Elevator methods

  • ElevatorInfo - Uses an Elevator reference to extract info. Should be used with ElevatorSequenceChanged event.
  • SetElevatorText - Changes the text on the elevator panels between LCZ and HCZ.

Other methods

  • SpeakerExists [Audio method] - Returns true or false indicating if a speaker with the provided name exists.
  • PryGate [Door method] - Pries a gate. (Like 096 does. Comes with optional parameter to play effects on door button)
  • ForceEquip [Item method] - Forces players to equip a provided item. (Like the Remote Admin command)
  • CreateRagdoll [Map method] - Spawns a ragdoll.
  • ScriptExists [Script method] - Returns true or false indicating if a script with the provided name exists.
  • ContainsText [Text method] - Returns true or false indicating if the provided text contains a provided value.

Method Changes

  • GiveEffect - Moved to Effect methods category.
  • DoorInfo - Added isGate and isCheckpoint info options.
  • ServerInfo - Added playerCount and maxTPS info options.

New Player Properties

  • IsSpeaking
  • IsSpectatable
  • IsJumping
  • IsGrounded
  • Stamina - Returns the player's remaining stamina.
  • MovementState
  • RoleColor - Returns the hex value of the player's role color.
  • LifeId
  • UnitId
  • Unit - Returns the player's unit (e.g FOXTROT-03) if player is NTF or Facility Guard, otherwise returns an empty text value.

@RetroReul
Copy link
Author

3:40 AM is probably not the best time to drop a pull request out of nowhere, ngl
After spending a bunch of time messing with an experimental SER extension plugin of mine, i decided to yoink some stuff from it and hope some of it gets added.
This is my first time ever making a pull request, so i hope i didn't mess up too much.

@RetroReul RetroReul changed the title 16 new methods, small method changes, 10 new player properties 15 new methods, small method changes, 10 new player properties Mar 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant