0
0
mirror of https://github.com/sp-tarkov/modules.git synced 2025-02-12 17:10:44 -05:00

578 Commits

Author SHA1 Message Date
Dev
c2f66c6660 Updated IsEnemy patch note 2024-08-22 09:24:56 +01:00
Dev
1154611e88 Removed unnecessary LabsKeycardRemovalPatch patch, client now performs this natively 2024-08-22 09:22:42 +01:00
fd52b7386a Fixed recursion when using GetData syncronously (!161)
Running [SPT.Common.Http.RequestHandler.GetData()](af1a83fe71/project/SPT.Common/Http/RequestHandler.cs (L78)) would run indefinitely because of an accidental recursion.

Reviewed-on: SPT/Modules#161
Co-authored-by: Kaiden <kaiden@pm.me>
Co-committed-by: Kaiden <kaiden@pm.me>
(cherry picked from commit ab9d9c0e1386e3bf624afe926131c53f67e386aa)
2024-08-22 09:16:11 +01:00
ab9d9c0e13 Fixed recursion when using GetData syncronously (!161)
Running [SPT.Common.Http.RequestHandler.GetData()](af1a83fe71/project/SPT.Common/Http/RequestHandler.cs (L78)) would run indefinitely because of an accidental recursion.

Reviewed-on: SPT/Modules#161
Co-authored-by: Kaiden <kaiden@pm.me>
Co-committed-by: Kaiden <kaiden@pm.me>
2024-08-22 08:11:58 +00:00
Dev
6320c396da Updated to 32160 2024-08-21 19:10:12 +01:00
CWX
374947c18a Merge branch '310-dev' of https://dev.sp-tarkov.com/SPT-AKI/Modules into 310-dev 2024-08-21 12:51:50 +01:00
CWX
a1fb3350b4 added latest langversion in csprojs and formatting 2024-08-21 12:51:46 +01:00
Dev
b98778784d Updated mappings 2024-08-21 09:55:00 +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
Dev
85da3e405d updated mappings 2024-08-20 20:19:58 +01:00
Dev
9f18cfd6d8 Updated mappings 2024-08-20 19:25:18 +01:00
Dev
083e34bdde Updated hollowed dll 2024-08-20 19:12:00 +01:00
Kaeno
853a74a449 Patch updates 2024-08-20 19:00:11 +01:00
Dev
044952e19f Updated mappings 2024-08-20 18:56:28 +01:00
Dev
e332fa863a Updated hollowed dll 2024-08-20 16:41:38 +01:00
939c85bc7c Rename ShouldReaquire & check if bundle exists (!160)
I didn't keep in mind that 'ShouldReaquire' handles both the initial check for acquiring of a file and also the re-acquiring of it, I've renamed the method here to be more accurate in this behavior so that hopefully it prevents this from happening again in the future.

Also fixes the issue of an exception being thrown when checking if the bundle exists or not.

Thanks to MadByte for finding this issue

Reviewed-on: SPT/Modules#160
Co-authored-by: Archangel <jesse@archangel.wtf>
Co-committed-by: Archangel <jesse@archangel.wtf>
2024-08-18 15:49:22 +00:00
f235ee21b7 LighthouseProgressionClass Improvements (!159)
* Bug fix for getting negative Lightkeeper rep and disabling your transmitter only when killing Zryachiy, not his followers
* Revised the class to support multiple players having access to the island, not only the main player
* Added support for having multiple Lightkeeper-friendly PMC's on the island (currently requires mod support). Killing one of them while on the island will also result in getting reduced Lightkeeper rep and disabling your transmitter.
* Separated location changes into discrete methods and made them public so mods can call them individually
* Added static property that determines if the main player's transmitter status should open the island for everyone on the map. Also added property indicating if the island has been opened for everyone. This allows mods to override SPT's behavior and not have the island opened to everyone if the main player has access.
* Rewrote the class so that the cyclic `Update()` method is no longer needed

Co-authored-by: chomp <chomp@noreply.dev.sp-tarkov.com>
Reviewed-on: SPT/Modules#159
Co-authored-by: dwesterwick <dwesterwick@yahoo.com>
Co-committed-by: dwesterwick <dwesterwick@yahoo.com>
2024-08-17 07:43:42 +00:00
f8eb2374cb IsEnemyPatch Improvements (Part 3) (!158)
Added null check to new `ContainsPlayer` helper method from !157

