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

88 Commits

Author SHA1 Message Date
Dev
3e073ad713 Updated to 33420 2024-11-02 13:40:25 +00:00
Lacyway
dd4bc93a97 Fix FixSavageInventoryScreenPatch (!173)
This fixes the logic of FixSavageInventoryScreenPatch.
NOTE:  The code below is untested and will most likely not work. It's what I theoretically believe is the right way to turn the `JObject` into a string for the server, however BSG has a `JsonWriter` in the client now that might have to be utilized? I will leave it like this until we have more info.
```c#
RequestHandler.PutJson("/raid/profile/scavsave",
				GetProfileAtEndOfRaidPatch.ProfileDescriptor.ToUnparsedData([]).JObject.ToString());
```

Co-authored-by: Lacyway <20912169+Lacyway@users.noreply.github.com>
Reviewed-on: SPT/Modules#173
Co-authored-by: Lacyway <lacyway@noreply.dev.sp-tarkov.com>
Co-committed-by: Lacyway <lacyway@noreply.dev.sp-tarkov.com>
2024-11-01 13:23:31 +00:00
Dev
c2271b0c0e Fixed post-raid json serialization error 2024-11-01 11:35:41 +00:00
Dev
22bd973bb5 Fixed various patch issues 2024-10-31 21:27:32 +00:00
Dev
39cbda1cc9 Fixed mapping 2024-10-31 20:36:29 +00:00
Dev
d788abbaa9 Fixed various bad references 2024-10-31 17:19:37 +00:00
Lacyway
d8c0abfe04 Add FirearmControllerShowIncompatibleNotificationClass (!171)
This patch aims to prevent the player from incorrectly receiving the incompatible ammo notification if an AI fails to shoot because of incompatible ammo. Tested with no errors, should probably be added and let users report whether it still occurs as it is hard to reliably reproduce.

Co-authored-by: Lacyway <20912169+Lacyway@users.noreply.github.com>
Reviewed-on: SPT/Modules#171
Co-authored-by: Lacyway <lacyway@noreply.dev.sp-tarkov.com>
Co-committed-by: Lacyway <lacyway@noreply.dev.sp-tarkov.com>
2024-10-17 16:32:40 +00:00
Lacyway
16185f64f6 Add BotOwnerManualUpdatePatch (!170)
Patch used to stop the allocation of a new `Stopwatch` every frame for all active AI which should save some resources. The data from the stopwatch is unused so I am unsure why BSG left it there.

Co-authored-by: Lacyway <20912169+Lacyway@users.noreply.github.com>
Reviewed-on: SPT/Modules#170
Co-authored-by: Lacyway <lacyway@noreply.dev.sp-tarkov.com>
Co-committed-by: Lacyway <lacyway@noreply.dev.sp-tarkov.com>
2024-10-15 15:13:14 +00:00
Dev
e2af9e8a4a Various code cleanups and warning fixes 2024-10-03 10:58:47 +01:00
Dev
d37c38b2b9 Add return comments 2024-10-03 10:28:48 +01:00
Dev
d9e5b77c46 Renamed patch to DisableWelcomeToPVEModeMessagePatch 2024-10-03 10:22:16 +01:00
Dev
73bec0777a Renamed patch and added more comments 2024-10-03 10:20:46 +01:00
Dev
69dc7e5ae2 Improved comments 2024-10-03 09:53:06 +01:00
Dev
12e884c0d8 Renamed patch to better explain its purpose 2024-10-03 09:50:15 +01:00
Dev
a79e5f17ec Fixed glcass references 2024-09-26 14:13:30 +01:00
Dev
98b5ed4442 Updated to 32678 2024-09-26 14:04:00 +01:00
Dev
54eca46c70 Reverted pmc exfils on scav patch removal 2024-09-25 19:17:10 +01:00
Dev
aa69354ab3 Disabled DisablePMCExtractsForScavsPatch 2024-09-24 13:40:34 +01:00
Lacyway
6d03395729 Fix scav exfils (!169)
`InitAllExfiltrationPoints` will instantiate the list of `ScavExfiltrationPoints` in one line before `EligiblePoints` is ran, meaning the following always returned:
```cs
            if (__instance.ScavExfiltrationPoints.Length > 0)
            {
                Logger.LogError($"ScavExfiltrationPoints has content, Do original");
                foreach (var scavExit in __instance.ScavExfiltrationPoints)
                {
                    Logger.LogError($"{scavExit.name}, {scavExit.Id}, {scavExit.Description}");
                }

                return true; // do original
            }
```

I'm not sure if the logic was different before 3.10, but removing this ensures that the patch runs as intended. Tested both PMC and Scav raids, all is fine for me. Please test on your end as well.

Co-authored-by: Lacyway <20912169+Lacyway@users.noreply.github.com>
Reviewed-on: SPT/Modules#169
Co-authored-by: Lacyway <lacyway@noreply.dev.sp-tarkov.com>
Co-committed-by: Lacyway <lacyway@noreply.dev.sp-tarkov.com>
2024-09-20 10:02:44 +00:00
Lacyway
e76ee6f2cc 310-dev (!168)
This adds a patch that enforces PMC AI to be hostile towards scavs. From my testing they were not attacking random scavs and the player because the boolean failed at the attached screenshot due to PMCs being bosses and the loyalty check. Now it checks if the initial bot type of the group was a PMC Bear or USEC and then if the player it checks for is a scav, they will be forced to be an enemy (which to me seemed natural).
![image](/attachments/4a73df0f-7030-4c61-869f-0a20ba804d8b)

