0
0
mirror of https://github.com/sp-tarkov/modules.git synced 2025-02-13 05:30:43 -05:00

406 Commits

Author SHA1 Message Date
Cj
20ce9a9a9d Fix watermark bounds going off the screen (!88)
Fixes the screen bounds for the water mark, it now no longer clips off the screen. It was really bothering me...

Co-authored-by: Cj <161484149+CJ-SPT@users.noreply.github.com>
Reviewed-on: SPT-AKI/Modules#88
Co-authored-by: Cj <cj@noreply.dev.sp-tarkov.com>
Co-committed-by: Cj <cj@noreply.dev.sp-tarkov.com>
2024-03-06 08:49:49 +00:00
f614378ff6
Build Quotes & Specify Encoding of License 2024-03-05 22:21:53 -05:00
Dev
6334a20bcf Change debug text 2024-03-05 22:09:38 +00:00
Dev
26263cb848 Cache version result in patch 2024-03-05 20:28:51 +00:00
Dev
a4fd3aa42c Remove dollar sign 2024-03-05 20:25:38 +00:00
Dev
f781071bf2 Add additional debug patch 2024-03-05 20:21:31 +00:00
2b3bf8864a Converts Build Script to PowerShell (!87)
In a push to automate project builds, this changes the build script from a BAT script to a PowerShell script. This is a cross-platform solution that should allow us to build the project within the `mcr.microsoft.com/dotnet/sdk:6.0` docker image (Debian).

Also updates the README to list PowerShell 7 as a dependency as the `pwsh`  tool is not available in Windows PowerShell (v5).

Co-authored-by: Refringe <brownelltyler@gmail.com>
Reviewed-on: SPT-AKI/Modules#87
Co-authored-by: Refringe <refringe@noreply.dev.sp-tarkov.com>
Co-committed-by: Refringe <refringe@noreply.dev.sp-tarkov.com>
2024-03-04 08:44:10 +00:00
Dev
1c2d88ad3a Made a number of classes public 2024-03-02 15:50:50 +00:00
2ff471e754 Remove GClass Refs for cultist amulet patch 2024-02-28 20:34:15 +00:00
Dev
19fe726cea Add comment 2024-02-27 19:53:29 +00:00
Dev
d9aff659ba Fix LoadOfflineRaidScreenForScav patch failing to find private field 2024-02-27 19:51:12 +00:00
Dev
0429799dea 28965 2024-02-27 18:57:49 +00:00
Dev
469591abfe 28875 2024-02-26 11:26:15 +00:00
f7ded0abf3 Add handling of trader service requirements (!86)
This is primarily handled by the server, but the client does have precautionary code in it

Co-authored-by: DrakiaXYZ <565558+TheDgtl@users.noreply.github.com>
Reviewed-on: SPT-AKI/Modules#86
Co-authored-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
Co-committed-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
2024-02-25 23:08:20 +00:00
Kaeno
9328c4c956 Add patch that removes Culists amulet when you kill a cultist. First pass at implementing this 2024-02-25 17:36:27 +00:00
a43ea41a75 CheckandaddEnemypatch now returns a bool. Set result to not include isAI Checks. Needs testing (!85)
Co-authored-by: Kaeno <e>
Reviewed-on: SPT-AKI/Modules#85
2024-02-22 16:57:57 +00:00
e1caef80dc Fix multiple NREs thrown in bot code (!84)
1) The called bot's enemy position is being passed to TryCall, instead of the calling bot's enemy position. This is both incorrect and can lead to an NRE if the called bot has no enemy. Fix by passing in the calling bot's enemy position

2) In the TryCall method, the caller's enemy is added to the called bot, however the code doesn't verify that it was added before accessing it in the `EnemyInfos` array. This can throw a missing key exception if the bot failed to add to the enemies list. Fix by making sure the enemy is added to the enemy list before executing TryCall

3) When a BotOwner is disposed, the CalledData is never properly cleaned up, resulting in a bot's OnEnemyAdd being triggered after the bot has been killed, this can throw an NRE. Fix by calling CalledData.SetOff before BotOwner.Dispose

