Zezombye / overpy

High-level language for the Overwatch Workshop with support for compilation and decompilation.
GNU General Public License v3.0
175 stars 25 forks source link

Add the rest of the "Enable/Disable" actions #365

Closed Ciach0 closed 2 months ago

Ciach0 commented 2 months ago

Currently, there are options to enable/disable:

But OverPy lacks some actions, that being: Enable/Disable:

It's very tedious when I have to resort to writing the lacking directives myself, and adding them to OverPy would help overcome it

CactusPuppy commented 2 months ago

I believe the actions you have highlighted as missing are actually just only available in a player context, like so:

rule "Disable/enable a lot of things":
  getAllPlayers().disableRespawn()
  getAllPlayers().disableDeathSpectateAllPlayers()
  getAllPlayers().disableDeathSpectateTargetHud()
  getAllPlayers().disableGamemodeHud()
  getAllPlayers().disableKillFeed()
  getAllPlayers().disablePlayerCollision()
  getAllPlayers().disableEnvironmentCollision(false)
  getAllPlayers().disableNameplatesFor(getAllPlayers())
  getAllPlayers().disableTextChat()
  getAllPlayers().disableVoiceChat(true, true, true)

If this works for you, please let me know and I'll close this issue.

Ciach0 commented 2 months ago

Oh, so that's where they are I thought they would be global because they don't accept any player in the workshop Closing this now, thank you