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

12 Commits

Author SHA1 Message Date
Dev
761d6c339d Add patch to make some player scavs hostile to player
Refactored AIHelpers.BotIsPlayerScav to not require a BotOwner object
2024-02-11 10:33:59 +00:00
337a0733ae Publicized assembly refactor (!58)
Depends on SPT-AKI/SPT-AssemblyTool#3

* Refactored Modules for better consistency and general readability, along with preparing the code for a publicized assembly
* Added `PublicDeclaredFlags` to `PatchConstants` to cover a set of commonly used flags to get methods post-publicizing
* Added a replacement to LINQ's `.Single()` - `.SingleCustom()` which has improved logging to help with debugging Module code. Replaced all `.Single()` usages where applicable
* Replaced most method info fetching with `AccessTools` for consistency and better readability, especially in places where methods were being retrieved by their name anyways

**NOTE:**
As a side effect of publicizing all properties, some property access code such as `Player.Position` will now show "ambiguous reference" errors during compile, due to there being multiple interfaces with the Property name being defined on the class. The way to get around this is to use a cast to an explicit interface
Example:
```cs
Singleton<GameWorld>.Instance.MainPlayer.Position
```
will now need to be
```cs
((IPlayer)Singleton<GameWorld>.Instance.MainPlayer).Position
```

Co-authored-by: Terkoiz <terkoiz@spt.dev>
Reviewed-on: SPT-AKI/Modules#58
Co-authored-by: Terkoiz <terkoiz@noreply.dev.sp-tarkov.com>
Co-committed-by: Terkoiz <terkoiz@noreply.dev.sp-tarkov.com>
2024-01-13 22:08:29 +00:00
Dev
2290aaf8d1 use data from server when choosing player scav brain 2023-12-03 11:16:18 +00:00
1e238c426e 0.13.5.0 (!33)
Co-authored-by: Dev <dev@dev.sp-tarkov.com>
Co-authored-by: CWX <CWX@noreply.dev.sp-tarkov.com>
Co-authored-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
Co-authored-by: RaiRaiTheRaichu <rairaitheraichu@noreply.dev.sp-tarkov.com>
Co-authored-by: CWX <cwx@noreply.dev.sp-tarkov.com>
Co-authored-by: Kaeno <e>
Reviewed-on: SPT-AKI/Modules#33
2023-10-10 10:58:33 +00:00
Dev
86d86144ba Replace console.writeline with Logger.LogError 2023-07-12 18:09:14 +01:00
Dev
099412c21e Add missing using 2023-07-12 17:52:32 +01:00
Dev
2c5a2d1c19 unified logging
removed code that breaks bot spawns
fixed dogtag error showing when player dies
2023-07-12 17:36:10 +01:00
Dev
0c125bbd10 Update logging messages 2023-07-12 17:10:00 +01:00
Dev
181f2328a5 Updated to support
One error left that prevents build: LighthouseProgressionClass.cs
2023-07-07 10:37:47 +01:00
Kaeno
71924e725d At further review we could just revert back to the old way we use to get the SptBear/SptUsec value. 2023-04-10 06:15:21 +01:00
Kaeno
fdadadffbd Fix: Changed SptBear and SptUsec's role to match efts new enums fixing Spt Bots not using custom brains 2023-04-10 04:36:22 +01:00
Dev
b3ce0ec36f Add repo 2023-03-03 18:52:31 +00:00