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

666 Commits

Author SHA1 Message Date
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.
3.9.5
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
cec8028645 Disable Patches for now 2024-08-01 17:21:44 +01:00
Dev
c93887a7b2 Improved method comment
(cherry picked from commit f1b142ad4937374d24af92a635913c831c37fed6)
2024-07-30 10:26:57 +01:00
Dev
f1b142ad49 Improved method comment 2024-07-30 10:26:40 +01:00
Cj
c0721317e4 Fix duplicate logging (!151)
Fixes a duplicate set of logging requests sent to the server for no reason.

Co-authored-by: Cj <161484149+CJ-SPT@users.noreply.github.com>
Reviewed-on: SPT/Modules#151
Co-authored-by: Cj <cj@noreply.dev.sp-tarkov.com>
Co-committed-by: Cj <cj@noreply.dev.sp-tarkov.com>
3.9.4
2024-07-25 21:58:35 +00:00
Dev
e9f89801f2 Cache bust 3.9.3 2024-07-19 13:51:00 +01:00
Dev
fe9b81c19c Cache bust 2024-07-19 13:50:29 +01:00
Dev
eb68c400aa Updated mappings for 31124 2024-07-17 15:53:25 +01:00
Dev
e07b94bc0f 31124 2024-07-17 15:45:37 +01:00
Dev
fbe5af61f3 Cache bust 3.9.2 2024-07-15 19:27:54 +01:00
Dev
b4e9242999 Update readme 3.9.1 2024-07-13 18:36:58 +01:00
cf72610f68 change route to lowercase (!150)
Reviewed-on: SPT/Modules#150
(cherry picked from commit 2a2b81bc4a7304d4fd0ffe71701df229be9b534b)
2024-07-13 09:25:28 +01:00
2a2b81bc4a change route to lowercase (!150)
Reviewed-on: SPT/Modules#150
2024-07-12 16:21:03 +00: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
f8ce8129e6 Fix namespaces based on their current file location 2024-07-12 15:20:47 +01:00
CWX
946ae3655f remove unneeded models and patches we no longer use 2024-07-12 15:20:19 +01:00
CWX
67cafd4ded add comment to IL patch to clarify what it does 2024-07-12 14:56:10 +01:00
CWX
f8fc319007 commented out some patches for testing 2024-07-12 14:49:39 +01:00
CWX
cef94b5c40 scavprofileloadpatch reworked tobe prefix instead of IL 2024-07-12 14:49:25 +01:00