Reviewed-on: SPT/Modules#158
Co-authored-by: dwesterwick <dwesterwick@yahoo.com>
Co-committed-by: dwesterwick <dwesterwick@yahoo.com>
2024-08-17 07:05:43 +00:00
ebac61e0a4 IsEnemyPatch Improvements (Part 2) (!157)
Made the following changes to !156:
* Replaced `IsNullOrEmpty()` EFT checks with basic null checks
* Replaced `Any()` with new helper method to check if bots exist in collections

Reviewed-on: SPT/Modules#157
Co-authored-by: dwesterwick <dwesterwick@yahoo.com>
Co-committed-by: dwesterwick <dwesterwick@yahoo.com>
2024-08-16 17:35:35 +00:00
af96c37815 IsEnemyPatch Improvements (!156)
Revised `IsEnemyPatch` with the following changes:
* Added a check to see if the player is in the group's `Allies` collection (needed for mod support)
* Added a check to see if the player is in the group (possibly needed for future mod support)
* Fixed Zryachiy check (and added his followers) by allowing the EFT method to run for them
* Refactoring for clarity and to reorder the checks based on priority:
    1) Null check(s)
    2) Check if the player is in the group or in its `Allies` or `Enemies` collections
    3) Allow the EFT method to run for certain bot roles
    4) Finally, add the player to the group's `Enemies` collection if needed

**This is a big change, so please double-check my work!** I tested this in multiple raids, in several maps, with and without SAIN, and I didn't find any issues.

Reviewed-on: SPT/Modules#156
Co-authored-by: DanW <danw@noreply.dev.sp-tarkov.com>
Co-committed-by: DanW <danw@noreply.dev.sp-tarkov.com>
2024-08-15 08:45:47 +00:00
267d807aa7 Remove bundle before re-acquiring (!155)
Currently, the system knows which bundles are incorrect and attempts to re-download the correct ones.. However, upon next re-launch those bundles will again be invalid probably due to it not actually writing to them forcing the system to keep re-downloading.

This fixes it by removing the invalid bundle, then re-downloading the proper one.

Reviewed-on: SPT/Modules#155
Co-authored-by: Archangel <jesse@archangel.wtf>
Co-committed-by: Archangel <jesse@archangel.wtf>
(cherry picked from commit 471c191bbb4daea7d8b56956eae67a29861781b4)
2024-08-14 09:28:41 +01:00
471c191bbb Remove bundle before re-acquiring (!155)
Currently, the system knows which bundles are incorrect and attempts to re-download the correct ones.. However, upon next re-launch those bundles will again be invalid probably due to it not actually writing to them forcing the system to keep re-downloading.

This fixes it by removing the invalid bundle, then re-downloading the proper one.

Reviewed-on: SPT/Modules#155
Co-authored-by: Archangel <jesse@archangel.wtf>
Co-committed-by: Archangel <jesse@archangel.wtf>
2024-08-14 08:25:59 +00:00
9357555280 Fix for DogtagPatch NRE when Weapon Name is Null (!154)
Added null check for `damageInfo.Weapon.Name` in `DogtagPatch::UpdateDogtagItemWithDeathDetails` because it can be null in rare cases. I see this happen when Zryachiy or his followers kill a bot, and I'm not sure why. This will prevent an exception from being thrown and the bot becoming "broken".

