feat: API 4, factions, escort, allies, tether, turrets, kit extras and PVE (stage 5) #8
Reference in New Issue
Block a user
No description provided.
Delete Branch "feat/stage-5"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Stage 5's behaviour (docs
runicnpc/PLAN.mdstage 5, D253–D272), API 4. One of the stage's PRs, walked once end to end (D253): this one, Rust-Plugins, Module-Rust, and docs.guardrole;faction,relations(its own exceptions),alertRadius(40),turrets,hurtByPlayers,hurtsPlayers,kitUse. With none set it fights players only (D255)profiles.json, one row per pair, both ways (D268).RunicNpc_Factions/RunicNpc_SetFactions;rnpc.factionon a standalone serverHorrorfor the length of its own shot only. Shoots back at whoever shot it (D268); allies within the alert radius join in (D256)RunicNpc_Ally: clan, team, or a player and their team. Never targeted, and defended with what they own (D257)RunicNpc_Escort,/rnpc follow. An order; walks home when the charge is gone, raisingOnRunicNpcEscortEnded(D269)RunicNpc_Tether, a placement'stether,tether=(D272)ignoreviaCanBeTargeted;alwaysvia a Harmony patch onNPCAutoTurret.Ignore/IsEntityHostile, for ouralwaysNPCs only (D267)CanEntityTakeDamageanswered both ways; the two checkboxes enforced by RunicNPC itself (D261, D271)Your condition on D267 held in every run, on both frameworks: the map's own sentries (85–94, sampled four times a second) never targeted a stock scientist or bandit guard; the
alwaysNPC was targeted and killed, and adefaultone beside it was left alone.Three things the rigs found and this fixes: Rust's
CanSeeTargetis no line of sight for an NPC target (unbounded rays; our fight uses a bounded linecast); an escort never let go of a destroyed charge (Unity's==); rockets could not fire at NPCs.Tested
tools/RunicNpcTest.cs0.5.0,rnt.run s5(52 checks): 52/52 on Oxide and on Carbon.rnt.run all(stages 2–5): 206/207 on each, the one failure the escort test's layout, since fixed. Stages 2–4 unchanged.node scripts/checkPlugin.jsand its tests pass. Walked on the site with the bridge and Module-Rust (docs PR). The harness is removed from both rigs.Checklist
Claude Code (Claude Opus 5.5). The commits carry theCo-Authored-Bytrailer.🤖 Generated with Claude Code
https://claude.ai/code/session_01E14m6SuuY6i1vASFeGDBeY