Docs · Engineering reference
Outposts
docs/features/outposts.mdEdit on GitHub
LF_Outpost — Feature/Outposts/LF_Outpost.c (#4217, 2026-11-23)
- ⚠️ A rebel outpost is a safe zone:
LF_OutpostComponentregisters a SAFE circle (radius fromConfigs/Outposts/LF_Outposts.conf, 60 m by default) and the place under kindoutpost. Nobody fights inside; police may walk in. A trader inside refuses an on-duty officer with a toast ("We don't deal with the law here. Take the badge off and come back."); off-duty police are served. The rule isLF_Outpost.RefusesService(customer, traderPos);m_bTradersRefuseOnDutyPolicein the conf turns it off. Merged, in-dev: the rule, zone and words are tested; the trader sale and the shop till call it since #4224; no outpost prefab is placed (later cards). Testoutposts/rules(LOGIC).
LF_OutpostStanding — Feature/Outposts/LF_OutpostStanding.c (#4224, GA-O4, 2026-11-23)
- 🧪 A completed trade at a trader or shop till inside an outpost earns standing on the one underworld track (
LF_Reputation, thefence_saleaward row: 5 points, 120 s cooldown, the UNDERWORLD daily cap) and marks the character "known here" at that outpost (LF_OutpostStanding.IsKnownHere(uid, outpostId)). There is no per-outpost standing; the flag sits on top of the one track (N27). The flags are keyed by the character record key and the outpost id and saved in theoutpoststandingsection. The trader sale (LF_TraderSale.Sell, both the list and the premium-buyer path) and the shop till (LF_CharacterShopComponent.ServeTrade, buy and sell) now askLF_Outpost.RefusesServicefirst: an on-duty officer gets the refusal toast and keeps the goods (trader outcomeOUTPOST_REFUSED; the till slip shows the clerk refusal). A trade outside every outpost changes nothing. Nothing reads the flag yet, and no outpost is placed. Testoutposts/standing-award(PERSISTENCE,wt e2ereload check). Merged, in-dev.
LF_OutpostStock — Feature/Outposts/LF_OutpostStock.c (#4223, 2026-11-23)
- ⚠️ The quartermaster's crate:
LF_OutpostStockComponentholds stock rows (prefab or prefab slot,#name key, price, lowest underworld tier) and oneLF_OutpostStockBuyActionper row index shows "Buy pistol ($500)". The server decides every sale inLF_OutpostStock.Buy: an on-duty officer inside an outpost is refused first (LF_Outpost.RefusesServiceandNotifyRefusal, #4217), then the tier gate refuses in words ("I don't know you well enough for that one. Come back when people talk about you.", never a number, N1), then the cash is taken and the item handed over (refunded if it cannot spawn). A completed buy inside an outpost then books thefence_saleunderworld award and the known-here flag like a trader sale (#4322); a refused buy awards nothing. An empty crate list uses the default north stock (N29): gang radio $60 for anyone (slotgang_radio: the pack'sLF_GangRadio, the vanilla R148 in a core-only boot), PM pistol $500 at tier 1, AK-74 $2,000 at tier 2. Merged, in-dev: the crate prefab and its placement are later cards (O3, O6, O9). Testsoutposts/stock-gateandoutposts/crate-standing(WORLD).
LF_OutpostBuyer — Feature/Outposts/LF_OutpostBuyer.c (#4225, GA-O5, 2026-11-23)
- 🧪 The outpost's contraband buyer is the far end of a convoy run. It takes a contraband crate (
LF_ContrabandCrate) for 10 to 20% more than the fence pays. The fence price is the convoy drop,LF_Contraband.PAYOUT($200), so the built-in price is $230;PriceAboveFenceholds the premium to 10..20%.- One crate per run: a sale closes the seller's running, driven run through
LF_Contraband.Deliver, which marks it paid and starts the 10-minute cooldown. A crate with no run, an undriven run or a run already paid fetches nothing ("I only take crates that came up the road on a run."). - Demand cap: the buyer takes a crate only while its demand allows. Each outpost has one buyer-demand purse (
LF_BuyerDemand, CR-B1) under buyer idoutpost:<id>; the built-in row holds 6 crates and refills one per real hour. The purse is kept inLF_BuyerDemandBook, so thebuyerdemandsave section keeps it across a restart. A pack may set its own row inLF_BuyerDemand.conf: lot size 1, and a curve good is honored. - At the cap: the buyer refuses in words ("I have enough for now. Come back in about N minutes.") and the crate stays with the seller.
- Officers and standing: an on-duty officer inside the outpost is refused (
LF_Outpost.RefusesService,NotifyRefusal) and keeps the crates. A completed sale books thefence_salestanding and the known-here flag (LF_OutpostStanding.OnSale). - Order: cash first (extra cash drops at the seller's feet), then the crate, then the run is closed. Any failure puts the cash, the crate and the purse back.
- Status:
LF_OutpostBuyerSellAction("Sell contraband crate ($230)") is the table's action row, but no buyer table is placed yet (O3, O9). Testoutposts/buyer-cap(WORLD). Merged, in-dev.
- One crate per run: a sale closes the seller's running, driven run through
- 🧪 (2026-11-23, #4391, town-draft-saint-philippe-czech-signs; merged, in-dev) The vanilla Czech and Russian signs, murals and graffiti of Saint-Philippe are hidden. New outposts slot
czech-signs(Place_saint-philippe_czech-signs.layer, claimtools/town/claims/saint-philippe-czech-signs.json, mapping andtown.jsontemplate entry, 80 m margin) holds 38 boxedLF_BaseWorldClearComponentcarriers (6 x 6 m, 16 m tall, one per wall, each listing only the prefabs on it, so nothing else in the box goes). Hidden: the Czech shop and office wall signs (SignCommercial_01_*household wares, grocery, drugstore "DROGERIE", clothes store, gas station, car service, pubs;SignWall_01_*municipal office, post office, school, shipping company;SignWall3D_*; the fuel sign "Pohona"), the murals NEPTUN, Sputnik (two), Malina, Rybana and TSNC (three), the graffiti Nedej se, Svoboda, Azbuka, Do toho, Pamatujeme, Starka and Vole, and the four USSR posters on the b32 wall. Kept: English graffiti (Anarchy, Peace, Everon, FIA, Leave) and the murals with no lettering (Hands, Family, fisherman). Where our own fascia already hangs (clothing, pharmacy, supermarket) the vanilla sign behind it is simply gone; the household-wares shop gets its ownHOUSEWARESfascia (LF_Signs_Housewares.conf, stringLF-Sign_Housewares_Title) at the old sign's spot. Not replaced yet: the town hall, post office, school, pub and fuel station now have no lettering over the door (follow-up). Pictures:website/public/docs-images/4391/contact-czech-signs-before-after.jpg(left before, right after).