I've tested this on 3 raids on customs and it seems to work fine. Feel free to edit the PR if the logic is flawed, and please test the patch thoroughly to ensure my tests were not just lucky.
Thanks!

Co-authored-by: Lacyway <20912169+Lacyway@users.noreply.github.com>
Reviewed-on: SPT/Modules#168
Co-authored-by: Lacyway <lacyway@noreply.dev.sp-tarkov.com>
Co-committed-by: Lacyway <lacyway@noreply.dev.sp-tarkov.com>
2024-09-19 16:58:47 +00:00
Dev
18708da49b Removed ScavExfilPatch due to server changes 2024-09-18 13:31:26 +01:00
Lacyway
9b57469707 Add FixLocalRaidPatch (!167)
This patch ensures that the game mode is _always_ Local and PvE if the player skips the raid settings window. This way an online `GameWorld` will not be incorrectly instantiated.
**NOTE**: This might make EnablePlayerScavPatch redundant or at least parts of it.

Co-authored-by: Lacyway <20912169+Lacyway@users.noreply.github.com>
Reviewed-on: SPT/Modules#167
Co-authored-by: Lacyway <lacyway@noreply.dev.sp-tarkov.com>
Co-committed-by: Lacyway <lacyway@noreply.dev.sp-tarkov.com>
2024-09-16 18:18:52 +00:00
Dev
4a187bef22 Small patch clean up - fixed issue with pmc spawn location patch not working as intended 2024-09-16 15:02:51 +01:00
Dev
53412fbdc4 Fixed scav raid patch + bosses spawning when unchecked 2024-09-13 18:17:13 +01:00
Dev
9b53ad0752 Added patch to fix airdrops not spawning 2024-09-03 12:36:49 +01:00
Dev
94fea58c44 Removed unnecessary patch SmokeGrenadeFuseSoundFixPatch 2024-08-31 14:04:33 +01:00
Dev
8a0f088292 32280 2024-08-29 11:41:21 +01:00
Dev
32b2136630 Disabled various patches based on client analysis 2024-08-29 10:15:58 +01:00
Dev
7b20646134 Big clean up of various resharper warnings 2024-08-28 12:52:54 +01:00
Lacyway
00a880e49c Add RemoveClothingItemExternalObtainLabelPatch (!163)
Needs to be tested, I am in the process of updating my client to the latest version. If you cannot test right now I'll do it once I am done.

Co-authored-by: Lacyway <20912169+Lacyway@users.noreply.github.com>
Reviewed-on: SPT/Modules#163
Co-authored-by: Lacyway <lacyway@noreply.dev.sp-tarkov.com>
Co-committed-by: Lacyway <lacyway@noreply.dev.sp-tarkov.com>
2024-08-24 10:35:20 +00:00
Lacyway
d4c10c4765 Rework RemoveStashUpgradeLabelPatch (!162)
The `InventoryScreen` is part of the `CommonUI` which lives throughout the lifetime of the application. It should be safe to only delete this on `Awake()` rather than use `Find()` on a transform that has a fair bit of children every time the inventory screen is opened.
![image](/attachments/937a3954-210c-4fc7-a869-75458ae19d8d)
I cannot extract on 3.10 currently so need someone to just verify that it sticks after an extract where the menu is reloaded.

Co-authored-by: Lacyway <20912169+Lacyway@users.noreply.github.com>
Reviewed-on: SPT/Modules#162
Co-authored-by: Lacyway <lacyway@noreply.dev.sp-tarkov.com>
Co-committed-by: Lacyway <lacyway@noreply.dev.sp-tarkov.com>
2024-08-24 09:12:03 +00:00
CWX
fc6124dfc8 Add patch to disable StashExpansion label and tooltip 2024-08-24 00:42:01 +01:00
Kaeno
112e378878 Update Patch class ref. 2024-08-23 17:29:01 +01:00
Dev
17b83e6446 Updated to 32197 2024-08-23 16:05:49 +01:00
Dev
1154611e88 Removed unnecessary LabsKeycardRemovalPatch patch, client now performs this natively 2024-08-22 09:22:42 +01:00
CWX
61d43585ab Update scavlatepatch, remove logging from scavprofileloadpatch 2024-08-20 21:31:32 +01:00
CWX
2c2fe26f0b fix scavProfileLoadPatch 2024-08-20 21:24:51 +01:00
Kaeno
2dfc019b21 Fix patches 2024-08-20 20:25:53 +01:00
Kaeno
853a74a449 Patch updates 2024-08-20 19:00:11 +01:00
CWX
363d9804a1 removed unused patch 2024-08-02 18:01:43 +01:00
CWX
0986ebac2d Refactored patches to be public so people can disable if needed 2024-08-02 16:57:59 +01:00
3e4fa06339 comment update 2024-08-01 22:12:00 +01:00
2eb7cb3eca Remove grenade patches 2024-08-01 22:09:28 +01:00
8e29dec47a Allow Scavs to enter raids and Raid setting should save correct now prayge 2024-08-01 20:29:07 +01:00
Dev
e07b94bc0f 31124 2024-07-17 15:45:37 +01:00
CWX
d943d2750a add saving of scav profile to end of patch 2024-07-12 16:29:50 +01:00
CWX
ccad89df05 renamed and reenabled some required patches 2024-07-12 15:59:37 +01:00
CWX
67cafd4ded add comment to IL patch to clarify what it does 2024-07-12 14:56:10 +01:00
CWX
cef94b5c40 scavprofileloadpatch reworked tobe prefix instead of IL 2024-07-12 14:49:25 +01:00
CWX
f90ca3f780 removed scav encyclopedia patch as BSG does this now, few patches moved in plugin for testing 2024-07-12 14:48:51 +01:00