RoR2-ChensGradiusMod

Gradius Mod in Risk of Rain 2.

View on GitHub

ChensGradiusMod

Chen.GradiusMod.Mirroring

AttackMirror Class

Copies attacks automatically by hooking into the basic attack types of the game: bullets, projectiles, melee hitboxes and explosions.
This is how Option Seeds and Options support characters that do not have dedicated support, such as modded survivors and drones.
Only attacks that come from skills are copied. Item procs, equipment and attacks that are spawned by projectiles are ignored.

public static class AttackMirror

Inheritance System.Object 🡒 AttackMirror

Methods  
ExcludeEntityState(Type) Prevents attacks from being copied while the character is in the given state. Useful for skills that should not be duplicated,
such as skills that throw something unique.
ExcludeProjectile(GameObject) Prevents a projectile from being copied.