feat: API 5, bosses, passive NPCs and the example profiles (stage 6)
The boss box on any role but passive (D273): a health bar for players within its distance and everyone who hurt it, redrawn in place at most four times a second (D274); phases at health fractions that change its own copy of the profile (damage, aim, speed, ranges), swap its kit, summon adds one per frame and say a line (D275); spawn and death lines to everyone, phase lines to players near it (D277, D286); adds fight on after it dies (D287). Hooks OnRunicNpcBossSpawned, _BossPhase and _BossDied. The passive role (D278, D279, D288): never fights (GetBestTarget and AttackTick refuse, since Rust's design picks targets from every sensed player), cannot be hurt unless its profile says so, moves as its profile says including the new `stand`, and answers E through OnPlayerInput with a chat line or a window. Hook OnRunicNpcUsed. The four example profiles and their kits, written into Kits' data file on the first load only (D280, D284, D289), each kit needing a permission nobody holds. Kits' return re-checks the profiles. The swap's field list regenerated for Rust 2634.289.1: two new fields, eleven now [NonSerialized]. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01E14m6SuuY6i1vASFeGDBeY
This commit is contained in:
@@ -26,9 +26,12 @@
|
||||
# 2 was stage 2's whole API, PLAN.md §4.
|
||||
# 3 was stage 4 (D249): RunicNpc_AddPlacement, _RenamePlacement, _RespawnPlacement and the
|
||||
# OnRunicNpcPlacementChanged hook.
|
||||
# Current: 4 — stage 5: RunicNpc_Factions, _SetFactions, _Escort, _Ally, _Tether, the profile's stage 5
|
||||
# fields, a placement's tether, and the OnRunicNpcEscortEnded hook, documented in docs/runicnpc/API.md.
|
||||
api = 4
|
||||
# 4 was stage 5: RunicNpc_Factions, _SetFactions, _Escort, _Ally, _Tether, the profile's stage 5
|
||||
# fields, a placement's tether, and the OnRunicNpcEscortEnded hook.
|
||||
# Current: 5 — stage 6: the profile's `boss` and `use` blocks and the passive role, the hooks
|
||||
# OnRunicNpcBossSpawned, _BossPhase, _BossDied and OnRunicNpcUsed, and `role` and `boss` in
|
||||
# RunicNpc_List, documented in docs/runicnpc/API.md.
|
||||
api = 5
|
||||
|
||||
# ── Framework floors ─────────────────────────────────────────────────────────
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user