DefenseMatrixManager
Library that allows for mods to add entities that can block attacks on a per-team basis.
| Date uploaded | 3 weeks ago |
| Version | 1.1.0 |
| Download link | Moffein-DefenseMatrixManager-1.1.0.zip |
| Downloads | 16647 |
| Dependency string | Moffein-DefenseMatrixManager-1.1.0 |
This mod requires the following mods to function
bbepis-BepInExPack
Unified BepInEx all-in-one modding pack - plugin framework, detour library
Preferred version: 5.4.2117README
DefenseMatrixManager
Allows mods to create Defense Matrixes that can block hitscan attacks on a per-team basis.
Projectile deletion functionality is not included, and should be handled by your own custom logic.
This mod was mainly made for my own personal mods since they share this functionality.
How to Implement
-
Create a
DefenseMatrixManager.DefenseMatrixInfoinstance.- This should contain all colliders to be included.
- TeamIndex of the owner.
-
Add
DefenseMatrixInfoinstance to theDefenseMatrixManagerusingDefenseMatrixManager.AddMatrix(DefenseMatrixInfo). -
When destroying your GameObject, remove your
DefenseMatrixInfousingDefenseMatrixManager.RemoveMatrix(DefenseMatrixInfo).
If you want to automatically handle DefenseMatrix instance lifecycle, add a DefenseMatrixComponent to your prefab (requires TeamFilter), and it will automatically handle it for you.
CHANGELOG
1.1.0
- Defense Matrices now block splash damage from BlastAttacks.
- Let me know how well this works!
1.0.3
- Updated for SotS part 2.
1.0.2
- Fixed certain BulletAttacks ignoring Defense Matrices.
1.0.1
- Added case for BlastAttacks
1.0.0
- Release