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

647 Commits

Author SHA1 Message Date
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
eb443aaa5e Fixed BTR movement speed being tied to a static framerate (!73)
By multiplying `moveSpeed` by `Time.deltaTime` in `BTRVehicle.Update()`, it prevents the BTR movement from desyncing, and possibly going faster or slower than expected.

Reviewed-on: SPT-AKI/Modules#73
Co-authored-by: Arys <arys@noreply.dev.sp-tarkov.com>
Co-committed-by: Arys <arys@noreply.dev.sp-tarkov.com>
2024-01-30 09:37:33 +00:00
53363d5a25 Removed red debug sphere from BTR (!72)
Reviewed-on: SPT-AKI/Modules#72
Co-authored-by: Arys <arys@noreply.dev.sp-tarkov.com>
Co-committed-by: Arys <arys@noreply.dev.sp-tarkov.com>
2024-01-29 20:53:22 +00:00
c01bd92c78 Fix BTR when NVidia Reflex is enabled (!71)
- Before `Application.targetFrameRate` is used in the BTR code, set it to 60. Then set it back afterwards
- Remove an unnecessary error from BTRExtractPassengersPatch, not actually an error state

All credit goes to Ngst for figuring out that NVidia Reflex was causing the BTR issues

Co-authored-by: DrakiaXYZ <565558+TheDgtl@users.noreply.github.com>
Reviewed-on: SPT-AKI/Modules#71
Co-authored-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
Co-committed-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
2024-01-29 19:08:38 +00:00
2d2b4fb78f Removed unnecessary BTR patch (!70)
Reviewed-on: SPT-AKI/Modules#70
Co-authored-by: Arys <arys@noreply.dev.sp-tarkov.com>
Co-committed-by: Arys <arys@noreply.dev.sp-tarkov.com>
2024-01-29 18:08:45 +00:00
Dev
f2ddc36d88 Prevent null values from being processed during bundle loading 2024-01-27 14:23:50 +00:00
a48e40b481 Delayed spawning BTR bot to GameWorld.OnGameStarted (!69)
Honestly this is just a shot in the dark hotfix. I've tested it and these changes still work fine for me.

Let me know if this fixes the BTR not working, Chomp

Reviewed-on: SPT-AKI/Modules#69
Co-authored-by: Arys <arys@noreply.dev.sp-tarkov.com>
Co-committed-by: Arys <arys@noreply.dev.sp-tarkov.com>
2024-01-27 09:05:33 +00:00
a124ace054 Fixed exception caused by BTR not being destroyed at correct time (!68)
Todo:

* Make BTR spawn at random time during raid instead of at start
* ~~Fix BTR trader services not working for subsequent raids in Streets~~ Drakia provided me with a fix and it's included in this PR

TL;DR - It's ready for testing

Co-authored-by: Nympfonic <arys.steam@gmail.com>
Reviewed-on: SPT-AKI/Modules#68
Co-authored-by: Arys <arys@noreply.dev.sp-tarkov.com>
Co-committed-by: Arys <arys@noreply.dev.sp-tarkov.com>
2024-01-26 08:28:29 +00:00
Dev
3c9bf227e0 Removed unused _playerFlaggedAsEnemyToBosses value 2024-01-25 09:43:52 +00:00
89f0db250d BTR code refactors and turret aim improvements (!67)
Todo:

* Make BTR spawn at random time during raid instead of at the start
* Find out why some players receive error relating to `BTRBotAttachPatch` resulting BTR failing to initialise

Co-authored-by: Nympfonic <arys.steam@gmail.com>
Reviewed-on: SPT-AKI/Modules#67
Co-authored-by: Arys <arys@noreply.dev.sp-tarkov.com>
Co-committed-by: Arys <arys@noreply.dev.sp-tarkov.com>
2024-01-25 08:52:33 +00:00