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

426 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
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
Dev
2faf204d77 Revert "Removed unused patches:"
This reverts commit cc674f5d4816e98d4b84d52f364cb867bfa30def.
3.9.5
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
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
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
2a2b81bc4a change route to lowercase (!150)
Reviewed-on: SPT/Modules#150
2024-07-12 16:21:03 +00:00
CWX
775bad05ab added comment on patch 2024-07-11 21:18:01 +01:00
CWX
9b1aafeeb7 remove unused param 2024-07-11 21:11:14 +01:00
CWX
5bad769a44 mid raid achievement patch no longer needed as we assign our own, added patch to fix achievements 2024-07-11 21:09:38 +01: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
3.9.0
2024-07-05 16:46:11 +00:00
6a490d0528 Renamed Variables to hopefully improve reading. Check role instead of side to tell if they are PMCs. (!145)
Renamed a few things to make it easier to read. Use role instead of side to know if they are pmcs. Cant test since one of patches fail due to remapping should be ok

Reviewed-on: SPT/Modules#145
Co-authored-by: Kaeno <kaeno@noreply.dev.sp-tarkov.com>
Co-committed-by: Kaeno <kaeno@noreply.dev.sp-tarkov.com>
2024-07-05 07:42:11 +00:00
b4b191d6b7 Adjust FenceRep for killing aggressive PMCs separately instead of using BSG's Method. (!144)
Reviewed-on: SPT/Modules#144
2024-07-04 14:25:04 +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
9a7b415310 Updated mappings 2024-06-22 12:42:39 +01:00
Dev
b3aa9599dc Remapped MovementContextClass to HardwareDescriptionClass 2024-06-21 19:31:02 +01: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
Dev
ebc675b5f9 30626 2024-06-17 19:25:25 +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
b32073d7e6 Updated mappings 2024-06-14 12:19:15 +01:00
Dev
a29ae65f91 Added additional remappings 2024-06-13 23:33:56 +01:00
Dev
6c9bd09de0 Updated module patches to allow project to build 2024-06-13 14:25:36 +01:00
Dev
b8bd7f5973 30547 2024-06-13 14:07:56 +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
bbbcb6b80c Updated map data extractor patches to save into the same file + have consistent naming systems 2024-06-12 09:59:22 +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