Co-authored-by: DrakiaXYZ <565558+TheDgtl@users.noreply.github.com>
Reviewed-on: SPT-AKI/Modules#84
Co-authored-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
Co-committed-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
2024-02-22 09:13:09 +00:00
Kaeno
28e945a7dd Fix patch causing double quest progression 2024-02-16 20:49:44 +00:00
Kaeno
625442d2e3 Gets the value from server. No longer hard coded to 10 2024-02-16 16:14:11 +00:00
Kaeno
1759abd842 Make sure the patch only runs while ingame and on a scav 2024-02-16 15:49:18 +00:00
a798508ed1 default to release build, resolve issues with build script, works with VS, VSC, Rider, CLI 2024-02-16 11:22:04 +00:00
c7bc0b0514 Rework build process (!83)
Co-authored-by: CWXDEV <CWXDEV@outlook.com>
Reviewed-on: SPT-AKI/Modules#83
2024-02-16 10:13:58 +00:00
Dev
df840e5b2a Revert "28784 dll"
This reverts commit f26c771c24ac2a442b3f5a804b63508b27be418c.
2024-02-15 12:49:13 +00:00
Dev
f26c771c24 28784 dll 2024-02-15 12:46:10 +00:00
44e9f44f70 Fix error when BTR kills enemy (!82)
Fixes an NRE when the BTR kills an enemy while using cover fire service

Co-authored-by: DrakiaXYZ <565558+TheDgtl@users.noreply.github.com>
Reviewed-on: SPT-AKI/Modules#82
Co-authored-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
Co-committed-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
2024-02-15 08:56:02 +00:00
c8507fb600 Synchronize scav encyclopedia with PMC at raid start, and inspect any items in scav inventory (!81)
This makes SPT mimic live in how scav encyclopedia is handled

Co-authored-by: DrakiaXYZ <565558+TheDgtl@users.noreply.github.com>
Reviewed-on: SPT-AKI/Modules#81
Co-authored-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
Co-committed-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
2024-02-15 08:55:41 +00:00
Kaeno
6f78f23cde Make culists use original function when picking enemies so Cultist amulet from lightkeeper works 2024-02-13 19:15:54 +00:00
Dev
4f0dad24e7 Fixed incorrect traitor scav check 2024-02-13 12:49:02 +00:00
Kaeno
0564961c72 Make sure we are not trying to add ourselfs to our own enemy list. 2024-02-12 17:08:48 +00:00
Kaeno
42ec75f2eb Fix insurance screen not showing. 2024-02-12 14:21:41 +00:00
Kaeno
22b6bcb4f5 Fix for scavs not going straight into raid when pressing ready 2024-02-12 13:58:08 +00:00
9c9a9bc931 Merge branch '3.8.0' of https://dev.sp-tarkov.com/SPT-AKI/Modules into 3.8.0 2024-02-12 13:34:13 +00:00
CWX
55586c7828 Profile is now on its own interface, added new interfaceType to patchConstants and fixed the two scav patches (!80)
PR to fix transpiler patches, GInterface144 that was originally targeted no longer has get_Profile and has moved to GInterface146, so added patchconstants for it and fixed patches,
get_ProfileOfPet has also moved there.

Tested on both PMC and scav getting into raid, works fine, error was originally coming up on game start

Co-authored-by: CWXDEV <CWXDEV@outlook.com>
Reviewed-on: SPT-AKI/Modules#80
Co-authored-by: CWX <cwx@noreply.dev.sp-tarkov.com>
Co-committed-by: CWX <cwx@noreply.dev.sp-tarkov.com>
2024-02-12 13:31:09 +00:00
a3684c8663 Profile is now on its own interface, added new interfaceType to patchConstants and fixed the two scav patches 2024-02-12 13:15:22 +00:00
Kaeno
c340023378 Some more fixes preventing scav raids from working also btr fix 2024-02-12 12:01:27 +00:00
Dev
87d9688ab2 Update class refs for new patch 2024-02-12 11:33:06 +00:00
Dev
e3abb5fe04 dll for 28744 2024-02-12 11:10:49 +00:00
d08754fb61 Work towards implementing LK services (!79)
- Move clearing trader service data to raid end instead of as part of BTR Manager
- Fix data type for TraderServices ItemsToPay property
- Add ItemsToReceive property to TraderServices (Used for LK amulet)
- Don't throw NRE when nothing is bound to OnTraderServicePurchased

