15 new methods, small method changes, 10 new player properties#19
Open
RetroReul wants to merge 11 commits intoScriptedEvents:mainfrom
Open
15 new methods, small method changes, 10 new player properties#19RetroReul wants to merge 11 commits intoScriptedEvents:mainfrom
RetroReul wants to merge 11 commits intoScriptedEvents:mainfrom
Conversation
… take advantage of effects via events)
Author
|
3:40 AM is probably not the best time to drop a pull request out of nowhere, ngl |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 aStatusEffectBasereference to extract info. Should be used with events likeUpdatingEffect.Elevator methods
ElevatorInfo- Uses anElevatorreference to extract info. Should be used withElevatorSequenceChangedevent.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 toEffectmethods category.DoorInfo- AddedisGateandisCheckpointinfo options.ServerInfo- AddedplayerCountandmaxTPSinfo options.New Player Properties
IsSpeakingIsSpectatableIsJumpingIsGroundedStamina- Returns the player's remaining stamina.MovementStateRoleColor- Returns the hex value of the player's role color.LifeIdUnitIdUnit- Returns the player's unit (e.g FOXTROT-03) if player is NTF or Facility Guard, otherwise returns an empty text value.