Interactable Exfils API

  • Jehree added a new file:

  • Jehree added a new version:

    Quote

    Fixed issue with labs extracts (sewer and the elevators) not allowing exfil zone to be enabled

    • the "Extract" prompt no longer is gray / disabled when the extract has unmet requirements (power, switch, etc.). Now, it will play an error sound and give you a notification pop up indicating what the incomplete requirements are.
    • All car extracts as well as the elevators on Labs do not have a toggleable timer. Once you begin extracting, you cannot stop it. All additional exfil interactions added by other mods using this API will show on the car / the button inside the elevator.
    • Fixed debug prompt not showing up on car extracts.

    Let me know if any other extracts are broken!

  • Jehree added a new version:

    Quote

    Code cleanup and refactor.

    End user experience is largely unchanged, but I did add this:

    • Added option to display a disabled interaction prompt that says "Extract Unavailable" when in an exfil that is not available to the player (including exfils that will never be available, like scav extracts when you're on a PMC run). The setting is defaulted to false, enable it in F12 menu if desired.

    API stuff:

    • API now properly utilizes itself to add the interactions it adds, instead of hardcoding them in weird places.
    • CustomExfilTrigger is now passed into the event so that it's methods can be used if desired.
    • Player Side is no longer passed through event, fetch it via Singleton<GameWorld>.Instance.MainPlayer.Side if you need it.
    • Interactions are fetched every single time the interaction menu is refreshed (entering the zone for the first time, when looking at something else and looking back, etc.). This means they can be modified mid raid, and are generally just more powerful.
    • API users can no longer disable the extract toggle. Having that option in felt weird and out of scope, so I removed it. If another mod wants to make an extract unavailable, it should do so via requirements or other methods.
  • Jehree added a new version:

    Quote

    Sorry guys.. I didn't realize I needed to recompile. Should now work for 3.10.X.

    See https://github.com/Jehree/Inte…lsAPI/releases/tag/v1.3.0 for patch notes

  • Jehree added a new version:

    Quote

    for 3.10.X SPT versions


    Very small update. Mostly a code cleanup with a couple new API user things. Average users will see 0 difference.

    See https://github.com/Jehree/Inte…lsAPI/releases/tag/v1.3.1 for patch notes

  • Jehree added a new version:

    Quote

    for 3.10.X SPT versions

    Full changelog here: https://github.com/Jehree/SPT-…lsAPI/releases/tag/v1.4.0

  • Jehree added a new version:

    Quote
    • The default extract prompt was broken in the previous 1.4.0 version (sorry for the inconveniance)
    • I also re-used existing EFT locales in order to translate the mod for all languages.
  • Jehree added a new version:

    Quote

    for 3.10.X SPT versions

    For players

    - no real change here but you'll need at least this version for the final release of Path To Tarkov (v6)


    Fixes (for modders)

    - [`InteractableExfilsService.RefreshPrompt()`](https://github.com/Jehree/SPT-…ableExfilsService.cs#L224) updated the prompt even if the player was not in the exfil zone


    Features (for modders)

    - add [OnExitZone](https://github.com/Jehree/SPT-…tableExfilsService.cs#L23) action on `OnActionsAppliedResult` class: this allow to execute some code when a player exit an exfil zone.

  • Jehree added a new version:

    Quote

    for 3.10.X SPT versions

    Changelog

    Fixes

    • Cancellation of car exfils is not possible anymore (fix of issue #8)
    • Crashes when the prompt is refreshed without any actions (fix of issues #6 and #9)

  • Jehree added a new version:

    Quote

    for 3.10.X SPT versions

    Changelog

    Fixes for players

    • Fix broken Saferoom exfiltration on Interchange (players were trapped in the saferoom 😂)
    • Fix train exfils will always extract player automatically regardless of config (because if you don't trigger the extract on time the train just kills you)
    • Fix broken lab elevator exfils when user cancel (so this is not cancellable anymore)
    • Fix exfil with shared timers that should not be cancellable


    New feature for modders

    • Helpers.Settings is now public: This will allow to react to Interactable Exfils API Settings, or even change of them (.e.g. put it in readonly mode)


    ⚠️ Breaking changes for modders (this is why the v2)

    It should not be a real problem since these features have not been used.

    • Removed InteractableExfilsService.ExfilHasRequirement
    • Removed InteractableExfilsService.ExfilIsCar
    • Removed InteractableExfilsService.ExfilIsElevator
    • Removed InteractableExfilsServiceAddPlayerToPlayersMetAllRequirements

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!