feat(demo): seed the default set's NPC profiles, factions and chat titles (DM26)
The restored rig's RunicNPC says it is already managed, so a fresh site adopts none of its profiles and its first push empties them; chat styles are never adopted either. They come from the fixture now, through Module-Rust's onDemoSeed (needs the release carrying DM26; an older module ignores these keys): - npcs.factions: bandits and guards, allied; - npcs.profiles: bandit (roamer, rnpc_raider) and guard (sentry, heavy, rnpc_campguard, heals), both on the demo server. Only the fields that differ from RunicNPC's defaults are listed; - chat: [VIP] in gold and [MOD] in green. The baseline's placements (bandit-1, bandit-2, guard-1) spawn again once the site pushes these. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01E14m6SuuY6i1vASFeGDBeY
This commit is contained in:
@@ -118,6 +118,40 @@
|
||||
],
|
||||
"links": [
|
||||
{ "username": "demo-player", "steamId": "$env:DEMO_PLAYER_STEAM_ID", "serverId": "demo" }
|
||||
],
|
||||
"npcs": {
|
||||
"factions": [{ "a": "bandits", "b": "guards", "relation": "allied" }],
|
||||
"profiles": [
|
||||
{
|
||||
"name": "bandit",
|
||||
"servers": ["demo"],
|
||||
"body": {
|
||||
"kits": ["rnpc_raider"],
|
||||
"names": ["Bandit", "Bandit Scout"],
|
||||
"role": "roamer",
|
||||
"movement": { "mode": "wander", "radius": 20 },
|
||||
"health": 150,
|
||||
"faction": "bandits"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "guard",
|
||||
"servers": ["demo"],
|
||||
"body": {
|
||||
"kits": ["rnpc_campguard"],
|
||||
"names": ["Camp Guard"],
|
||||
"prefab": "scientistnpc_heavy",
|
||||
"role": "sentry",
|
||||
"health": 300,
|
||||
"faction": "guards",
|
||||
"kitUse": { "heal": true, "grenades": false, "melee": false, "rockets": false, "flamethrower": false }
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"chat": [
|
||||
{ "serverId": "demo", "group": "vip", "style": { "Title": "[VIP]", "TitleColor": "#ffaa00", "UsernameColor": "#ffaa00", "Priority": "10" } },
|
||||
{ "serverId": "demo", "group": "moderator", "style": { "Title": "[MOD]", "TitleColor": "#55ff55", "UsernameColor": "#55ff55", "Priority": "50" } }
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user