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

40 Commits

Author SHA1 Message Date
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
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
Dev
2faf204d77 Revert "Removed unused patches:"
This reverts commit cc674f5d4816e98d4b84d52f364cb867bfa30def.
2024-08-02 17:25:50 +01:00
Dev
cc674f5d48 Removed unused patches:
BotOwnerDisposePatch
BotEnemyTargetPatch
BotCalledDataTryCallPatch
BotSelfEnemyPatch
AddEnemyToAllGroupsInBotZonePatch
2024-08-02 16:03:17 +01:00
Dev
42060f027d Removed unnecessary patch BotCallForHelpCallBotPatch
Removed unnecessary null check
2024-08-02 14:59:14 +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
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
Dev
c93887a7b2 Improved method comment
(cherry picked from commit f1b142ad4937374d24af92a635913c831c37fed6)
2024-07-30 10:26:57 +01:00
2a2b81bc4a change route to lowercase (!150)
Reviewed-on: SPT/Modules#150
2024-07-12 16:21:03 +00:00
Lacyway
34e84ff737 Update BundleUtils (!148)
- Fixes problems with `GUI.skin`
- More efficient code

No longer breaks other IMGUI elements from my testing as the `GUIStyle` is isolated. Please test with SAIN and other possible mods.

Co-authored-by: Lacyway <20912169+Lacyway@users.noreply.github.com>
Reviewed-on: SPT/Modules#148
Co-authored-by: Lacyway <lacyway@noreply.dev.sp-tarkov.com>
Co-committed-by: Lacyway <lacyway@noreply.dev.sp-tarkov.com>
2024-07-08 11:35:20 +00:00
a3404853ff Fix Botgroups softlocking player from extracting from raid. (!147)
Reviewed-on: SPT/Modules#147
2024-07-07 09:24:33 +00:00
5eaadd1391 Changed logic in how we check if they are a boss and if they are of a allowed wildtype (!146)
Reviewed-on: SPT/Modules#146
2024-07-05 16:46:11 +00:00
ffde317c59 Feature: new-remapper (!143)
Co-authored-by: Dev <dev@dev.sp-tarkov.com>
Reviewed-on: SPT/Modules#143
2024-07-04 14:11:11 +00:00
f10742586c Fixed BTR twerking on steep slopes (!142)
In the end, Kaeno's fix by changing the main client collider's layer to `HighPolyCollider` is the only way I could fix it.

Also made changes to avoid unnecessary physics collisions between other BTR colliders; these physics collisions can cause FPS drops especially for lower end PCs so this should provide a slight performance gain for them.

I left in the commented-out collision debugger script I made to log collisions in case it's useful for future debugging purposes.

Reviewed-on: SPT/Modules#142
Co-authored-by: Nympfonic <arys.steam@gmail.com>
Co-committed-by: Nympfonic <arys.steam@gmail.com>
2024-07-04 11:29:13 +00:00
Dev
cd190061cf Improved ragdoll patch to only apply changes when vectors y and magnitude values match + y is over 5 - Appears to stop altering non-flying bot bots 2024-06-28 11:12:51 +01:00
Dev
da0da8b0ab Added assaultGroup check to isBoss code inside CustomAiPatch 2024-06-27 15:18:44 +01:00
a5f8ee494e Added ability to convert assault scavs to bosses (!141)
Co-authored-by: Kaeno <kaeno@noreply.dev.sp-tarkov.com>
Co-authored-by: Dev <dev@dev.sp-tarkov.com>
Reviewed-on: SPT/Modules#141
2024-06-27 14:09:36 +00:00
Dev
b5271e88fa Extracted CreateRectangle() from OnGUI() 2024-06-18 20:24:37 +01:00
Dev
ddfd5c36a5 Adjusted window draw logic 2024-06-18 20:19:31 +01:00
Dev
ce9ca17948 Added private = false tags 2024-06-18 20:14:59 +01:00
Lacyway
d9747c16cc Add GUI Component to Bundle Loading (!140)
This gives users feedback that the game is currently loading bundles, which prevents confusion when a large amount of them are being loaded and the game is "seemingly" infinitely loading.
The implementation is very bare bones, feel free to modify it to your liking if you want it to use a more fancy user interface. I went for clarity (black background, white text). With the standard `OnGUI` skin it's very hard to discern the text.
Tested on 1440p and 1080p.

