Skip to content

Add HackingTarget component for per-entity hacking settings#2838

Open
oznogon wants to merge 2 commits intodaid:masterfrom
oznogon:scriptable-hacking-difficulty
Open

Add HackingTarget component for per-entity hacking settings#2838
oznogon wants to merge 2 commits intodaid:masterfrom
oznogon:scriptable-hacking-difficulty

Conversation

@oznogon
Copy link
Copy Markdown
Contributor

@oznogon oznogon commented Apr 6, 2026

Add a HackingTarget component to be applied only to entities that deviate from GameGlobalInfo settings. This allows scripts to override global hacking difficulty and minigame type on specific entities.

  • Add Lua Entity:get/setHackingDifficulty(), taking a numeric difficulty from 0 (easiest) to 3 (hardest), or -1 to revert to GameGlobalInfo default.
  • Add Lua Entity:get/setHackingGame(), taking a string name that maps to one of the EHackingGames values "mines", "lights", or "all", or nil to revert to the GameGlobalInfo default.
  • Add GM tweaks menu to add and set the HackingTarget component on a selected entity.
Screenshot 2026-04-06 155707 Screenshot 2026-04-06 155833 Screenshot 2026-04-06 155910

oznogon added 2 commits April 6, 2026 15:59
Set per-entity hacking difficulty, minigame type with a HackingTarget
component applied only to entities that deviate from GameGlobalInfo
settings.

- Add get/setHackingDifficulty(), taking a numeric difficulty from
  0 (easiest) to 3 (hardest), or -1 to revert to GameGlobalInfo default.
- Add get/setHackingGame(), taking a string name that maps to one of the
  EHackingGames values "mines", "lights", or "all", or nil to revert to
  the GameGlobalInfo default.
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