Reviewed-on: SPT/Modules#154
Co-authored-by: dwesterwick <dwesterwick@yahoo.com>
Co-committed-by: dwesterwick <dwesterwick@yahoo.com>
2024-08-10 08:09:26 +00:00
CWX
363d9804a1 removed unused patch 2024-08-02 18:01:43 +01:00
CWX
99184be313 PMC's now heal fine by themselves, removing patch 2024-08-02 17:40:56 +01:00
Dev
2faf204d77 Revert "Removed unused patches:"
This reverts commit cc674f5d4816e98d4b84d52f364cb867bfa30def.
2024-08-02 17:25:50 +01:00
CWX
a39cd0a7b0 added CJ's debug tool to allowed list, disabled another patch for testing, dnspy looks like BSG do what we did 2024-08-02 17:14:05 +01:00
CWX
0986ebac2d Refactored patches to be public so people can disable if needed 2024-08-02 16:57:59 +01:00
CWX
e3bc4e3210 removed more un-needed patches 2024-08-02 16:44:14 +01:00
Dev
cc674f5d48 Removed unused patches:
BotOwnerDisposePatch
BotEnemyTargetPatch
BotCalledDataTryCallPatch
BotSelfEnemyPatch
AddEnemyToAllGroupsInBotZonePatch
2024-08-02 16:03:17 +01:00
CWX
c234e0d1d6 Remove patches that are now covered by BSG 2024-08-02 15:01:44 +01:00
Dev
42060f027d Removed unnecessary patch BotCallForHelpCallBotPatch
Removed unnecessary null check
2024-08-02 14:59:14 +01:00
Dev
5131a6ff68 Removed LocationLootCacheBustingPatch, targeted method is no longer used and loot is no longer cached on the client 2024-08-02 08:51:07 +01:00
Lacyway
920d73209c Update AddEnemyToAllGroupsInBotZonePatch to latest code (!153)
Was missing checks that now exist in the client, works as intended now from my testing. Please test and confirm as well.
**Note**: I strongly believe that this patch is now redundant and can be removed, I am still testing to see if this is the case.

Co-authored-by: Lacyway <20912169+Lacyway@users.noreply.github.com>
Reviewed-on: SPT/Modules#153
Co-authored-by: Lacyway <lacyway@noreply.dev.sp-tarkov.com>
Co-committed-by: Lacyway <lacyway@noreply.dev.sp-tarkov.com>
(cherry picked from commit de7e762211aa6a9fe26fc80eb449f85db6464117)
2024-08-01 22:13:38 +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
9b86d8624a Fix Grenade fuses being longer than they should be 2024-08-01 21:27:35 +01:00
Lacyway
de7e762211 Update AddEnemyToAllGroupsInBotZonePatch to latest code (!153)
Was missing checks that now exist in the client, works as intended now from my testing. Please test and confirm as well.
**Note**: I strongly believe that this patch is now redundant and can be removed, I am still testing to see if this is the case.

Co-authored-by: Lacyway <20912169+Lacyway@users.noreply.github.com>
Reviewed-on: SPT/Modules#153
Co-authored-by: Lacyway <lacyway@noreply.dev.sp-tarkov.com>
Co-committed-by: Lacyway <lacyway@noreply.dev.sp-tarkov.com>
2024-08-01 20:15:50 +00:00
104cb02b58 Fix Grenades not exploding. Fuse time is really long for some reason thanks bsg :) 2024-08-01 21:13:43 +01:00
Dev
5d2237092b Updated some classes to be public 2024-08-01 21:01:25 +01:00
Dev
73e8ef2cee Disabled 2 redundant patches 2024-08-01 20:58:54 +01:00
Lacyway
f08011788c Make patches public (!152)
Some patches are `internal` that should be `public` so that mods can disable them when altering AI.

Co-authored-by: Lacyway <20912169+Lacyway@users.noreply.github.com>
Reviewed-on: SPT/Modules#152
Co-authored-by: Lacyway <lacyway@noreply.dev.sp-tarkov.com>
Co-committed-by: Lacyway <lacyway@noreply.dev.sp-tarkov.com>
2024-08-01 19:50:59 +00:00
8e29dec47a Allow Scavs to enter raids and Raid setting should save correct now prayge 2024-08-01 20:29:07 +01:00
Dev
edfe0451ac Removed redundant code from patch 2024-08-01 17:41:55 +01:00
Dev
c2839ed54b Renamed patch 2024-08-01 17:36:01 +01:00
Dev
580e697905 Renamed Patch 2024-08-01 17:33:29 +01:00
Dev
6753d53582 Rename patch from ` to RedirectClientImageRequestsPatch` 2024-08-01 17:31:50 +01:00
Dev
6e1a7be58c Disabled SmokeGrenadeFuseSoundFixPatch patch 2024-08-01 17:22:47 +01:00