Co-authored-by: DrakiaXYZ <565558+TheDgtl@users.noreply.github.com>
Reviewed-on: SPT-AKI/Modules#79
Co-authored-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
Co-committed-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
2024-02-12 09:22:45 +00:00
Dev
5622e05b13 Add drugs to non-FiR pocket list 2024-02-11 11:56:19 +00:00
Dev
663c5b1460 Small optimisation to PmcFoundInRaidEquipment 2024-02-11 11:47:44 +00:00
Dev
e5c47ab5e9 Don't add FiR to injectors in PMC pockets 2024-02-11 11:16:44 +00:00
Dev
761d6c339d Add patch to make some player scavs hostile to player
Refactored AIHelpers.BotIsPlayerScav to not require a BotOwner object
2024-02-11 10:33:59 +00:00
Kaeno
96f107f1d2 Adds the ability to see items required by pmc quests as a scav like live on Found in Raid Items 2024-02-10 18:07:45 +00:00
3853a413f6 Fix quest counters triggering while ending the HideoutGame (!78)
When exiting the hideout, the HideoutPlayer class ends up triggering a call in Player that calculates quest counter changes. This causes issues with quests that require not dying

The Player class however wraps these calls in a null check on the QuestController, so we can set it to null before ending the hideout session, and restore it afterwards to skip quest counter calculations

As Hideout Game end only triggers on start of a new raid, and not when you actually close the hideout, I can't think of any reason that quest counters should trigger in this scenario

Resolves: SPT-AKI/Issues#471

Co-authored-by: DrakiaXYZ <565558+TheDgtl@users.noreply.github.com>
Reviewed-on: SPT-AKI/Modules#78
Co-authored-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
Co-committed-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
2024-02-10 08:31:18 +00:00
2e11148618 Fix the server sell all price not matching the client displayed value (!77)
- Add a patch that's triggered when the item list for the scav post-raid screen is populated that stores the calculated item value
- Add a second patch that's triggered when the player confirms a Sell All, that uses a custom request object that contains the previously calculated sell price

I made these patches not directly depend on any GClass/Class names to avoid having to update them with new client versions, this did make the code a bit harder to follow, but I think it's still readable.

Requires server PR: SPT-AKI/Server#216
Resolves: SPT-AKI/Issues#410

Co-authored-by: DrakiaXYZ <565558+TheDgtl@users.noreply.github.com>
Reviewed-on: SPT-AKI/Modules#77
Co-authored-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
Co-committed-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
2024-02-08 09:11:22 +00:00
dc4aee0e6b Refactor ValidationUtil functionality (!76)
**Description**
As of right now `ValidationUtil.cs` does not perform it's intended function, and the callers of it are not properly using the result.
Removed the redundant calls and implemented `GameValidationPatch.cs` to properly implement this behavior.

If the check fails;
1. All interface elements are disabled.
2. Notification popup is sent.
3. Logs are sent to the `Console`, `Server` and `BepInEx`.

**Related**
Closes: SPT-AKI/Issues#435

**Showcase**
https://streamable.com/2ra4sa

Co-authored-by: Deadly <info.saddiki@gmail.com>
Reviewed-on: SPT-AKI/Modules#76
Co-authored-by: Deadly Alden <deadly@noreply.dev.sp-tarkov.com>
Co-committed-by: Deadly Alden <deadly@noreply.dev.sp-tarkov.com>
2024-02-08 09:10:34 +00:00
Dev
0a1115d0d6 Fix medkits being FiR inside PMC pockets
FIx weapons inside PMC backpacks having FiR mods
Fix PMC armors having FiR plates/soft inserts
Fix PMC headwear having FiR soft inserts
2024-02-05 10:16:52 +00:00
Kaeno
2ebabeffc9 Made Player invincible while in BTR so Border snipers dont kill you while being protected by the BTR 2024-02-05 06:42:59 +00:00
a69eaabe35 Improved client mod whitelisting feature (!75)
* Turns out the Chainloader can be accessed from outside a BepInPlugin. Whoops
* A user-friendly error will be displayed before the game exits so that it's clear as to what's going wrong. Should prevent reports of crashing on game load now

Co-authored-by: Terkoiz <terkoiz@spt.dev>
Reviewed-on: SPT-AKI/Modules#75
Co-authored-by: Terkoiz <terkoiz@noreply.dev.sp-tarkov.com>
Co-committed-by: Terkoiz <terkoiz@noreply.dev.sp-tarkov.com>
2024-02-02 13:59:10 +00:00
9f158b6db3 Preparing for public BE release - temporarily preventing client mod loading (!74)
Co-authored-by: Terkoiz <terkoiz@spt.dev>
Reviewed-on: SPT-AKI/Modules#74
Co-authored-by: Terkoiz <terkoiz@noreply.dev.sp-tarkov.com>
Co-committed-by: Terkoiz <terkoiz@noreply.dev.sp-tarkov.com>
2024-02-01 16:43:18 +00:00