#Configurable Tesla Gates

1 messages · Page 1 of 1 (latest)

rustic galleon
lavish cairn
rustic galleon
lavish cairn
#

if (Plugin.Main.Config.RoleList.Contains(ev.Player.Role))
ev.IsAllowed = false

rustic galleon
#

Alright, thanks!

rustic galleon
#

Btw, how do I make a list that can be changed by an RA command, but resets every time the round restarts?

sharp skiff
rustic galleon
#

alr ty

rustic galleon
rustic galleon
rustic galleon
#

Even more config options :D

is_enabled can now be found in the main config file
Added option to clear the list of immune players upon round restart

Release

GitHub

Merge is_enabled into main config file
Add option to clear list of players immune to Tesla Gates upon round restart
See clearImmunityOnRestart in config.

rustic galleon
vast verge
#

how do I turn off tesla completely

rustic galleon
sharp skiff
vast verge
#

Bro I did it all

rustic galleon
sharp skiff
#

teslas are old I guess so they all use RPCs

#

it doesn't look like LabAPI has a OnIdlingTesla event so you're gonna have to patch stuff depending on what you want

rustic galleon
#

I've just been preventing it from firing when it wants to

sharp skiff
#

or maybe just set gameObject::isActiveAndEnabled?

#

that also seems to work

rustic galleon
sharp skiff
#

so LabAPI has a OnIdledTesla method

#

if you use that

#

determine it shouldnt idle

#

then just call RpcDoneIdling on the tesla gate

rustic galleon
#

alr I'll try that after I finish v2.0.0

#

The Commands Update

rustic galleon
rustic galleon
shrewd copper
#

Wait I can finally mess with Teslagates AGAIN? PMER needs to re-implement this

rustic galleon
#

also

rustic galleon
rustic galleon
#

I'll start working on an update later

rustic galleon
#

April fools update: Released. (v2.1.0 - v2.1.1)

Changelog:
Plugin will now do the opposite as intended, except for commands. (+ config option to disable)