![image](/attachments/31a818d6-d101-4e5d-a2c5-541c8b48ba71)

Co-authored-by: Lacyway <20912169+Lacyway@users.noreply.github.com>
Reviewed-on: SPT/Modules#140
Co-authored-by: Lacyway <lacyway@noreply.dev.sp-tarkov.com>
Co-committed-by: Lacyway <lacyway@noreply.dev.sp-tarkov.com>
2024-06-18 19:03:36 +00:00
Dev
7cf8a0c057 Updated FixBrokenSpawnOnSandboxPatch to account for sandbox_high map 2024-06-18 15:31:28 +01:00
8f8c56d528 Fixed BTR doing a wheelie in Woods (!139)
I've done testing to ensure the player can't phase through the BTR as well.
Have not tested anything else besides that.

Reviewed-on: SPT/Modules#139
Co-authored-by: Nympfonic <arys.steam@gmail.com>
Co-committed-by: Nympfonic <arys.steam@gmail.com>
2024-06-16 08:35:24 +00:00
5b5d498102 Replace hard coded method name in BetaLogoPatch (!138)
No more having to update the method name

Co-authored-by: DrakiaXYZ <565558+TheDgtl@users.noreply.github.com>
Reviewed-on: SPT/Modules#138
Co-authored-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
Co-committed-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
2024-06-15 15:59:09 +00:00
Dev
6179c6b308 Fixed patch not targeting correct method 2024-06-14 19:31:07 +01:00
Dev
6c9bd09de0 Updated module patches to allow project to build 2024-06-13 14:25:36 +01:00
Dev
862ab7dba4 Revert BTR collider change as it allows players to ghost through vehicle 2024-06-13 13:53:39 +01:00
Dev
f0034ecc37 Updated BetaLogoPatch to use correct class ref 2024-06-10 17:21:35 +01:00
6897879c69 30473 (!137)
Co-authored-by: Dev <dev@dev.sp-tarkov.com>
Co-authored-by: Kaeno <kaeno@noreply.dev.sp-tarkov.com>
Reviewed-on: SPT/Modules#137
2024-06-07 18:25:19 +00:00
b6aeea95a2 Migrate PMCs (sptBear/sptUsec) To Bsg Types (pmcBEAR/pmcUSEC) (!135)
Co-authored-by: Dev <dev@dev.sp-tarkov.com>
Co-authored-by: Kaeno <kaeno@noreply.dev.sp-tarkov.com>
Reviewed-on: SPT/Modules#135
2024-06-06 16:59:53 +00:00
cb5751c86f Fix BTR wheeling and rename method (!136)
BTR still needs a proper looking into. But this will work for the moment

Reviewed-on: SPT/Modules#136
2024-06-06 13:33:26 +00:00
CWX
09d125802a fix pathing to not use uri 2024-06-05 09:11:34 +01:00
CWX
03f6fc2f4a Prepatch added to change path for iconcache, add patch to move trader imgs and quest imgs (!133)
this aims to seperate Client generated icons/quest images/trader images

looking to split prepatcher stuff into their own sections, as it looks and reads as one whole mess

Reviewed-on: SPT/Modules#133
Co-authored-by: CWX <cwx@noreply.dev.sp-tarkov.com>
Co-committed-by: CWX <cwx@noreply.dev.sp-tarkov.com>
2024-05-30 19:58:54 +00:00
Dev
d452c24c9b 30150 2024-05-23 17:23:39 +01:00
6ae825ee6a QuestitemInsurance (!131)
Add a patch to track when we place items at quest locations for use in insurance.

Reviewed-on: SPT/Modules#131
Co-authored-by: Kaeno <kaeno@noreply.dev.sp-tarkov.com>
Co-committed-by: Kaeno <kaeno@noreply.dev.sp-tarkov.com>
2024-05-22 19:57:31 +00:00
c59aacf3ee Fix BTR Paid service Erroring when choosing a location to drive to. Remove unused Player from Ammo patch. Reworked Getting Component of a gameobject in DisablePvePatch (!129)
Fixes :)
Reviewed-on: SPT/Modules#129
2024-05-21 20:00:01 +00:00
Dev
4a452876ff Fixed incorrect DisablePvEPatch tooltip text 2024-05-21 20:18:09 +01:00
CWX
cc1d222a98 rebranding part3 2024-05-21 19:18:57 +01:00
CWX
866ff1095c Rebranding 2024-05-21 19:10:17 +01:00