0
0
mirror of https://github.com/sp-tarkov/modules.git synced 2025-02-12 22:50:44 -05:00
DanW e2ff77a2b3 Created RaidTimeUtil class to allow modders to retrieve "real" raid-time information (!40)
Added `RaidTimeUtil` which provides the following public methods:
* `GetRemainingRaidSeconds()`: Get the seconds remaining in the raid
* `GetRaidTimeRemainingFraction()`: Get the fraction of time remaining in the raid (relative to the original escape time for the map)
* `GetElapsedRaidSeconds()`: Get the elapsed seconds in the raid (relative to the original escape time for the map)
* `GetSecondsSinceSpawning()`: Get the elapsed seconds since spawning into the raid

This will allow modders to do things based on raid time, even after changes have been made for Scav raids.

The new class required several properties to be added to the existing `RaidChangesUtil` because apparently I can never stop messing with that class...

Co-authored-by: dwesterwick <dwesterwick@yahoo.com>
Reviewed-on: SPT-AKI/Modules#40
Co-authored-by: DanW <danw@noreply.dev.sp-tarkov.com>
Co-committed-by: DanW <danw@noreply.dev.sp-tarkov.com>
2023-12-03 15:22:28 +00:00
2023-03-03 18:52:31 +00:00
2023-03-03 18:52:31 +00:00
2023-10-10 10:58:33 +00:00
2023-03-03 18:52:31 +00:00
2023-10-10 13:28:07 +01:00

Modules

BepInEx plugins to alter Escape From Tarkov's behaviour

Project Function
Aki.Build Build script
Aki.Bundles External bundle loader
Aki.Common Common utilities used across projects
Aki.Core Required patches to start the game
Aki.Custom SPT-AKI enhancements to EFT
Aki.Debugging Debug utilities (disabled in release builds)
Aki.Reflection Reflection utilities used across the project
Aki.SinglePlayer Simulating online game while offline

Privacy

SPT is an open source project. Your commit credentials as author of a commit will be visible by anyone. Please make sure you understand this before submitting a PR. Feel free to use a "fake" username and email on your commits by using the following commands:

git config --local user.name "USERNAME"
git config --local user.email "USERNAME@SOMETHING.com"

Requirements

  • Escape From Tarkov 26535
  • BepInEx 5.4.21
  • Visual Studio Code
  • .NET 6 SDK

Setup

Copy-paste Live EFT's EscapeFromTarkov_Data/Managed/ folder to into Modules' Project/Shared/ folder

Build (vscode)

  1. File > Open Workspace > Modules.code-workspace
  2. Terminal > Run Build Task...
  3. Copy contents of /Build into SPT game folder and overwrite

Build (VS)

  1. Open solution
  2. Restore nuget packages
  3. Run dotnet new tool-manifest
  4. Sometimes you need to run dotnet tool restore
  5. Run dotnet tool install Cake.Tool
  6. Build solution
  7. Copy contents of /Build into SPT game folder and overwrite
Description
No description provided
Readme 151 MiB
Languages
C# 99.5%
PowerShell 0.5%