How samuelsbenghe/homingglobalprojectile works
This small tModLoader mod adds per-projectile homing behavior through a GlobalProjectile AI override. For eligible player-owned projectiles, it waits briefly, finds the nearest visible chaseable NPC within range, then turns the projectile toward it while preserving speed. The only runtime implementation is shown; the repository provides no README description or evidence of additional runtime subsystems.
Main entry points: HomingGlobalProjectile.cs Projectile AI Hook
Components 4
Projectile Homing
- Projectile AI Hook
HomingGlobalProjectile.cs
Other components
- Local Player
- Chaseable NPCs
- Line-of-Sight Check
Connections 4
- Local Player → Projectile AI Hook: owns eligibility
HomingGlobalProjectile.cs - Projectile AI Hook → Chaseable NPCs: scans targets
HomingGlobalProjectile.cs - Projectile AI Hook → Line-of-Sight Check: checks visibility
HomingGlobalProjectile.cs - Chaseable NPCs → Projectile AI Hook: guides turning
HomingGlobalProjectile.cs