Docs · Engineering reference
Crime & Police
docs/features/crime-police.mdEdit on GitHub
LF_Breach — Feature/Crime/LF_Breach.c
- ✅ Configured charge opens an
LF_LockComponentafter the fuse and leaves it open until repair (verified 2026-10-11).Arm(targetId, playerUid)is the call later robberies use. Fuse 0 opens in that call. Wanted and the police notify fire once, at arm time, not when the offer refreshes. A second charge on an open target refuses. Police on duty can always repair (an off-duty police account cannot, #2539); the owning organization can repair its own door.Export/Applyput the open lock back in memory but are not wired into the save serializer, so a restart loses it. The vanilla charge is not detonated. DebugWorld placesRoadmap_Breach_DoorandRoadmap_Breach_ChargeonStreet_Breach.layer. The charge prefab is{33CBDE73AB48172A}Prefabs/Weapons/Explosives/DemoBlock_M112/DemoBlock_M112.et. Charge consumed (verified 2026-11-07):Arm(targetId, playerUid, chargeCarrier)takes one charge fromchargeCarrierbefore the wanted bump and refuses (arm refused: ... carries no breach charge) when there is none. The door, bank vault, and hospital cabinet actions pass the acting player; the door action shows#EL-Breach_NeedCharge. A null carrier is the server-scripted arm used by tests. Pin testsecurity/breach-needs-charge.EL_Door_Baseinherits{776E0766BBDB17A3}Prefabs/Structures/BuildingParts/Doors/Door_HouseWooden_E_A_LEFT_EXT_COV_B.et. - ✅ Client offers (verified 2026-11-07: dedicated/* tests, server side; client receipt is manual): the target table is server-only, so
LF_BreachTargetComponentmirrors open/armed asRplProps (SetReplicatedState, written fromOpen/Repair/Applyand the fuse schedule).CanArmForOffer/CanRepairForOfferaskLF_Breachon the server and the mirror on a client. A client offers repair to police and, on an organization door, to anyone; the server decides membership. - 🧪 Evidence at the detonation, not the placement (2026-11-16): placing a charge (
Arm) files the crime report, opens the scene and sounds the alarm, but the footprint card the report would leave is only planned (LF_ScenePieces.PlanFootprint, held on the target asLF_PendingFootprint;deferPiecesonLF_Dispatch.ReportandLF_WantedReports.Report).Openlays it (LF_ScenePieces.LeaveFootprint): exactly one card per report, where the robber stood at the charge.CancelCharge,Repair,Reset,ApplyandConfiguredrop the plan, so a defused charge leaves nothing. Bank vault, hospital cabinet and door charges all go throughArm, so they follow the same rule. Testcrime/breach-evidence. - ✅ Charge lifetime (2026-11-08): a charge whose fuse cannot
fire is dropped with
LF_Debug.Error(CancelCharge) instead of leaving the target armed forever: no world, a placed door withoutLF_BreachTargetComponent, a timer that could not be scheduled, or the door deleted before the fuse fired (LF_BreachTargetComponent.OnDeletealso removes the callqueue entry). The cancel also clears the replicated armed mirror. An unplaced, script-driven target keeps its charge and opens throughAdvance.Configureclears the armed flag and elapsed time; the open flag is kept. Testrobustness/lifetime.
LF_Bank — Feature/Crime/LF_Bank.c
- ✅ A vault calls
LF_Breach.Arm, then spills a config number of bags of MoneyStack cash (verified 2026-10-11). The haul never deposits or withdrawsLF_BankAccount. Civilian-only, cooldown, and minimum police on duty use the same comparisons asLF_RobAction. A second breach inside the cooldown spawns nothing. Over-capacity requests are cut to the configured bag count. Carry leaves the cash on the bag; dropping it leaves that cash in the world.Export/Applyrestore the ground bags and do not write a bank balance; they are not wired into the save serializer, so a restart loses the bags. The pack layerVillage_Buildings(LF_Everon1989, #323 batch 3) placesRoadmap_Bank_Vaultas the whole vault kit (LF_BankVault.et) at 194.3 0.007 259.6 facing the street, built onto the bank's east wall (see "Bank vault in the bank" below), the bell boxRoadmap_Bank_AlarmBoxon the bank wall above its roof,Roadmap_Bank_Bagon the vault floor (194.3 0.5 261.6) and the rob kit chest on the grass beside the door (196.7 0 258.5), all onStreet_Bank.layer. The bag is{65DE48DCC1D4DD01}Prefabs/Items/Roleplay/LF_MoneyBag.et(a generated grey cloth sack tied with rope,Assets/Items/Roleplay/MoneyBag/MoneyBag.xob, 0.46 m tall, origin at its base). Cash is{5439738849229352}Prefabs/Items/Currencies/MoneyStack.et. The shell is{D1859197E1AB4E8A}Prefabs/Structures/Services/EL_Bank.et, which inherits{363A616E6C64BB7F}Prefabs/Structures/Services/Government/MunicipalOffice_E_01/MunicipalOffice_E_01.et. That building is capture-only and is not placed in the debug row. - 🧪 (2026-11-23, #4156) The rob kit chest is the only thing to use on it. The Workshop photo drill (
PhotoScene_Bank_Drill, #370) stood on the chest as a liveLF_Drill: the F key on the chest offered its "Pick up", which a robber already carrying the kit drill got refused as too heavy (#AR-Inventory_InfoTooHeavy), and a fresh player got a free drill. It is gone.validate-town-hand-toolsfails any hand tool (LF_HandToolComponentor a prefab inheriting one) placed in a town or island layer; selftesttown-hand-tools-selftest. On a dedicated server with a remote client the kit drill takes quick slot 5, the slot press holds it and the vault drills 30 s, in the annex, the playtest town and Saint-Philippe (session.mjs drill-quickslot-proof [--island], #4306). - 🧪 (2026-11-23, #4197) The robbery kit loadout is held by a test.
LF_Test_RobberyKitLoadout(WORLD,crime/robbery-kit-loadout): every itemLF_BankRobKit.Items()lists resolves to a prefab that spawns as an inventory item, the drill is aLF_HandToolComponentwith tool iddrill(the one the vault drilling and the quick bar read) that spins and sounds, every tool a vault or store asks for (LF_SafeTuning.DEFAULT_TOOLS, the armoury keycard) has a kit item, the vault money bag prefab resolves, and one grant leaves the drill, keycard and charge carried. The live check on main (drill-quickslot-proof, 2026-11-23) passed: the kit needed no config change, so noLF_RobberyKit*.confwas added.
Safe types — Feature/Crime/LF_SafeType.c
- Three safe tiers are data, not three robbery systems.
Configs/Crime/LF_SafeTypes.confholds oneLF_SafeTypeRowper tier and a pack overlays it through its mission header (LF_SafeTypes_Everon1989.conf; add, replace, patch or remove a row by id,LF_ConfigOverlay). A vault or heist component names a row withm_sSafeType;LF_BankVaultComponentbuilds anLF_SafeTuningfrom its own attributes andLF_SafeTypes.Applylets the row fill every value still at its class default. A value the prefab or layer sets to something else wins. A value set equal to the class default reads as "not set", so to pin such a value on a typed safe, change it by at least one step. An emptym_sSafeTypeis the old behaviour. An unknown id logs[LFDebug:SafeTypes]an error and the safe keeps its own numbers. - The robbery itself is unchanged:
LF_Bank.Rob,LF_Breach.Arm,LF_VaultDrill, the fence tools, the alarm and the wanted report all run as before; only where the numbers come from is new.
| Tier | store_box |
bank_room |
reserve_vault |
|---|---|---|---|
| In the world | small box safe in a shop (LF_SafeBox.et, the vanilla Safe_01 mesh) |
a vault room fitted into a bank (LF_BankVault_RoomDoor.et) |
the big standalone vault (LF_BankVault.et and its kit); the later reserve building |
| Haul | 1 bag x 150 = 150 | 1 bag x 500 = 500 | 4 bags x 1000 = 4000 |
| Tool | none | drill or charge | drill or charge |
| Timer | 10 s fuse | opens at once (drill: 30 s held at the door) | opens at once (drill: 90 s held at the door) |
| Jam chance | 0 | 0 | 0.25 |
| Police on duty needed | 0 | 0 | 2 |
| Cooldown | 60 s | 60 s | 600 s |
| Alarm | store |
bank |
bank, loud |
| Action name | "Crack the box safe" | "Rob the bank" | "Break into the reserve depot" |
store_boxmatches the placed shop tills: they ship with 0 police needed, 150 cash a haul and a 900 s cooldown (LF_FuelTill_Attended.et; it was 60 s, which paid a solo robber 150 a minute, #2418).LF_RobAction's own code default is 2 police, which every placed till overrides to 0, so the tier follows the placed value. With no tool it opens after the fuse.m_fDrillSecondsis 10 only because the setter needs a positive value; no drill is accepted. The Everon pack patches the haul to 120 (1989 till takings).bank_roomis today's bank: the numbersLF_BankVault.etsets (1 bag, 500, 60 s, 0 police, no fuse, drill or charge, bank alarm, no jam, 30 s drill).reserve_vaultis the big vault for a later "Federal Reserve" building (docs only; in-world text says "reserve depot"). The existingLF_BankVault.etprefab keeps its GUID, path and its own explicit numbers and sets no type, because it is the playtest town's bank today; a building that uses it as the reserve vault setsm_sSafeType "reserve_vault"on its placement and drops the explicit numbers.- Test
crime/safe-types(LOGIC) andeveron/safe-types(pack leg). Log[LFDebug:SafeTypes]. - Store box in the pack (#2331):
LF_Everon1989/Prefabs/Props/Safes/LF_StoreBox.etinherits the coreLF_SafeBox.etand namesstore_boxitself, so a shop fit-out places the pack prefab and the pack's 120 cash takings apply. It swaps the mesh to the vanilla oliveCabinetMetal_01steel cabinet with its own material, because the coreSafe_01mesh renders plain white (#2728). The pack grid cellstore-box(Grid_store_box.layer, cell c19r4) stands one till and one box beside it. Testeveron/store-box-safe(pack leg,LF_Test_EveronStoreBoxSafe) asserts the box registers under its entity name with one bag, 120 a bag and a 10 s drill, and that a script-driven robbery with no tool and no police arms it and spills exactly that haul after the fuse. Putting a box in each shop is a later per-shop card.
LF_BigJobLock — Feature/Crime/LF_BigJobLock.c (#4193, plan 0.3.0 Crime A6, decision N17)
- 🔧 One big job (robbery rungs 4 to 6: hospital pharmacy, bank vault, reserve depot; the prison break in 0.4)
runs on the server at a time.
TryBegin(jobKey, holderKey, cooldownSeconds, now)takes the server-wide lock or answersBUSY(another big job runs) orCOOLDOWN(this job ended recently);RefusalTextgives the player the reason in words, with the minutes left.Finishreleases the lock and starts that job's own cooldown; another big job may start meanwhile. A lock never finished expires after 45 min into its cooldown. Callers pass the cooldown from their pack config (COOLDOWN_PHARMACY2 h,COOLDOWN_BANK3 h andCOOLDOWN_RESERVE6 h are the plan defaults). - 🔧 The bank heist takes it (#4437): a configured heist job (
LF_HeistRun.FromRow) is a big job keyed by its row id. Arming its door takes the lock (#4492):LF_Breach.ArmasksLF_HeistRun.ArmLockRefusalbefore the charge is taken (a refusal costs nothing and names the reason in[LFDebug:Breach]) and callsClaimAtArmright after, so a second crew is refused inside the first crew's fuse window. The door opening (DoorOpened) adopts that lock, or callsTryBeginfor a door opened with no arm; a refused run stays idle. A charge cancelled or repaired before its fuse runs out ends the job (ArmAbandoned:Finish, so the cooldown starts). The run ending (getaway or failure) orStopmid-run callsFinish. The cooldown is the row'sm_iCooldownSeconds(LF_HeistRun.CooldownSeconds; 0 keepsCOOLDOWN_BANK, 3 h; the Everon bank row sets 10800).ArmRefusal(offer and server perform) refuses arming the door after the police minimum with#LF-BigJob_Busyor the cooldown in minutes, logged[LFDebug:BigJob]at most every 10 s. The lock lives on the server, so the client offer passes and the server perform sends the toast; its log line says the real reason (police, a big job running, or the cooldown;ArmRefusalWhy). Runs built from attributes take no lock. TestsLF_Test_HeistBigJobLock,LF_Test_HeistArmLock. - 🔧 Save section
bigjob: cooldowns as seconds left, so a restart never resets one; a job running at the save comes back as that job in its full cooldown, with the lock free. TestLF_Test_BigJobLock;wt e2echecks the cooldown across a real restart.
LF_Hospital — Feature/Crime/LF_Hospital.c
- ✅ The hospital till is not scripted here: the placed action is
LF_RobActionon the till's singleActionsManagerComponent(civilian, cooldown and minimum-police gates, cash payout, wanted, dispatch; DebugWorld placesRoadmap_Hospital_Tillat257 0 256.4, hospital porch, onStreet_Hospital.layer).LF_HospitalTillComponentonly registers the till place. The oldLF_Hospital.RobTilland its helpers had only test callers and read a millisecond clock against a 60-second cooldown; deleted in #2419. - ✅ The cabinet is a forced-entry container.
BreachCabinetcallsLF_Breach.Arm. When that lock opens it spawns the configured medicine prefabs: field dressing, morphine, saline, and tourniquet. A missing prefab logs and that line is skipped. A second breach while the cabinet is open spawns nothing and does not alert again.Roadmap_Hospital_Cabinetis at198 0 120. Items stay ordinary; confiscation of a contraband flag belongs to the contraband scope.
LF_ClinicShortage — Feature/Crime/LF_ClinicShortage.c (#4445, plan 0.3.0 Crime D1, decision N18)
- 🔧 (merged, in-dev) The clinic is short for an hour after its drug cabinet is robbed. A
LF_OnBreachOpenedwhose target is a hospital cabinet starts it; a breach of any other target starts nothing. While short, the counters named in the config (pharmacy_counterby default) charge 150% of the buy price, and a revive held within 40 m of a hospital place (till or cabinet) takes 1.5 times as long. Then it ends on its own. Never a block on revives. - Fair to medics: an on-duty medic restocking at the counter pays the normal price (the counter sells
only to
MEDIC_ACCESSholders, so the raise would otherwise fall on them); the sell price is unchanged, so buying dear and selling back is never a profit; duty pay, revive bills and bonuses do not change. A second robbery while short restarts the clock at the full duration and never stacks a second hour. LF_ClinicShortage.IsActive()andSecondsLeft()are the server accessors the door notice (CR-D8) reads. One bool replicates on the game mode (RplProp, bumped only on change) so a client's revive hold and price list match the server.- Tuning:
LF_ClinicShortageConfig(duration, price percent capped at 300, revive percent capped at 200, clinic radius, outlet ids). The core field defaults are the shipped values; the pack listsLF_ClinicShortage_Everon1989.confin its mission header overlays. - Not persisted: a server restart ends the shortage.
- Test:
crime/clinic-shortage(LF_Test_ClinicShortage).
LF_Murder / LF_Zones — Feature/Crime/, Feature/Moderation/ (M1-27, #125; zones #242)
- ✅ Murder makes you wanted (test
crime/murder). Every character death reachesLF_GameModeRoleplay.OnControllableDestroyedExon the server. A player who kills another player or an NPC gets wanted +the catalog's amount (#LF-Offence_MurderinLF_CrimeCatalog.conf, default 3), oneLF_WantedReportsreport with the#LF-Offence_Murderoffence and their description (no name), a radio dispatch to every on-duty officer (LF_Dispatch.Report, no site alarm), and a toast. Not murder: a death with no player behind it, a self-kill, a destroyed vehicle, and (configm_bOfficerKillOfWantedExempt, default on) an on-duty officer killing a wanted suspect. Each decision logs[LFDebug:Murder]. No automatic ban. - 🧪 (2026-11-16) Killing a logged-out body is murder of that player (#2103). The body (
LF_LogoutBody) has no controlling player, so its kill arrives withvictimPlayerId0.LF_Murder.VictimUid/VictimIsPlayerresolve it throughLF_LogoutBody.UidOfBody: the victim is the account's uid, theLF_OnPlayerKilledevent is published with it, and the officer exemption reads that account's wanted level. A plain NPC stays an NPC. Testcrime/murder-logout-body. - 🧪 (2026-11-18, #2670, W5 of #1022) A war kill is not murder. When the killer's and the victim's active characters belong to two organizations at war (
LF_OrgWars.IsAtWar) and the war rules keepwarKillsAreMurderoff,LF_Murder.OnCharacterKilledskips the death withLF_Murder.SKIP_ORG_WAR: no wanted, no crime report, no dispatch,[LFDebug:Murder] death of <uid> is not murder: org war .... TheLF_OnPlayerKilledevent carriesm_bMurderfalse. WithwarKillsAreMurderon it is murder like any other. A safe zone is untouched: it refuses the damage before any kill, and a war never lifts it. Seedocs/features/core.mdfor thewar_killincident. Testorg/war-kill-tag. - ✅ Zone rule sets as data (#755, #1077; tests
zones/rules,zones/ruleset-backcompat,zones/conf-off).LF_ZoneRuleSetandLF_ZoneConfigmembers carry no initializers, so a.confvalue of 0 is read as 0 (an initializer used to win); script builds one withCreateDefault.LF_Zones.confholds a per-rule tablem_aRuleSetsofLF_ZoneRuleSet(rule, blocksPlayerDamage, suppressesWanted, allowsRobbery, allowsVehicleTheft, allowsWeaponDraw, fineMultiplier, copsEnter). Shipped: SAFE blocks player damage, LAWLESS and NORMAL change nothing. A rule with no entry falls back to the oldm_bSafeBlocksPlayerDamage/m_bLawlessSuppressesWantedflags. Callers askLF_Zones.RuleSetAt(pos); today only blocksPlayerDamage and suppressesWanted have consumers (hit refusal,LF_Murder). TheEVENTrule waits on D5 (#757); ids stay NORMAL 0, SAFE 1, LAWLESS 2. - ✅ Spawn safe zone (test
safezone/blocks).LF_ZoneComponent(rule SAFE) onLF_SafeZone_Square(Gamemode.layer, fountain 115 0 250, radius 30 m as the component attribute) registers a flat circle. The moddedSCR_CharacterDamageManagerComponent.HijackDamageHandlingswallows a hit when a player hurts a different player and either stands inside: no health, bleeding, or ragdoll. NPC, world, and self damage pass. Weapons still raise and fire. No police exemption: arrest is an interact action. Each refusal logs[LFDebug:SafeZone] refused ...; the shooter gets a toast at most every 8 s. Twosafe_zonenotice boards (Sign_SafeZone_Spawn,Sign_SafeZone_East) say so in the world. - ✅ Zone service (#242, tests
zones/rules,safezone/blocks). The safe zone code is nowLF_Zones(Feature/Moderation/LF_Zones.c): a zone is an entity withLF_ZoneComponent, a shape (circle, box turned by entity yaw, polyline corridor with a half-width) and a rule set: SAFE (the damage block above), LAWLESS, NORMAL.LF_Zones.RuleAt(pos)answers for every caller; overlaps resolve safe, then lawless, then normal; shapes are flat (XZ). What each rule set does lives inConfigs/Moderation/LF_Zones.conf:m_bSafeBlocksPlayerDamage(on) andm_bLawlessSuppressesWanted(off: lawless alone does not switch off wanted; on,LF_Murderskips a murder in a lawless zone and logs the reason). A zone added, changed or removed logs[LFDebug:Zones]and publishesLF_OnZoneChanged. The incident log stampsm_sZone(safe/lawless/normal) on each record and in its log line; the stamp is not saved and a loaded record is stamped again from its position. #243 (quarry lawless) is one entity: anLF_ZoneComponentwith rule LAWLESS. - ✅ Lawless quarry (#243, test
zones/quarry).LF_LawlessZone_Quarry(Gamemode.layer, circle 32 m at 178 0 172 over the mining site) is the one lawless area; the plaza zone stays safe and the town normal. Twolawless_zonesigns (Sign_Lawless_Entryat the lane, just outside;Sign_Lawless_Pitat the east edge) say so; the catalog rowlawless_zonecarries the rule text. The harnessstateline now ends its zone aszone=safe|lawless|normal;session.mjs quarry-proofreads it at both signs and the plaza. No fence or gate yet; no save change. - ✅ Both civilian spawn points stand on the square (the second moved from
170 0 199, by the quarry, to 121 0 253);
safezone/blocksasserts every civilian spawn point is inside a zone. The hospital wake (M1-26) is not a spawn and stays outside.
LF_RobAction / LF_RobWeaponAction / LF_RobVehicleAction — Feature/Crime/
- ✅ Cash/weapon/vehicle robbery; cooldown + civilian-only + min-police-on-duty gates; raises wanted level (+1/+2/+3); notifies police. DebugWorld's three points set the minimum to 0 so one civilian can run them (verified 2026-10-10). The action classes still default to 2 / 1 / 3.
- ✅ Cash payout + reliable wanted bump (verified 2026-08-30): the haul is
LF_MoneyUtils.AddCash(never the bank — pin testcrime/rob-rewardasserts the bank balance stays 0), and the account cache churn is fixed so every robbery escalates wanted. - 🔧 Fuel till robbed through its attendant (#936, merged, in-dev): the till is
LF_FuelTill_Attended.et(its world action is retired) and the voicedLF_FuelClerkstands behind it. The robbery reply in thefuel_clerkdialogue is offered only while a weapon is drawn (RobArmedhook,LF_RobDialogue.c). Picking it callsLF_RobHold.Starton the server (armed, in range, free till, cooldown,LF_RateLimitCRIME), starts a hold timer with a bar and radius warning (LF_RobHoldHud), and pays throughPayHeldwhen the hold is kept; leaving, weapon away, police arriving or going down each end it with a message and a cry from the attendant. Alarm, dispatch, witness and evidence fire as before. Testscrime/rob-hold,crime/fuel-clerk-dialogue. Demo:session.mjs fuel-robbery-proof. - 🔧 A held robbery refused by the grace period says so (#2157, #2075, merged, in-dev): when
LF_RobAction.Gaterefuses a new character (REFUSED_GRACE),LF_RobHold.Startand theRobRefuseddialogue hook send the grace toast (LF_Grace.Notify) throughLF_RobHold.NoteRefusal, and the attendant's caption (LF_RobHoldRules.RefusalKey) names the grace instead of "no till". Testcrime/rob-hold-grace-toast. - 🔧 Vaults and breaches refuse a character in its grace; only police on duty repair (#2539, merged, in-dev):
LF_Bank.Rob(drill and charge start) andLF_Breach.Arm(every breach, before the charge is taken) refuse a characterLF_Grace.Refusesprotects and send the grace toast.LF_Breach.PlayerMayRepairaccepts a police account only while it is on duty, so an off-duty police alt cannot relock a vault to rob it again.LF_Bank_StaticResetHookdrops the vault table at world end. Testcrime/vault-grace-repair. - 🔧 A fused vault charge opens the vault and pays once (#2541, merged, in-dev): the fuse timer (
LF_BreachTargetComponent.FireFuse) advances by the secondsLF_Breachscheduled (the safe type's fuse; the component's ownm_fFuseSecondsis 0 on a vault) and, on a bank vault, goes throughLF_Bank.FuseFired, which opens the lock and spawns the pending haul once. A second fuse call does nothing. A breach target on a vault entity no longer configures the breach itself, so the vault's safe-type fuse is not reset to 0. Testcrime/vault-charge-fuse. - 🔧 A robber holds one till at a time; a downed or dead attendant ends the hold unpaid (#2540, merged, in-dev):
LF_RobHold.Refusalrefuses a robber who already keeps a hold running (REFUSED_HOLDING, caption#LF-RobHold_Refused_Holding). Each tick reads the attendant: down or dead turns a running, paying or police end intoLF_ERobHoldEnd.CLERK(LF_RobHoldRules.JudgeClerk), which pays nothing (onlyPAIDopens the till,Pays), shows#LF-RobHold_Fail_Clerkand leaves the attendant silent. Testcrime/rob-hold-one-per-robber. - ✅ Fuel-station till (verified 2026-10-11):
Roadmap_Fuel_TillonStreet_Fuel.layerat259 1.04 241.2(on a counter at the fuel station) is{4E4E1620C6B02E1F}Prefabs/Props/Commercial/EL_FuelTill.et, which inherits{51D31AB07AE3C1C7}Prefabs/Props/Commercial/CashierShop_01.et, withLF_RobAction. Payout is a config range (m_iMinPayout..m_iMaxPayout); the server rolls it, and min equal to max pays that fixed amount. The debug till pays 150 MoneyStack cash. The bank balance stays 0. Wanted rises by the catalog's robbery amount (default 1) and still clamps at 5. A second attempt inside the cooldown is refused and logged withLF_Debug.Error. The police alert fires once, insideCommitRobbery, not while counting on-duty police and not when the offer refreshes. The fuel station building{9269BD1B6BF3A441}Prefabs/Structures/Commercial/FuelStations/FuelStation_E_01/FuelStation_E_01_V1.etis the capture prefab and is not placed in the row. Player strings:#EL-Fuel_Till_Rob,#EL-Rob_Cooldown,#EL-Rob_CiviliansOnly,#EL-Rob_NeedPolice. - ✅ Tests call the real actions (2026-11-07; red-proofs observed
2026-11-08).
crime/rob-reward(WORLD) runsLF_RobAction.CommitRobberywith a real character: MoneyStack cash, bank 0, wanted +1, cooldown, civilian gate. The weapon and vehicle grant/spawn, wanted, and alert moved intoLF_RobWeaponAction.CommitWeaponRobberyandLF_RobVehicleAction.CommitVehicleRobbery(wanted from the catalog, weapon theft 2 and carjacking 3;PerformActionkeeps the server-only guard), and their civilian check intoLF_RobAction.IsFactionAllowedToRob;crime/rob-weapon-vehicle(WORLD) drives them. The earliercrime/rob-rewardandcrime/rob-wanted-clampnever called an action and are gone; the clamp is pinned byroadmap/fuel. - ✅ Weapon and vehicle robberies are judged on the server (#2538, merged, in-dev).
CommitVehicleRobberyandCommitWeaponRobberytake the police count, the action's minimum, cooldown, last-rob time and now, and refuse (nothing delivered, no wanted,LF_Debugwarn plus aNotifyEntitytoast) a robber in grace (the vehicle had no grace check), a faction that may not rob, too few police on duty, or a robbery inside the cooldown. The pureGatestatic (LF_RobVehicleAction.Gate,LF_RobWeaponAction.Gate) is what the client'sCanBePerformedScriptand the server both ask; the offers now readLF_AccountReplication.GetPoliceOnDutyCount(the old per-action counter is gone).PerformActionjudges against the previous rob time and does not start the server's cooldown for a refused robbery.crime/rob-commit-gates(WORLD) pins it. - ✅ No account, no robbery (verified 2026-11-07: dedicated/* tests, server side; client receipt is manual):
CommitRobberyrefuses and logsrobbery refused: no accountinstead of paying without the civilian gate and wanted bump.PerformActionruns on the server only; offers readLF_AccountReplication, so the till is offered on a dedicated client and the min-police gate uses the replicated count. The success toast goes to the robber only (LF_Utils.NotifyEntity), the alert to on-duty police only. - ✅ Weapon/vehicle cooldown in seconds (2026-11-08, test
robustness/lifetime): both compare throughLF_RobCooldown.IsActive, which converts the seconds attribute to world-time milliseconds (before, 300 s was 0.3 s). A never-robbed action has no cooldown.PerformActiongrants/spawns, raises wanted, and alerts on the server only.LF_RobVehicleActionno longer notifies from its on-duty count (that ran every offer refresh) and refuses an empty vehicle prefab withLF_Debug.Error; the spawn goes throughLF_Utils.SpawnEntityPrefab. - ⚠️ Near-duplicated guard logic across all three.
Police alerts go through
LF_Dispatch.Report(M1-20).
LF_Jail — Feature/Police/LF_Jail.c
-
✅ Placed cell and timed sentence (verified 2026-10-11).
GetJailPosition()reads the cell origin. Sentence length is wanted level times the config step, clamped to the config max. Arrest of a clean player refuses. Expiry reduces wanted by the configured amount. Early release refuses. A locked jail door returns a prisoner who leaves the volume; an open door (the sharedLF_Breach.ArmonRoadmap_Jail_Door) does not, and the remaining time stays.Export/Applyput the remaining seconds back, andExportAll/ApplyAllcarry every serving sentence through the save. DebugWorld placesRoadmap_Jail_Door,Roadmap_Jail_Cell, andRoadmap_Police_DeskonStreet_Jail.layer(the desk onStreet_Police.layer). The playtest town jail is two-layer like the island's (#4336):Roadmap_Jail_Door(the yard gate) is the cell door, and a short net-fenced pen outside it ends inRoadmap_Jail_OuterGate(sameEL_JailDoorprefab,LF_BreachTargetComponenttarget, named by the cell'sm_sOuterDoorTargetId) between two lock-only wing doors. The cells refuse a charge until the outer gate is blown, and a released prisoner appears beside the pen. The placed door is{787617D5B683FE41}Prefabs/Structures/BuildingParts/Doors/EL_JailDoor.et, which inherits{B597177F09247CE9}Prefabs/Structures/BuildingParts/Doors/Door_PrisonCell_E_A_Left_INT_ST_B.etand addsLF_LockComponent, so the prison mesh and the shared breach actions stay together. That vanilla door is the prefab the world test loads. The officer actionLF_JailArrestActionis on the suspect.LF_JailEscortis the vehicle path: an on-duty officer loads a wanted player into the nearest free non-driver seat of a base-game vehicle. The sentence starts when they arrive at the cell, not when they enter the car. A player who is not wanted is refused and logged. Early release stays refused. A reconnect or a restart keeps the remaining sentence. DebugWorld placesRoadmap_Escort_Carat247.5 0 238(beside the police station) onStreet_Jail.layer, the police M151 withLF_JailPutInVehicleAction. The action is listed at the car. Performing it still requires an on-duty officer and a prisoner on foot. (verified 2026-10-11) The escort car works on any police car (#3431, merged, in-dev). Until then the escort path was bookkeeping only: the put-in and take-out actions were on no Everon prefab, the on-foot detain action (LF_JailEscortArrestAction) was on none either, nothing registered a vehicle, and no one was physically seated. NowLF_UAZ469_Police.etcarriesLF_JailPutInVehicleActionandLF_JailTakeOutOfVehicleAction(door contextdoor_l01) so every police UAZ, the Everon station kit'sPoliceKit_PatrolCarandPoliceKit_EscortCarincluded, offers them, andCharacter_Roleplay.etcarries "Detain for escort" on the interaction menu. The officer detains a wanted suspect, stands at the car and puts them in:LF_JailEscortCar.PutIn(server) checks the hold and that the suspect is within 8 m, then moves them into a real cargo seat throughMoveInVehicle(the owning client answers; a lost request is asked again up to 4 times, a refused one rolls the hold back to on foot and the officer is told). The car's escort id is its placed name or its entity id, so a car spawned with no name works; seat rows are made on demand. Take-out at the placed cell starts the sentence (LF_JailEscort.Arrive); anywhere else the suspect steps out 2.5 m beside the car and stays held on foot. The hold is server state, so neither action refuses from the client: the server judges and toasts the reason. Testjail/escort-car(LOGIC); proofsession.mjs police-arrest-proof --escort [--car <entity>]on two clients reads the seat on both. A suspect held for escort, cuffed or not, is refused the driver's seat like a cuffed one (LF_CuffEnforcement.HeldFromDriving), so an uncuffed suspect cannot slide over and drive the police car off; a seat retry stops once the hold has left the car. Testpolice/escort-no-driving(LOGIC). -
✅ Sentences survive a restart (2026-11-07, tests
restart/jail-serializer-roundtripande2e/pass2-verify-loadacross a real restart, verified 2026-11-07):LF_Jail.ExportAll/ApplyAllare thejailpayload ofLF_PersistenceComponentSerializer, appended at version 5. Only serving sentences with time left are saved;ApplyAllreplaces the live set, so a second apply converges. A version 1-4 save stops before the payload and leaves live sentences alone. -
✅ One jail tick (2026-11-08, test
robustness/single-jail-tick): the first placedLF_JailCellComponentowns the jail config and the repeatingLF_Jail.Tick; a second cell logsLF_Debug.Errorand neither reconfigures nor ticks (two cells used to run sentences at double speed).OnDeleteremoves the tick.LF_JailArrestableComponenthostsLF_JailEscort.Tickon one live instance and hands it to the next registered one when that host is deleted. -
✅ Jail work shortens the sentence (#127, merged, in-dev). Two job spots in the DebugWorld cell: Scrub the floor (
Roadmap_Jail_ScrubBucket, 30 s off, 6 s of work, 45 s cooldown) and Sort the laundry (Roadmap_Jail_LaundryBasket, 20 s off, 5 s, 30 s).LF_JailWorkActioncarries the job id, seconds off, cooldown and work time as config; the client sends nothing.LF_JailWork.Begin(server) refuses anyone who is not serving, is already working or is inside that job's cooldown (cooldown toast shows the time left), then bends the prisoner into the existing work pose (LF_WorkAnim: PICK for the scrub, DRILL for the laundry). When the work time is up and the prisoner is alive and within reach,LF_JailWork.CompletecallsLF_Jail.Creditonce, which takes the seconds off the remaining time (a task past the remaining time ends the sentence like any release), refreshes the sentence slip, and toasts "Job done. Time left: m:ss". Nothing new is saved: the reduction lands on the sentence's remaining seconds that thejailpayload already carries; the cooldown is session-only. Testjail/work(LOGIC); demonode agent-box/session.mjs jail-work-proof(needssession.mjs roster 2beforeup --clients 2). LocalizedLF-JailWork_*. The work poses are reused, so the scrub and laundry both show the existing bend; a mop or laundry clip is not made. -
✅ Island work stations (#3419, #3754, merged, in-dev). The Saint-Philippe jail slot (
Place_saint-philippe_jail.layer, kittools/town/kits/jail.json) carries the three 1989 stations from #3418 inside the villa's barred cell: the laundry tub on the west side, the kitchen sink beside the cell door and the broom leaned in the north-east corner, all on the ground floor. #3419 first put the tub and sink in an upstairs room and the broom behind the villa; a jailed prisoner could reach none of them, becauseLF_Jail.Confinespulls them back to the cell origin when they are more than the cell's 2 m zone away (and the cell door is locked). The rows now stand within the zone, clear of the villa's own bunk bed, benches and wash basin (town fit --refit, no terrain row any more;audit placement --strictclean, seated on the tile floor). Checked by the interiorlook place:saint-philippe/jail; not walked as a booked prisoner (manual step in the PR). No script or save change. -
⚠️ Moving a connected prisoner to the cell, or pulling them back into it, goes through
SCR_Global.TeleportPlayer(the vanilla server-side player teleport) instead of a server-onlySetOriginthat the owning client can overwrite; a stand-in with no player is still set directly (2026-11-07). A prisoner seated in a vehicle is dismounted straight to the target first (GetOutVehicle_NoDoor; a client-owned player through the vanilla Game MasterSCR_EditableCharacterComponent.SetTransform), so the vehicle stays put (M1-21, testjail/vehicle-arrest). Not yet checked on a dedicated server with a remote client. -
✅ Online time (M1-21, 2026-11-08, tests
jail/online-time,e2e/pass2-verify-load): the sentence counts down only for connected players (LF_Jail.TickreadsPlayerManager.GetPlayers;TickOnlineis the testable seam). An offline prisoner keeps the time they had at logoff and logssentence paused/sentence resumed. A prisoner who spawns with time left (rejoin, restart) goes back to the cell with their slip (LF_SpawnLogic). -
✅ Sentence slip (M1-21, test
jail/slip): sentencing hands the prisonerPrefabs/Items/Roleplay/SentenceSlip.et(vanilla personal-papers mesh).LF_JailSlipComponentprints name, offence (wanted level), and online minutes left; the minutes replicate only when the whole minute changes. Hovering it in the inventory reads it (LF_JailSlipUIInfo). A respawn or a second arrest reprints the carried slip instead of adding one. No new save data. The prisoner's platform uid is not replicated (#2416, testjail/slip): the slip keeps it in a plain server-side field and replicates the display name (never the uid: a prisoner with no character name reads "unknown",#LF-JailSlip_Unnamed) and a printed flag. -
✅ Visible release (M1-21, tests
jail/slip,jail/online-time): release opens the cell door (DoorComponent.SetControlValue, the vanilla door motion and sound; it closes after 5 s), places the prisoner at the cell release offset (m_vReleaseOffset; DebugWorld0.15 0 10, outside the door), stamps the slip, then shows the toast 1.5 s later. Release runs once per sentence. The DebugWorld cell now sentences 60 s per wanted level, max 300 s (it was zero-length). -
✅ Jailbreak (#235, LOGIC
roadmap/jailbreak, WORLDe2e/roadmap-jailbreak,session.mjs jailbreak-proof). A serving prisoner who is outside the cell volume whileRoadmap_Jail_Dooris open has escaped:LF_Jail.NoteEscape(called each cell tick) reports it once throughLF_Dispatch.Reportas#LF-Offence_JailBreak(soLF_OnCrimeCommittedis on the bus, the board and pager carry it) and leaves the sentence and wanted level alone; going back inside re-arms it. The door reusesLF_Breach(arm, stay open until police repair). Fixed:m_bDebugLockedwas never applied (the component asked for no init event), so the placed jail door started unlocked;LF_LockComponentnow sets the INIT mask and applies it, and the per-componentm_bStartLockedworkarounds (jail, breach, lockpick) are gone. Harness verbchargehands the player a breach charge (dev gate). No save change. -
🔨 Booking at the jail (arrest flow review, 2026-11-22, merged, in-dev).
LF_JailBooking(Feature/Police/LF_JailBooking.c). The suspect'sLF_JailArrestActionwas "Send to jail" from anywhere within 5 m of any wanted player, no cuffs; it is now two booking options onCharacter_Roleplay.et, Book into jail: full sentence (m_iPercent 100) and Book into jail: reduced (cooperated) (50, at least 30 s, never above the full one;LF_Jail.Arrest(..., percent)), offered only when the suspect is cuffed and the officer stands within 15 m (BOOKING_METERS) of the placed cell. The cell notes its origin on every machine (LF_JailBooking.NoteCellinLF_JailCellComponent.OnPostInit) so the client offers it there;LF_JailBooking.Book(server) re-checks place and cuffs (or the officer's escort hold) and toasts the refusal (#LF-JailBook_NotHere,#LF-JailBook_CuffFirst). Escort needs the cuff: "Detain for escort" is now Escort and refuses an uncuffed suspect (client reason andLF_JailEscort.Grab), so the hands-up / downed rules of the cuff gate the whole chain. Take out of vehicle no longer books silently at the cell: the suspect steps out beside the car and the officer books with a chosen option (#LF-JailBook_AtStationtoast at the station). Waypoint: cuffing a wanted suspect puts a "Jail booking" waypoint on the officer's client through the existing job waypoint RPC (LF_MapShareComponent.ServerJobWaypoint, no new RPC); booking takes it off. The officer's first cuff in a session shows the how-to note (#LF-JailBook_FirstArrest). Prisoner clock:m_iLF_JailSecondsLeft(RplProp on the character, written fromHandSlip/RefreshSlip/Release, bumped only every 15 s or on a jump) drives a one-line HUD strip, "Jail: m:ss left" (UI/Layouts/HUD/LF_JailClock.layout), counted down locally between writes; harnessseenprintsjailclock=. Nothing new is saved. Testjail/booking(WORLD: refusals, reduced length, held in the cell, HUD seconds, release); session proofsession.mjs arrest-flow-proof(clock in, wanted, cuff, waypoint, escort, car, booking at the cell, HUD clock;--wait <s>the release).
Feature/Police/LF_PoliceMenu.c (arrest RPC and LF_PoliceUtils)
- ✅ The duty NPC has no menu (#2535). The
LF_PoliceMenumenu class, its layout, thePoliceMenupreset andLF_OpenPoliceMenuActionare gone: duty is the duty desk (LF_DutyAction), the wanted list is the station board, a fine is a paper ticket (LF_FineTicket*), and #2509 had already removed the blank Search and Arrest buttons, leaving a sheet with only Close.PoliceDutyNPC.etstays as a DebugWorld prop with no actions;LF_Test_PoliceDutyNpcNoMenuholds that. The arrest RPC andLF_PoliceUtilsstay for the planned wanted-list sheet. - ✅ Client→server bridge works (verified 2026-08-30): the arrest request goes
through
SCR_ChimeraCharacter.LF_AskPoliceArrest, and the server handlerRpcAsk_LF_PoliceArrestvalidates on-duty officer and wanted target before acting. Arrest also requires the configured arrest rank (patrol on the flagship, #165).LF_PoliceUtils(pure) holds the sentence-length math and the reach check for tests;MAX_FINEis the senior ticket cap. The client-side self-promote RPC is gone (#2416): it only ever refused and logged every call;LF_PoliceRanks.RequestSelfPromotionstays as the server rule for a promote that names the caller. - ✅ Arrest starts a sentence (verified 2026-10-11): the arrest RPC calls
LF_Jail.Arrestafter the rank gate and no longer clears wanted or teleports to"127 1 137". - ✅ Hands-on only (2026-11-07): arrest refuses a
target that is not connected or stands beyond
LF_PoliceUtils.POLICE_REACH(5 m, the in-world arrest range) and shows#EL-Police_TooFar. Neither the framework nor vanilla has a restraint state, so reach is the requirement. Test:security/police-abuse.
LF_FineTickets — Feature/Police/LF_FineTicket*.c
- ✅ A fine is a paper ticket paid at the police desk (M1-19, #104;
decision 2026-11-08). An on-duty officer facing a player picks Write ticket
(the
fineslot of the player interaction menu,LF_FineTicketRole, no prefab edit). The server opens the ticket pad (LF_FineTicketPad, paperLF_UIScreen) on the officer's machine: one "Write: , " button per offence from the crime catalog's offences with a fine (LF_CrimeCatalog.conf) at their fixed amount; offences above the officer's rank cap (LF_PoliceRanks.FineCap: patrol 1000, senior 5000) print as a plain "senior officers only" line. The server re-checks duty, reach (2 m), the cap, and at most 3 unpaid tickets per holder, then hands overPrefabs/Items/Roleplay/FineTicket.et: number, date, holder, offence, amount, deadline, what it rises to, where to pay, officer rank and name. Cues: the officer's point gesture, the paper sound from the ticket, the holder's pick-up gesture, and the ticket card on the holder's screen. Inventory hover and Read (on the ground) show the same text. - ✅ Pay ticket on the punch clock of
LF_PoliceDutyDesk.et: carried cash only (LF_EntityCashWallet), never the bank, all or nothing, oldest unpaid first. The clock's punch sound stamps it for everyone nearby; the carried paper turns into a receipt ("PAID "). - ✅ Deadlines in online time (like the jail sentence): unpaid after
m_iTicketFirstDeadline(1800 s) the amount is multiplied once bym_fTicketLateMultiplier(x2) and the paper updates; after a furtherm_iTicketSecondDeadline(1800 s) the holder gets the catalog's#LF-Offence_UnpaidFineamount (+1) wanted and a named "Unpaid fine" poster on the wanted board. Still payable after; paying does not lift the warrant. Logs:[LFDebug:Ticket]. - ✅ Persisted (save version 12, payload
tickets). A restart's blank copy is reprinted on spawn; a respawn hands an unpaid ticket back. Up to 3 paid receipts per holder are kept for reprinting. Tests:police/fine-ticket-rules,police/fine-ticket,police/fine-ticket-serializer. - 🔨 Ticket request limit and a private paper (#2416, in-dev).
RpcAsk_LF_WriteTicketcounts each request againstLF_FineTicketRole.AllowWriteRequest:ticketRateBurst(3) perticketRateWindowSeconds(10, at most 60) per officer (police config;LF_RateLimit.AllowWithAt, kindTICKET). The first refusal in a window logs[LFDebug:RateLimit]and toasts#LF-RateLimit_Slow; the rest are counted into one line when the window rolls over. The paper's replicated fields (LF_FineTicketComponent) no longer include the holder's platform uid, which every client streaming the item could read; the display name stays and the uid lives in the server'sLF_FineTicketRecord. Testpolice/ticket-request-limit.
LF_DutyAction — Feature/Police/LF_DutyAction.c
- ✅ The police kit carries the station car key (2026-11-08, WORLD
police/car-key): the starter police kit addsPrefabs/Items/Roleplay/LF_PoliceCarKey.et, a vehicle key bound to the shared identifierPOLICE;Roadmap_Escort_Car's lock is bound to the same, so every officer's key opens every station car. The key is part of the duty inventory (clock-out stores it with the uniform). The car is a world entity, not an owned record: no garage, no impound, back at the station after a restart.LF_VehicleKeyComponentnow asks for its INIT event, so an editor-bound key actually takes its identifier (before, it stayed unbound). - ✅ Clock in / Clock out at the duty desk (M1-11, 2026-11-08; WORLD
police/duty-swap,police/death-on-duty,police/station; restart viawt e2e).Roadmap_Police_DeskisPrefabs/Police/LF_PoliceDutyDesk.et(desk + vanillaClockPunch_01). The offer reads the roster bit ofLF_AccountReplication; the server re-checksLF_WhitelistManagerandLF_DutyLockerswaps the whole carried inventory, clothes included: clock-in stores the civilian tree ascivilian_stashand restorespolice_duty(or the starter police kit, the POLICE entry ofLF_SpawnLogic.m_aFactionCharacterItems); clock-out does the reverse and pays duty pay. The faction is the duty role: POLICE only while clocked in. Feedback: the vanilla pick-up gesture on the acting client, the range control panel button click (SOUND_RANGECP_STARTBUTTON) broadcast from the desk, then a toast. Death on duty ends the shift: the body keeps the police gear, the civilian stash becomes the carried snapshot the respawn restores, and the next shift starts from the starter kit. Going on duty starts the rank clock; going off duty settles it.PoliceStation_DebugandPoliceDutyNPCno longer offer duty. The debug menu's police button still sets the role without a swap (dev only). - ✅ Duty pay at the desk (verified 2026-11-08: LOGIC test
jobs/duty-pay; the 2-client cash check is manual). Going off duty pays the shift's on-duty seconds timesm_fPoliceDutyPayPerSecond(Configs/Jobs/LF_Jobs.conf, flagship 0.25 since 2026-11-18, was 0.5) as cash throughLF_DutyPay.PayAtClockOut, with the pick-up sound and a#EL-Duty_Paidtoast. Seconds settled by an armory draw mid-shift are kept for the clock-out. A second clock-out, a clock-out with no clock-in, and a non-police account pay nothing. Unpaid seconds are session state: a restart during a shift drops that shift's pay, it never pays twice. - 🔨 Duty pay and rank count only a capped, connected shift (#2416, in-dev).
LF_PoliceRanks.SettleDutyAtcounts at mostdutyShiftMaxSeconds(police config, 10800 = 3 h; 0 = no cap, #2622) of one clock-in for pay and rank (ShiftCredit); the clock runs on uncounted until the officer clocks out and in again, so an AFK officer earns at most one capped shift per visit to the desk. A disconnect settles and stops the clock (LF_PoliceRanks.OnPlayerLeft, fromOnPlayerDisconnected): the officer stays on duty with the body and kit, but the time away is never counted.OnPlayerReturned(on spawn) starts the clock again inside the same shift cap, which also restarts the clock of an officer whose on-duty flag survived a server restart. The cap applies to every duty role (police and medic). Log[LFDebug:Ranks] shift cap reached,duty clock stopped,duty clock resumed. A connected officer who stands idle is paused by the idle sampler below. The shift's counted seconds are session state: a server restart gives a fresh cap. The cap log fires once per shift. Testspolice/duty-shift-cap,police/duty-clock-disconnect. - 🔨 A dedicated server sees an officer who only looks around (#3154, in-dev, proof
duty-idle-proof). The idle sampler reads the server's copy of a remote client's aim, and that copy follows the client: on a dedicated session a client on duty that only pitched its view for 360 s kept the clock running, and the same client standing still was paused about 330 s later. - 🔨 Duty pay pauses while the officer or medic stands idle (#3120, in-dev, WORLD
police/duty-idle).LF_DutyIdlesamples every connected on-duty player every 30 s. Moving more than 2 m (on foot or in any vehicle; a seat follows the vehicle's position) or turning the view about 10 degrees counts as active, so patrol, a desk, a parked car with the officer looking out and driving to a call all keep the clock running. AfterdutyIdleSeconds(jobs config, default 300; 0 = off) with none of that, the clock is settled at the moment the window ran out and stopped; the idle time earns no pay and no rank time. The next sample that sees activity starts it again (at most 30 s late). Rank rates are untouched. A logout while paused needs nothing: the spawn restarts the clock (ResumeDutyClock). Watches are runtime only. Log[LFDebug:DutyIdle] duty clock paused,duty clock resumed. - 🔨 A character switch settles the duty clock first (#2838, in-dev, LOGIC
police/duty-clock-character-switch). Every change of the account's active character (a pick, a new character made active, the active one removed) runsLF_PoliceRanks.SettleForCharacterSwitchbefore it: the running seconds go to the outgoing character's rank time and the shift's pay, and the clock stops. Logout already settled at the disconnect. Log[LFDebug:Ranks] duty clock settled for <uid> (character <key>) before a character switch. Medic rank time follows the same settle once medic ranks (#2837) land. - 🔨 Administrators set or demote a police rank (#2838, in-dev, LOGIC
police/rank-admin-set). Chat/policerank <account uid> <rank>(LF_PoliceRankAdmin). The server checks the caller (engine administrator or staff roster leveladministrator, as for application decisions), the account and the rank (0 to the top rung). It settles a running duty clock, sets the active character's rank and logsrank set by administrator <caller>: <uid> (character <key>) rank <old> -> <new> (promotion|demotion|unchanged). A demotion restarts the character's on-duty seconds at the start of the new rank, so the next accrual does not promote them back. Refusals are logged and shown to the caller. Medic ranks are not covered yet (#2837 is not merged). - 🔨 A rank change settles the shift at the old rank; a demotion takes kit above the new rank (#2874, in-dev,
LOGIC
police/duty-pay-rank-change, WORLDpolice/armory-demotion-strip). Every rank change (a promotion at the station, a time promotion,/policerankup or down, a medic time promotion) first settles the duty clock, then restates the unpaid seconds earned so far at the new rank's rate (LF_DutyPay.AfterRankChange, rounded up, loggedrank change settled the shift: <s> unpaid s at rate <old> carried as <s2> s at rate <new>), so clock-out pays each part of the shift at the rank held for it. One settle that crosses a time-promotion threshold is split there (LF_PoliceRanks.SecondsToNextRank). No save change and no money moves before clock-out. A/policerankdemotion takes off the officer every issued armory item the new rank's offer gate refuses and turns its serial in (LF_PoliceRanks.StripKitAboveRank, loggedkit above rank <r> taken from <uid>, toast); an offline officer loses it at their next spawn. Plain kit lines with no serial (spike strip, roadblock kit) are not tracked and stay. - 🔨 Outcome bonuses, capped per hour by rank, paid with the shift (#4210, in-dev, LOGIC
jobs/duty-bonus-cap).LF_DutyBonus.Award(account, kind)adds a fixed amount to an on-duty account's pending bonus: a call resolved $15, a booking $10, a stolen car $20 (police), a revive $10, a delivered patient $15 (medic). The hour window opens at the first bonus; inside it the total stops at the rank's cap (police $100/$100/$100/$95/$70, medic $40/$50/$50/$40; the plan's economy table), loggedbonus +#x3C;n> (<kind>) ...orbonus capped for <id>. Clock-out (LF_DutyPay.PayAtClockOut) pays the pending bonus as cash beside the shift pay (ledger reasonduty-bonus); a bonus that does not fit is kept for the next clock-out, and clocking out does not reopen the hour's cap. Fines and bail never reach this ledger.LF_MedicDutyBonus.Installawards revives and deliveries from the bus; a bed delivery's own revive is refunded when its delivery follows, so the pair pays $15. Live in play since #4319 (LOGICjobs/duty-bonus-wiring, PERSISTENCEjobs/duty-bonus-persist):LF_GameModeRoleplaycallsLF_MedicDutyBonus.Install().LF_DutyBonus.AwardUid(uid, kind)is called byLF_PoliceCallPay.Settle(a fine at the scene completes the call) andLF_CallOutcome.Closewith RESOLVED (no one found and unfounded earn nothing) for the $15,LF_JailBooking.Bookfor the $10 andLF_StolenVehicles.Recoverfor the $20 (not when the officer reported the car themselves). The ledger is thedutybonussave section (LF_DutyBonusSavePayload, rows of account id, pending, window start, window earned), so a restart keeps the unpaid bonus and the hour's count. - 🧪 Alpha: the station desk approves on submit (rc 0.2.0, LOGIC
police/alpha-instant-approval). Owner keypolice.alphaInstantApproval(off by default; on inserver/flagship/config.jsonfor the alpha only) makesLF_PoliceApplicationFormtake the playtest path (LF_PoliceApplicationRules.ApprovesOnSubmit): the application is filed without the playtime gate or cooldown andApproveInstantputs the account on the roster with no trial, so any player can apply at the duty desk and clock in without an administrator. Logapproved on submit: police.alphaInstantApproval is on (alpha only). Turn it off before the server opens to the public (server/flagship/README.md"Alpha pacing"). - 🔨 An expired trial ends the shift (#2416, in-dev).
LF_PoliceTrialSweepruns on the server everytrialSweepSeconds(60): it expires trials (ExpireTrials), then clocks out each connected on-duty officer whose trial ended unpromoted and who may no longer clock in (LF_PoliceApplications.TrialExpiredFor, roster check), through the desk's ownLF_DutyLocker.ClockOut(shift pay, gear swap) and toasts#LF-Duty_TrialExpired. The sweep settles each connected officer's clock before expiring, so seconds that earn the promotion end the trial first. An officer who was offline, or on the spawn screen with no body, is left alone until a sweep finds them with a body; an admin who puts them back on the roster keeps them on duty. Log[LFDebug:Police] trial of <uid> ended on duty. Testspolice/trial-expiry-duty,police/trial-expiry-clock-out. - 🧪 A duty press off the roster is refused by the server, logged and toasted (rc 0.2.0, LOGIC
police/duty-desk-roster-refusal):LF_DutyAction.ClientRefusalgreys only a missing account and the wrong desk; a player off the police roster now reachesLF_DutyLocker.ClockIn, which logsclock-in refused for <uid>: #LF-Duty_NotOnRosterand the desk toasts "Only officers on the police roster can clock in. Use Apply at this desk to join". Before, the client greyed it and nothing reached the server or the player. - ✅ Toggling keeps the account resident:
SaveAndReleaseAccountre-caches the account instead of evicting it, so the officer can reopen the police menu and re-toggle at once. - ✅ Dedicated client (verified 2026-11-07: dedicated/* tests, server side; client receipt is manual): the toggle
runs on the server only; the offer and the name (
#LF-Duty_ClockIn/#LF-Duty_ClockOut) readLF_AccountReplication.
LF_WantedReports / LF_WantedBoard — Feature/Police/
- ✅ Crime reports (M1-11, LOGIC
police/wanted-board): each crime that raises wanted (till, vehicle and weapon robbery, breach, hospital till) callsLF_Dispatch.Report(M1-20), which callsLF_WantedReports.Report. It records the offence and a description of the suspect at that moment: clothing display names, the vehicle they sit in, and the nearest map town or landmark (LF_NamedPlaces.Nearest, #1944, WORLDpolice/dispatch-names-place: "bank robbery, Saint Philippe"), else the nearest sign title withinm_fPlaceRadius, else a 100 m grid square. The town wins over a sign (#3092): on the island the bank's fascia sign stood nearer than the town label and the call read "Bank". The place is stored as a localization key and localized where each board and radio line is built; the core holds no place names. In town the hospital till's alarm stands onHospital_AlarmBox(an alarm mount on the hospital front wall,Street_Hospital.layer) and the pack names the town "Saint Philippe" (Place_SaintPhilippe, town pass #1947). An on-duty officer withinm_fCatchInActRadius(Configs/Police/LF_Police.conf) catches it in the act and the report is identified at once. Showing your own ID card to an on-duty officer (LF_ShowIDAction) identifies every open report. Reports come down when wanted returns to 0, and persist as thewantedpayload (save version 10). - ✅ Wanted board
Roadmap_Police_WantedBoard(Prefabs/Police/LF_WantedBoard.et, a corkLF_Sign_Boardprinting WANTED): "Read the wanted posters" asks the server per read (RpcAsk_LF_Boardwith kindwanted, the server finds the board near the reader). On-duty police get offence, stars, clothing, vehicle, and place; everyone else gets the public poster without the place. A name appears only on identified reports. The card is anLF_UIScreenpaper sheet that closes 4 m from the board; reading plays the map pick-up sound and gesture. On-duty police also see the dispatch log under the posters (M1-20). - ✅ Posters on the wanted board's face (#758,
docs/architecture/visual-boards-spike.mdissue 1, budget indocs/architecture/visual-boards-budget.md): every player near the board sees a paper poster per wanted suspect pinned on the cork, without reading it: WANTED, the name once identified (else UNKNOWN PERSON), the offence, what was seen (Wearing ...; driving ..., the line left off when nothing was seen) and the wanted level.LF_WantedPostersbuilds the public list on the server (one poster per suspect, newest first, no place) on bus events (LF_OnCrimeCommitted, the newLF_OnWantedChangedandLF_OnSuspectIdentified) and after a load, coalesced to one broadcast; the board'sLF_WantedPosterBoardComponentsends it byRplSave/RplLoad(late join, stream-in) and a reliable broadcast. Each client draws one render target over the cork (Prefabs/Props/Signs/LF_BoardFace.et, a 16:9 quad, the vanilla cork texture under the posters) withindrawRadius(30 m) and releases it 5 m beyond; the face renders live for 3 s after a change and then freezes, which the budget measured as nearly free. Owner config sectionwantedBoard:posters(4, at most 8 in two rows) anddrawRadius. The Read card and the police-only lines are unchanged; the dispatch boards keep their painted face (m_bDrawPosters 0; decision 2026-11-13). Readable to about 4 m at noon; at night it has no light of its own, like every other sign (session.mjs wanted-posters-look-prooftakes the pictures). Testspolice/wanted-posters-feed,police/wanted-poster-face; proofsession.mjs wanted-posters-proof. - ✅ Stolen cars on the wanted board's face (#758, spike issue 5): a car its owner
reported stolen (
LF_ReportStolenAction) takes one of the last places (wantedBoard. stolenPosters, 1) as a STOLEN poster: a picture of the model (the prefab's own preview, in its default colour), the plate on a white strip, the car's name and "Seen it? Tell the police." The report carries the vehicle prefab's GUID; no place or owner reaches the face. Rebuilt onLF_OnVehicleReportedStolen,LF_OnVehicleRecovered,LF_OnVehicleChoppedand any closed report. Testpolice/wanted-posters-stolen; proofsession.mjs stolen-poster-proof(up --clients 2 --mission playtest). - ✅ Portraits on the wanted posters (#758, spike issue 4): the server records the
suspect's look at the crime (
LF_WantedLook.Capture: the character prefab and each loadout slot's item as prefab GUIDs, no paths) on the report and in the poster entry. Each client dresses a dummy of that character in the preview world and the poster'sItemPreviewWidgetdraws it as a head-and-shoulders mugshot (a preview three frames wide, clipped by the photo frame), the same framing for a named and an unknown suspect. A report without a look keeps the empty photo frame. The face re-renders at 10 s and 30 s after a change so streamed textures land, then the dummies are deleted. The look is saved as thewantedlookspayload (save version 29, keyed by report sequence), so the portraits come back after a restart; a version 28 save loads its reports without a picture. Testspolice/wanted-look,persist/wanted-looks;wt e2echecks the look across a real restart. - 🔧 What the clothes hide (#2438, merged, in-dev): a witness report reads
LF_ItemCatalogue.Concealmentover what the suspect wears (LF_WantedLook.WornPrefabs,LF_WantedReports.ApplyConcealment). AconcealsBuilditem (the green raincoat) adds "build hidden" and aconcealsFaceitem adds "face hidden" to the clothing list, so the dispatch call, witness statements, the wanted board and the posters say so. A hidden face leaves no portrait (LF_WantedLook.Witnessed: the poster keeps its empty photo frame); a hidden build keeps it, since the portrait is head and shoulders and already wears the coat. The photo ID still callsLF_WantedLook.Captureand keeps the full face. Testpolice/wanted-look-conceal.
LF_Dispatch / LF_SiteAlarmComponent — Feature/Police/ (M1-20, #105)
- ✅ One crime entry point (LOGIC
dispatch/once):LF_Dispatch.Reportis what every crime calls (till, vehicle and weapon robbery, breach and bank vault, hospital cabinet, murder with no site alarm). It records the crime report, sounds the site alarm, radios on-duty officers, and appends a line to the dispatch log. A refused crime reports nothing; no crime refuses for lack of police (the per-crime minimum stays a framework attribute, 0 on the flagship).LF_Utils.AlertPoliceis gone. - ✅ Site alarm (WORLD
dispatch/site-alarm): a replicatedPrefabs/Police/LF_SiteAlarm.etspawns at the site, so only players the site streams to get it. It loops the vanilla siren (Structures_Siren.acp,SOUND_SIREN_LP) and flashes an orange light form_fAlarmSeconds(30). With nobody on duty when the crime starts it isLF_SiteAlarm_Loud.et: the vanilla loud siren (Structures_Siren_Loud.acp, 600 m), a brighter, faster flash,m_fLoudAlarmSeconds(60). A newer alarm at the same site replaces the old one. Durations, prefabs, and the radio sound are inConfigs/Police/LF_Police.conf; the sound, hear range, and light are attributes on the prefabs. The alarm is a small rotating beacon (vanillaHazardBeacon_01at 0.4, 0.21 m tall, no collision). It stands on the nearestLF_AlarmMountComponentwithin the mount's reach (LF_Dispatch.AlarmSpot, WORLDdispatch/alarm-mount): the bell box on the bank's east wall above the vault door (Roadmap_Bank_AlarmBox, vanillaElectricityBox_small_01) and the cash van roof. A site with no mount (the till counter) keeps the first surface under it (LF_Dispatch.RestingSpot, WORLDdispatch/alarm-rests). It used to be a 1.6 m beacon (3x) on the ground by the vault door and on the road behind the van (#571 maintainer review, 2026-11-11). The flash is LV 9 over 3 m, 0.3 m above the beacon (loud: LV 10 over 3.5 m); it was LV 12 over 10 m, which lit up the whole van rear on the trailer. - ✅ Radio dispatch: each on-duty officer's own client (Owner RPC on the
controller) hears a vanilla radio chirp from their body
(
Props_Radios_Signals.acp,SOUND_RADIO_SIGNAL_2), then a toast "All units: at . Suspect: ; on foot/driving ...". The line is built from the report's description snapshot; it has no name field. - ✅ Dispatch log on the wanted board: the newest
m_iDispatchLogLines(5) calls, "HH:MM at : N on duty, radioed" or "nobody on duty, loud alarm". Session-local (the posters are the persisted record). - 🔧 The alarm shows on everyone's map (merged, in-dev): a robbery report at a till, vault, clinic cabinet or armoury rings that place's map badge (red pulsing ring while in progress, grey "robbed recently" after); see
docs/features/map.md"Robbery alarm on the place badges". Read from the dispatch's police call; no new robbery logic. - Harness:
stateaddsdispatch=<n> lastdispatch=<offence@place> alarm=none|normal|loud;node agent-box/session.mjs dispatch-proofdrives the two-client run. - Manual: listening check (the siren loop and the radio chirp) and the light at night; payphones, pagers, and AI police are later.
LF_PoliceRanks — Feature/Police/LF_PoliceRanks.c
- ✅ Two ranks (verified 2026-10-11). Patrol officer draws
{1353C6EAD1DCFE43}Prefabs/Weapons/Handguns/M9/Handgun_M9.et, fines up to 1000 (LF_PoliceConfig.PatrolFineCap). Senior officer draws{3E413771E1834D2F}Prefabs/Weapons/Rifles/M16/Rifle_M16A2.etand fines up to the existing 5000 cap. The resolved kit is the intersection of that rank's list and the station catalog; a prefab that does not load is logged and skipped, and the rank stays usable. An on-duty officer promotes a lower one (rule in the promotion bullet below). 3600 seconds on duty promotes patrol.RequestSelfPromotionis the self-promotion RPC body and always refuses. Rank does not change faction and does not write the police whitelist. Lower ranks still open the wanted list. DebugWorld placesRoadmap_Police_Armoryat241.2 0 244.2(police station forecourt) onStreet_Police.layer. - 🔨 The flagship ladder (#1769, merged, in-dev;
LF_Police_Everon1989.conf): five ranks, Cadet, Patrol, Senior Patrol, Sergeant, Lieutenant. Fine caps 500, 1000, 2500, 4000, 5000; pay 0.0972, 0.1042, 0.1111, 0.1181, 0.125 per on-duty second ($350 to $450 an hour since 2026-11-22, #4178: the 0.3.0 pay ladder makes police the lowest steady pay; 0.25 to 0.35 from 2026-11-18, 0.3 to 1 before); duty to next 1h, 2h, 4h, 8h. A saved rank is the rung's index and a shipped rung cannot move, so the pack patches the core'spatrol(index 0) into Cadet andsenior(index 1) into Patrol and appends the other three. Titles are the pack'sLF-Rank_*rows. A saved rank above the ladder clamps to the top on load. - 🔨 Only an officer above the new rank promotes (#2095, in-dev).
LF_PoliceRanks.Promote(server) refuses unless the on-duty promoter's rank is above the rung the target moves into: on the five-rung flagship ladder a Patrol (1) cannot promote a Cadet (0) into Patrol, a Sergeant (3) promotes a Patrol into Senior Patrol, and a rank equal to the new rung is refused. The top rank is the ceiling (PromoterRankNeeded=min(target + 2, top)), so the Lieutenant still promotes into Lieutenant and a one- or two-rung core ladder keeps "the senior promotes the patrol". A refusal logs[LFDebug:Police]and toasts the promoter#EL-Rank_PromoteNeedsHigher. The armory action's server check (CanPromote) hides Promote from a rank that can promote nobody; the nearest-officer pick prefers someone the promoter may promote. Test:police/promote-rung. - 🔨 The station Promote action finds officers in play (#2416, in-dev):
FindLowerRankNearbyread only bodies tied byBindOfficer, which only tests call, so every real promote was refused "no lower-rank officer nearby". It now lists the connected players (LF_PromoteCandidates: each controlled body's account id and position) withinPROMOTE_RADIUS(5 m). Test:police/promote-finds-players. - 🔨 The flagship kit (#1942, merged, in-dev;
LF_PoliceKit_Everon1989.conf, listed after the ladder in the mission header): the pack overlay restates each rung'sm_aKit. Patrol (index 0) draws the M9 and the spike strip; senior and every rung above draw the M16, the spike strip and the roadblock kit (LF_Roadblocks.KIT, added to the station catalog inLF_PoliceRanks.Catalog, since a kit line outside it is not issued). A civilian cannot draw. Test:police/everon-kit. - 🔨 Radar gun with three speed classes (#4211, PO-R4, merged, in-dev):
LF_RadarGun.et(a vanilla binoculars mesh until the Blender model lands) carries Measure speed, offered to on-duty officers. The server traces the officer's aim up to 150 m for a vehicle, reads its velocity in whole km/h and classifies it against the road's limit (LF_RadarRules.Classify): 1 to 15 over is minor (road.speeding.minor), 16 to 30 road (road.speeding), over 30 serious (road.speeding.serious); at or under the limit is clear. A toast shows speed/limit and the class. The limit is the 50 km/h default (LF_RadarLimits) until the speed signs (PO-R5) give per-road limits. The gun is not yet issued in a kit. Test:police/radar-classes. - 🔨 One issued kit per officer, two hours apart, saved (#2416, in-dev; replaces the 2026-11-07 per-shift
draw mark, which clocking out and in reset).
LF_ArmoryKitsbooks each kit's serialled lines (the M9, the M16) to the officer's account (all its characters share one book) with the issue time (System.GetUnixTime). While any serial is out, the armory action issues nothing: an officer carrying the kit hands it in (the items are removed,#EL-Rank_KitReturnedor#EL-Rank_KitPartReturned); with none of it carried the first use warns#EL-Rank_KitOutstandingand a second use within 15 s reports it lost (each serial logged[LFDebug:Armory] <uid> reported serial <s> lost,#EL-Rank_KitReportedLost). A new kit also waitsarmoryCooldownMinutes(police config, 120) of real time after the last issue (#EL-Rank_DrawCooldown). The book is thearmorykitspayload (save version 45), so clock-out and restart keep both. Plain lines (spike strip, roadblock kit) carry no serial and are not booked. Tests:police/armory-kit-cap,police/armory-kit-turn-in,police/armory-cooldown-persist(with awt e2ereload check). - ✅ Rank, on-duty seconds, and unpaid duty seconds survive a restart (M1-10,
progressionpayload, save version 7). - ✅ Arrest and escort are config, open to every officer (2026-11-08, #165):
LF_PoliceConfig({916BDC092C01B7D1}Configs/Police/LF_Police.conf) sets the lowest rank that may arrest (m_iArrestMinRank) and escort (m_iEscortMinRank), and the patrol fine cap. Flagship: 0, 0, 1000, so a patrol officer arrests on a fresh server.LF_Jail.ArrestandLF_JailEscortre-check the rank on the server for every path (action, menu, escort to the cell); the offers read the replicated rank and show#EL-Rank_ArrestDenied/#LF-Rank_EscortDeniedwhen a server raises the minimum. A file that does not resolve logs once and uses the same defaults. Test:police/rank-permissions.
LF_Contraband — Feature/Crime/LF_Contraband.c (verified 2026-11-08, M1-14)
- ✅ One convoy. A member of the organization that owns the hideout performs
Start convoyatRoadmap_Convoy_Start, a pallet of wooden crates by the barn out of town (466 0 331), and is handed a crate of spirits:{968892A9535FE6A4}Prefabs/Items/Contraband/LF_ContrabandCrate.et, a hand-carried item onHandCarryItem_Base.etwith the vanillaBoxWooden_01.xobmesh (carry poseplayer_carry,SOUND_PICK_UP). A member already holding one keeps it; full hands logpickup refused: hands fulland toast#LF-Contraband_HandsFull.Deliver contrabandatRoadmap_Convoy_Drop, an empty crate cage behind the pub on the square (131.5 0 284, off the farm lane), takes the crate and pays 200 MoneyStack cash in hand once (SOUND_PICK_UP). A second delivery on that run pays nothing. A non-member is refused and the refusal is logged. The hideout machine also outputs the crate. Dressing onStreet_Contraband.layer: crates and a kerosene lamp on the pallet, a parked vanillaS1203_cargo_brownvan (Convoy_Barn_Van) at the barn; beer kegs, empty crates, bottles, and a lamp at the pub's back door. SignsSign_ConvoyPickup(barn front wall) andSign_ConvoyDrop(pub east wall) onSigns.layerexplain both ends. Both action contexts sit 0.6 m up, on the cage. Player strings:#EL-Contraband_Start,#EL-Contraband_Deliver,#EL-Contraband_NotMember,#EL-Contraband_Paid,#EL-Contraband_Failed,#LF-Contraband_Loaded,#LF-Contraband_HandsFull,#LF-Contraband_Crate_Name. - ✅ The vehicle the member is in at
Start convoy, or the first one they get into afterwards (SCR_CompartmentAccessComponent.GetOnCompartmentEntered), is watched. Getting out of it withinLF_Contraband.DROP_RADIUS_M(25 m) of the drop ends the drive and keeps the run for the delivery (convoy reached the drop); getting out anywhere else, or dying, fails the run and logs it; a failed run pays nothing. WORLDe2e/roadmap-contrabandcovers the crate (mesh, hand-carry, flagged) and both outcomes of getting out. - ✅ Debug drop is close to the barn (#616).
LF_GameModeRoleplay.m_bConvoyNearDrop(on inGameMode_Roleplay_Debug.et, off on the flagship prefab) picks the drop: on, the run usesRoadmap_Convoy_Drop_Near(466 0 304, 27 m from the barn pallet, a second crate cage inStreet_Contraband.layer); off, the pub'sRoadmap_Convoy_Drop.LF_Contraband.DropIdFor(bool)/ActiveDropId()choose it; the inactive cage hides its Deliver prompt (LF_ConvoyDeliverAction) and refuses. Pickup sign and loaded toast now say "the convoy drop", not "the pub". Test:roadmap/contraband,e2e/roadmap-contraband. - ⚠️ Not driven end to end by automation: whether a player can board with the crate in hand or must stow it in the vehicle's cargo is a manual check.
- ✅ Vehicle watch lifetime (2026-11-08): payment, failure, and
Resetunregister theOnCompartmentLefthandler; a restarted run drops the old watch and watches the vehicle the player is in now. A disconnect fails the running convoy. - ✅ The refusal reaches the player (2026-11-08, #157): a start refused for
membership shows a toast with the reason,
#LF-Contraband_JoinOrg(no organization: join or found one at the organization desk) or#LF-Contraband_NotHideoutOwner(your organization does not hold the hideout).LF_Contraband.StartRefusalKeypicks it. Before this the server loggedconvoy refused: not a memberand the player saw nothing. - ⚠️ The crate still offers "Start convoy" to everyone: a client cannot see organization membership, so the reason arrives after the press, not on the offer.
LF_Stun and the taser — Feature/Police/LF_Stun.c, Prefabs/Weapons/Handguns/Taser/ (#341 spike, 2026-11-13)
- ✅ A stun weapon downs a player for a few seconds and wounds nobody. A weapon prefab that carries
LF_StunWeaponComponent(m_fStunSeconds,m_fRange) is a stun weapon. On the server,SCR_CharacterDamageManagerComponent.HijackDamageHandlinghands every kinetic hit toLF_Stun.TryHit; when the shooter holds a stun weapon the damage is discarded, and inside the reach the victim enters the downed state (LF_Downed: the same replicated flag and vanilla unconsciousness, so a late joiner sees it) marked as a stun. A stun starts no murder attribution, the player cannot give up out of it (LF_BleedOut.GiveUprefuses), a disconnect while stunned is not a death, and the server wakes them afterm_fStunSecondswith the health they had. A stale wake does nothing (token), a revive ends a stun early, an already downed player is not stunned, and a hit out of reach or on an NPC is absorbed with a log line.LF_Stun.Decideis the pure rule. Toast#LF-Police_Stunned. Logs[LFDebug:Police] player <uid> is stunned for <n> s. - ✅ The owner now recomputes consciousness when the downed flag sets, too (
LF_OnDownedReplicated): a stun damages no hit zone, so without it the stunned player's own client kept walking. - ✅ Taser (
Handgun_Taser.eton the vanillaHandgun_M9_base.et, 8 s, 10 m): its own magazine well (LF_MagazineWellTaser), so a pistol magazine does not fit, a one-round cartridge (Magazine_Taser.et), and a 1-damage projectile (Ammo_Taser.et, listed in theAmmoList.confoverride the magazine system needs; testresources/ammo_listandvalidate-ammo-listfail when a round an addon magazine uses is missing from it, #1643). One lies on the DebugWorld police desk (Roadmap_Police_Taser). Testpolice/stun;session.mjs taser-proofon two clients: taken from the desk, the target is stunned and seen stunned by both, give-up is refused, and they get up. - ⚠️ The model (v2, 2026-11-13, a boxy yellow and black body with a slim grip the hand closes around) is a generated placeholder (
docs/asset-inventory.md); the cartridge wears the vanilla magazine mesh; the muzzle flash is still the M9's. No agent has fired a dart at a player: the proof enters at the damage handler (shootverb). Any kinetic hit by a player holding the taser counts as its hit. The officer gets no taser from the armory or duty kit yet. Manual steps in the PR. - ✅ Taser sounds (2026-11-13, asset pipeline sound stage): the taser lists its own sound projects in place of the M9's shot and handling (
Sounds/Weapons/Handguns/Taser/):SOUND_SHOTis a pop and a second of electric crackle,SOUND_DRYa plastic click (three takes),SOUND_RELOAD_MAG_REMOVEandSOUND_RELOAD_MAG_INSERTthe cartridge out and in. The M9's slide sounds are gone with its handling project; melee, pick-up and drop stay vanilla. All generated with ElevenLabs (tools/assets/taser/sounds.json,docs/credits.md). Testpolice/taser_sound. - ✅ The stunned body falls, stays down and gets up (#1857, 2026-11-15): a stun is a knockout (
Feature/Medic/LF_Knockout.c, reusable for a punch). The server owns the decision and the timer; the replicated knockout flag makes the machine that owns the body start vanilla's ragdoll (CharacterControllerComponent.Ragdoll, owner-only; the engine replicates it to proxies) and hold it withRefreshRagdollfor the stun. The wake releases it (RefreshRagdoll(0)), keeps the character unconscious 1.5 s while it settles prone, then the vanilla wake-up leaves them lying prone and in control. Refused, and nothing changes, on a dead, medically downed or vanilla-unconscious character; ending one never revives anyone. While stunned the target counts as downed, so an officer can cuff them (LF_Restraint). Testmedic/knockout;session.mjs taser-ragdoll-proof(2 clients, full): ragdoll on owner and peer, release at 8.0 s of 8, prone, then ALIVE. Harnessstate/peerslines carryragdoll=andstance=. Logs[LFDebug:Medic] knockout ragdoll on <uid> starts|released. - ✅ Stun buzz (
LF_StunBuzz, 2026-11-13): while a player is stunned an electric buzz loops on their body (SOUND_LF_STUN_LP, heard to about 60 m). The stun flag on the character is now replicated (m_bLF_Stunned); each client starts the loop when it sets and ends it when it clears, a host included, with a 30 s cap.session.mjs taser-sound-proofon two clients with--sound: the taser knows and plays its four events and not the M9'sSOUND_RELOAD_BOLT_PULL, both clients start the buzz with the stun and stop it at its end, and client 1's audio is recorded. - ✅ A taser hit is police contact; the stun statics reset at world end (#2543, 2026-11-17).
LF_Stun.ApplycallsLF_Stun.StampContact, which stampsLF_PoliceContact("stun") on the victim when the shooter's account is an on-duty officer, so a wanted player who is tased and logs out falls under the logout rule, as with cuffing. A stun from anyone else stamps nothing.LF_StunandLF_StunBuzzeach have anLF_StaticResetHook(LF_Stun_StaticResetHook,LF_StunBuzz_StaticResetHook): the stun counters, the buzz counters and the playing map clear; the audio sources die with the world. Testpolice/stun-contact. - ⚠️ No ear has judged the sounds: an agent read spectrograms and a recording of the client. A fired shot and a real reload (the animation's own events) are manual steps. A client that joins during a stun was not tested. A client out of earshot when the stun starts does not get the buzz by walking closer.
LF_ConfiscateAction — Feature/Police/LF_ConfiscateAction.c
- ✅ (2026-11-08, M1-12) Search in the player interaction menu: shown to on-duty police within the 2 m reach; deletes the weapons of the wanted player in front of them (the action owner), not the nearest wanted player. Weapons are collected before deletion. Earlier contract: on-duty police delete weapons from a wanted player. The offer reads replicated officer and target state; the deletion runs on the server only and re-checks the officer's account (verified 2026-11-07: dedicated/* tests, server side; client receipt is manual).
- ⚠️ No compensation or wanted reduction.
- ✅ The search reads item legality (#1764,
Feature/Catalogue/LF_ItemSearch.c): every search, wanted or not, checks each carried item (inventory and equipped weapons) against the item catalogue (LF_ItemCatalogue.OffenceForwith the carrier's licences). An item that is an offence for that carrier is listed, dropped and deleted on the server, and each offence kind is filed once throughLF_WantedReports.Report(#LF-Offence_UnlicensedItem,_RestrictedItem,_IllegalItem); the officer sees "Contraband found and seized". A pistol withFIREARM_PERMITis left alone. An on-duty officer is not checked, because the police kit issues the catalogue's M9 without the civilian permit. Testcatalogue/search-legality. Logs[LFDebug:Catalogue] search of <uid> flags <prefab>: <offence>. - ✅ The duty M9 is lawful police issue (#2096, Refs #1979): the armory and the patrol kit hand out
Prefabs/Weapons/Police/Handgun_M9_Service.et(LF_PoliceRanks.SIDEARM), a child of the serialledLF_ArmoryM9and so of the base-game M9. The catalogue lists it aspistol_m9_service, legalitylegal, so an off-duty officer searched with it keeps it and nothing is filed; the plainpistol_m9withoutFIREARM_PERMITis still seized. The pack'spolice_armory/pistol_m9offer issues the service prefab and the kit confs list it. Testcatalogue/service-pistol-lawful. - ✅ The officer reads what was seized (#2154, Refs #1978): the search toast is "Seized from : AKS-74U, 2x 30-round magazine", one line per item kind with a count in front when more than one, cut to three kinds and "and N more" (
LF_ItemSearch.SearchAndSeizeout list,LF_ItemSearch.SeizedText; testLF_Test_SearchSeizedList). A search that took only chain goods keeps "Contraband found and seized". - ⚠️ A seized weapon's serial names its outlet (#2153).
LF_Restraint and the handcuffs — Feature/Police/LF_Restraint.c, Prefabs/Items/Roleplay/Handcuffs.et (#664, 2026-11-13)
- 🧪 The live game mode carries the duty kits (rc 0.2.0, WORLD
spawn/roleplay-duty-kits):GameMode_Roleplay.et(the island and every core server) now holds the POLICE kit (flat cap, dark turtleneck, black trousers, officer harness, boots, ALICE pack; M9 and two magazines, station car key, pager, handcuffs, radio) and the MEDIC kit, which onlyGameMode_Roleplay_Debug.ethad. Before, an island officer clocked in with the generic civilian items (no kit configured for role POLICE) and every cuffing was refusedNO_CUFFS. - ✅ An on-duty officer holding handcuffs cuffs a downed, stunned, or held-up and unarmed player. Two entries in the player interaction menu (
Character_Roleplay.et, contextLF_ID): Cuff (LF_RestrainAction), offered to an on-duty officer whose left hand holds an item withLF_HandcuffsComponent, and Uncuff (LF_ReleaseRestraintAction), offered to any on-duty officer facing a cuffed player. The server decides (LF_Restraint.Restrain/Release): the request goes throughLF_RateLimit(SPAWN), the officer's real account must be on duty, the cuffs must be in hand (HeldCuffs: the gadget manager's held gadget, else the controller's left-hand attachment, both readable on the server), and the target must be downed (LF_Downed, a taser stun included) or compliant: held up (LF_HoldUp.HeldUpAt) withinm_iCompliantSeconds(LF_Police.conf, default 60, 0 = downed only) and holding no weapon. Every refusal logs and toasts the reason.DecideRestrain,DecideReleaseandIsCompliantare the pure rules (testpolice/restraint-rules). - 🧪 Hands up counts as compliant for the cuffs (rc 0.2.0, LOGIC
police/restrain-hands-up):LF_Restraint.IsCompliantNowreadsLF_Restraint.Complies, which also passes a target with their hands up (SCR_ChimeraCharacter.LF_IsHandsUp) and no weapon. Before, a suspect who raised their hands to an officer's aim could be searched (LF_HandsUpGate) but not cuffed unless they had been held up in a robbery-style hold-up. Armed never complies;compliantSeconds0 still limits cuffing to downed players. - ✅ The cuffs are consumed onto the suspect and come back. Cuffing deletes the officer's pair and records its prefab against the prisoner; release puts a pair in the releasing officer's inventory (at their feet when full). An arrest at the cell (
LF_Jail.Arrest) takes them off and returns them to the arresting officer; a cuffed body that dies (bleed-out, give-up) returns them to the officer who cuffed it; a prisoner who disconnects returns them too. Logs[LFDebug:Police] restrained <uid> by <uid> (downed|held up, cuffs <prefab>)andrestraint off <uid> (<why>); cuffs <where>. - ✅ A cuffed player keeps walking but holds nothing. The replicated flag
m_bLF_Restrainedon the character reaches every client and a late joiner; the owner's controller disables weapon controls, holsters the weapon and puts away a held gadget, and gives the controls back on release (testpolice/handcuffs). Every client with a renderer shows a cuff on the suspect's right wrist (Handcuffs_Worn.et, spawned locally and attached to therighthandpropbone the way the vanilla loiter props are, a ring turned onto the forearm; never replicated). - ✅ The server enforces the cuffs (#2417, 2026-11-17,
Feature/Police/LF_CuffEnforcement.c). The owner-side weapon block above is UX; a modified client ignores it, so the server refuses a cuffed character's requests itself. Damage whose instigator is cuffed is swallowed inHijackDamageHandlingon the character damage manager (whose vanilla hook does not call super), onSCR_DamageManagerComponent(vehicles, props) and at the top ofLF_Stun.TryHit(darts); a cuffed character's own fall and bleeding already running are not refused. A cuffed character who reaches a driver's seat (SCR_CompartmentAccessComponent.OnCompartmentEntered, which fires on the server) is put out of it the next frame, and a driver who gets cuffed is put out at once; cargo seats stay allowed for prisoner transport. Till (CommitRobbery,REFUSED_CUFFED), held till (LF_RobHold.Refusal/Start), vehicle, weapon and vault robbery,LF_Lockpick.BeginAs, and the interaction menu's give cash, give item and role actions (LF_PlayerInteraction.ServerAllows) are refused; introduce stays open. Each refusal logs[LFDebug:Police] refused <what> from cuffed <uid>and toasts#LF-Restrain_NotWhileCuffed. Testspolice/cuffs-server-rules,police/cuffs-server-refusals. A cuffed driver is put out beside the vehicle: a body this machine owns here, a remote-owned body through its owner (theLF_Jaildismount path), asked again every second up to 5 times; a running lockpick or held robbery ends when the cuffs land. Not covered: vanilla item use (eating, a medkit), opening another storage while cuffed, and damage to mines or destructible buildings (their vanilla hooks never reach the base one). - ✅ The handcuffs (
Handcuffs.et, a held gadget on the vanillaItem_Base.et) are the first asset of the pipeline'sgadgetkind: first a Meshy model (generation ids intools/assets/handcuffs/meshy.json), since 2026-11-14 a Blender model with articulated strands (tools/assets/handcuffs/model.py, no credits). On-duty police get a pair in the DebugWorld police kit; one lies on the police desk (Roadmap_Police_Handcuffs).session.mjs cuffs-proofon two clients: clock in, down the suspect, hold the cuffs, cuff, both clients read the suspect cuffed, release, both read them free, the cuffs are back; a cuffed player who dies gives them back. - ✅ Held in a closed fist (2026-11-14). The handcuffs, the lockpick (
LF_Lockpick.et) and the pager (LF_Pager.et) borrow the vanilla MX991 torch's hold pose (Flashlight_MX991.agr,MX991_player.asi,m_eAnimVariable MX991) instead of the gauze graph, whose anim set has no hold clips (the hand stayed open under the item). The cuffs are gripped by their lock boxes with one ring above the fist and one below; the lockpick and pager stand upright in the fist. Dropped, all three lie flat (seen in a session); the lockpick and pager hadRestingUP Forward, which stood the lockpick's length and the pager's width upright. Values come from each spec'sstatesblock (tools\cli asset states <slug>,docs/asset-pipeline/states.md). The cuffs' open state is built (2026-11-14, below). - ✅ Open cuffs (2026-11-14,
asset-states-followups). The handcuffs model is built in Blender with a swinging strand per cuff on a hinge bone (strand_r,strand_l, pivots exact, 70 degrees,spec.anim.bones).LF_AssetAnimComponentonHandcuffs.et:SetActive(true)opens both strands (replicated, late joiners included),falsecloses them;LF_HandcuffsComponent.SetOpen(bool)wraps it (server). The cuffing hold below calls it. Try:tools\cli asset states handcuffs --shots(thestate_use_*pictures) or harnessitemon/itemoff <prefab>. - ✅ Cuffing is a hold, and the cuffs open and shut in it (2026-11-14,
cuffing-open-state). Cuff and Uncuff are short holds (Duration 1.8and1.5on the actions inCharacter_Roleplay.et: the vanilla progress bar).OnActionStartasks the server (LF_AskCuffing, suspect as RplId, officer taken from the controller);LF_Cuffing.Beginre-runs reach and the rule, then opens what the hold opens: for Cuff the strands of the cuffs in the officer's left hand (LF_HandcuffsComponent.SetOpen(true), the replicatedLF_AssetAnimComponentflag, a click,SOUND_LF_OPEN); for Uncuff the cuffs on the suspect's wrists (the replicatedm_bLF_CuffsOpenon the character, which every client turns into the swing of the local worn model,Handcuffs_Worn.etnow carries the same two hinged strands). The server rechecks reach and the rule every 250 ms: either party walking out of reach, going down or dying, the cuffs leaving the hand, or a suspect no longer held up stops the hold, shuts the cuffs and toasts#LF-Restrain_Interruptedto the officer; letting go of the hold (OnActionCanceled) does the same. The end of the hold (PerformAction) is accepted only for a hold the server saw begin and only after 80 percent of the action's duration (LF_Cuffing.HoldLongEnough), so a client cannot cuff in an instant or skip the open phase. A finished Cuff swings the strands shut with a click (SOUND_LF_CLOSE,Sounds/Items/Handcuffs, generated with the sound stage:tools/assets/handcuffs/sounds.json), and 650 ms later the cuffs leave the hand and go onto the suspect (LF_Restraint.Restrain, unchanged); a finished Uncuff takes them off and back to the officer (Release). The pair is rechecked as the cuffs shut: a suspect who stepped away keeps the cuffs in the officer's closed hand. Testspolice/cuffing-rules,police/cuffing-open-state; harness verbcuffing <player> cuff|release start|cancel|pin|finish(pinholds without the time-out for a picture,finishandpinbehind the dev gate),session.mjs cuffs-proof. Logs[LFDebug:Police] cuffing hold .... Not done: the officer's hands do not move on their own (no animation exists for it, #340), and the returned cuffs go back into the inventory shut, not into the hand. - ✅ A lock-picking set (2026-11-14).
LF_Lockpick.etkeeps its GUID and now shows a stitched leather wallet with a hook pick and a tension wrench under two straps (tools/assets/lockpick/model.py, no credits), where Meshy's version read as a pen. Held, it is a bundle in the fist with the tool tips up; on the ground it lies flat. - ✅ Pager on the ground (2026-11-14). Checked in a session: dropped, it lies screen-up with
ground.up Right; nothing to change. - ⚠️ The cuffs do not show in the officer's hand. Holding them raises the hand in the vanilla gauze pose the other held items use (the lockpick's offsets), but the session shot shows an empty hand; the hand offsets (
gadget.handin the spec,HandAdditive*on the prefab) need a pass in Workbench. Cuffing works the same. - ⚠️ No restrained animation. The base game has no surrender, hands-up, cuffed or tied animation (
docs/research/animation-pipeline.md: the ACE captives set is the candidate, #340); a cuffed player stands or lies in the normal pose with the cuffs on one hand. There is no surrender gesture either, so "compliant" means held up and unarmed. Cuffed players can still open their inventory, and the officer cannot lead them by the cuffs (escort is the vehicle escort). Disconnect rejoin rules for cuffed players are #691. The restraint is not saved: a server restart frees every cuffed player and the pairs on them are gone.
LF_Roadblocks — Feature/Police/LF_Roadblock.c, LF_RoadblockActions.c, Prefabs/Props/Roleplay/Roadblock/ (#1941, 2026-11-16)
- ✅ Police roadblock kit. An on-duty officer deploys the folded kit (
Roadblock_Kit.et, 9 kg) as a composition (#1940,LF_PlacementCompositions): one barrier (RoadBlock_01) and four cones across the road, each piece on the ground, one server-checked confirm, one pick-up that folds all five back into the kit. Only on-duty police deploy or pick up (refusal logged[LFDebug:Roadblock], toast#LF-Roadblock_PoliceOnly). A vehicle seen moving near the set that then stops is logged once (stopped at the roadblock of <uid>). Ghost of the whole set while Deploy is selected (LF_RoadblockPreview, behind the same dev-tools flag as the spike strip ghost). Testpolice/roadblock; lookgrid:roadblock; proofsession.mjs roadblock-proof. - 🧪 A roadblock clears itself (#2100). A set stands for
m_iExpiryMinutes(default 20,Configs/Police/LF_Roadblock.conf,LF_RoadblockConfig), or until the officer who laid it goes off duty or leaves (their account is gone), checked every server tick. Each removal deletes every piece and logs[LFDebug:Roadblock] cleared the roadblock of <uid>: <reason>. Nothing persists. Testpolice/roadblock-expiry. - ⏳ Not yet: the armory does not hand the kit out (the rank kits in
LF_Police.confand the pack conf are a follow-up), the red (blocked) ghost has no picture, and a set does not expire.
LF_SpikeStrips — Feature/Police/LF_SpikeStrip.c, Prefabs/Props/Roleplay/SpikeStrip/ (#646, 2026-11-13)
- ✅ Police spike strip. Every rank's armory kit carries the folded strip (
SpikeStrip_Item.et, 6 kg). On the ground, Deploy spike strip (on-duty police only,LF_RateLimitSPAWN; throughLF_PlacementService.Confirmsince #1026, at the spot the officer's ghost showed) laysSpikeStrip.et(3.5 m) from 1 m in front of the officer: along their facing, or straight across the nearest road within 12 m when the AI road network has one. Its three ground points take the higher of terrain and what stands there; more than 0.25 m between them refuses (#LF-Placement_NoGround). Something standing in the footprint (a post, a car) or under it (a strip already laid, anything dynamic) refuses (#LF-Placement_Blocked, #928). The item is used up. A spot in a door leaf's swing (1 m both ways) or the 3 m walk-up in front of a ground-floor door is refused the same way, "a door is in the way" (#2445,LF_PlacementDoors, for every placement: single, aimed and composition). A kind with a zone inConfigs/Placement/LF_PlacementPolicy.confis also refused outside it (#2447,LF_PlacementZones): roads only, inside a house the player owns or holds a key to (the house nearest the spot, so not the neighbour's), or within a radius of their organization's base (LF_Placeskindorg_base, registered by the leased hideout since #2504:LF_Hideout.SyncOrgBaseon lease, load and release, last lease wins, server only; testhideout/org-base). The server'sConfirmasksLF_PlacementPolicy.ZoneAt; core ships no zoned kind. Testplacement/policy-where(WORLD). A kind with a cost in the same.conf(#2448,LF_PlacementCost) pays it on the server only after the spot is VALID, once: cash throughLF_MoneyUtils(ledger reasonsplacement,placement-refund) or items used up; a player who cannot pay is refused (#LF-Placement_NeedCash,_NeedItem) and keeps everything, a failed spawn gives it back, and a refundable kind refunds once on pick-up to the payer only (compositions, and spike strips throughLF_SpikeStrips.PickUpsince #2502; another officer folding a paid strip up refunds nobody). Core ships every kind free; a pack sets prices. Testsplacement/policy-cost,police/spike-strip-refund(WORLD). A PERMANENT placeable (LF_PlaceableComponentlifetime, default temporary) is saved (#1032,LF_PlacementSave, payloadplacements, save version 52): prefab, spot, owner key, kind, property, never an EntityID; a restart spawns each row once (a second apply makes no duplicate; a row whose prefab no longer resolves is skipped with an error). The server refuses one past 40 per owner or 25 per property (m_iOwnerCap,m_iPropertyCapon the policy conf; toasts#LF-Placement_CapOwner,_CapProperty). The owner within 4 m picks it up (LF_PlacementPickup.PickUp): entity and row go, a refundable cost comes back, the item goes into the inventory. A placed prop carriesLF_PlacedOwnerComponent(the placer's character key, replicated, stamped byLF_PlacementSaveon record and on load) andLF_PlacementPickupAction("Pick up",#LF-Placement_PickUp): shown and performable only for that character, and the server'sPickUpdecides again from the saved row (owner, 4 m), so a client that sends it anyway changes nothing (#2751). Testsplacement/persist(PERSISTENCE, restart throughwt e2e),placement/cap,placement/pickup-action(WORLD). - House furniture (#2654, slice of #747): four neutral carried items (chair, table, shelf, lamp:
Prefabs/Placeables/Furniture/Furniture_*_Item.et, vanilla props placed) are PERMANENT, need an owned or key-held house (HOUSE_OWNER_OR_KEYplus theOWNED_PROPERTYzone in the policy conf, kindsFurniture_*) and use them_eSnapmodes. FLOOR lies like GROUND (the ground probe reads a building floor). WALL puts the shelf flush on the wall face the player aims at (LF_PlacementFurniture: face normal is the heading, back edge 1 cm off the face, floor from a probe at the middle and front edge); the server refuses a WALL proposal more than 2 cm off a wall. Three five-line hooks inLF_PlacementService(Plan, PlanAimed, Confirm). Testhousing/furniture(WORLD). Each item places aFurniture_*_Placed.et(the vanilla prop plusRplComponent, the owner stamp and the "Pick up" action, #2751), so the owner can take it back; a chair saved before #2751 comes back as the plain prop with no action. Prices and the 1989 catalogue are pack work. In a cottage the player built (#3173): a finished build-site plot counts as a property for both the house rule and theOWNED_PROPERTYzone. A spot (or, for the rule, the player) within 8 m of the shell origin (LF_BuildSiteComponent.GetShellOrigin,LF_PlacementZones.PLOT_RADIUS_M) belongs to the plot, keyed by the plot key; its owner (read fromLF_Propertieson the server on every call, so a sale takes effect at once) and any character carrying a key bound to the plot may place there, a stranger may not. A live house whose origin is nearer the spot than the shell origin wins, so a cottage beside a neighbour's house never claims that house (LF_PlacementZones.HouseNearerThanPlot). An unfinished plot is no property. A client, which has no owner key, lets the prompt show over any owned finished cottage and the server's Confirm decides. The property cap counts per plot. Testplacement/on-built-plot(WORLD). - House furniture, home set (vanilla props only, 2026-11-18): fourteen more carried items furnish a home (
tools/furniture/items.json, written bytools/furniture/gen.mjs): bed, double bed, sofa, armchair, coffee table, rug, television, radio, potted plant, mirror, picture, stove, bookcase, workbench. Each is built on a base-game prop (the footprint comes from the model's measured bounds, the carried item keeps the vanilla prefab's material override such as the poster's print), is PERMANENT, needs an owned or key-held house like the first four, and places aFurniture_<Id>_Placed.etwith the owner stamp and "Pick up". The radio keeps its vanilla turn-on action. The mirror and the picture are WALL items withm_fHangHeight(1.3 m and 1.5 m):LF_PlacementFurniture.ProbeWalllifts the origin that far above the floor at the foot of the wall, on the client's ghost and on the server's recomputed spot alike; 0 (the default, the shelf) stands on the floor. A vanilla prop's pivot is often a corner (wardrobe, stove, bookcase), so the ghost extends from the aimed point; the footprint is exact. Pack: price rules (buy 20 to 260, sell about 40 percent of it) inLF_Everon1989/Configs/Shop/, and all furniture, the first four included, on a newfurniturestock inLF_ShopStock_Everon1989.conffor Saint-Philippe's furniture store (the building plan picks the building). The general store keeps selling the original four (chair, table, shelf, lamp) until the furniture store's counter lands, so nothing disappears in between; the other fourteen sell only fromfurniture. Proofeveron/furniture-home(WORLD, pack leg: stocked, priced above sell-back, permanent, floor or wall snap, hang height, house-owner policy, owner stamp and Pick up on the placed prop). Pictures:website/public/docs-images/2654/furniture-items-after.jpg,furniture-showroom-after.png(grid cellfurniture-vanilla, flat ground: a placed prop in a real house room and the hung mirror and picture stay manual). - Storage furniture (vanilla props only, 2026-11-18, draft: REVIEW-NEEDED): seven more items with a real inventory, from the same
tools/furniture/items.json(rows withstorage): wardrobe (120 L, 60 kg), dresser (80 L, 40 kg), cupboard (90 L, 50 kg), chest (60 L, 40 kg), crate (50 L, 40 kg), fridge (70 L, 30 kg), kitchen unit (100 L, 50 kg). The placed prefab addsSCR_UniversalInventoryStorageComponent(capacity and item-size limit),LF_FurnitureStorageManagerComponent,LF_PersistentStorageComponentwithm_bKeyAssignedLaterandLF_FurnitureStorageOpenAction(the vanilla open-storage action, offered only to the placer). Sold from thefurniturestock like the rest. Contents persist with the placement and add no save section:LF_PlacementSavecallsLF_PlacedStorage.Attachon a fresh placement and when it spawns a saved row, which gives the storage the stable keyfurniture:<placement id>(LF_PersistentStorageComponent.AssignKey), and the contents ride the existing carried payload as a placed-slotLF_StorageSnapshotrecord, restored a frame after the spawn and again after a load (idempotent). A placement that still holds items is not picked up (toast#LF-Placement_EmptyFirst); an empty one is, and its record is cleared.LF_FurnitureStorageManagerComponent.HandleAccessValidationkeeps a stranger's client request from moving items out. Testshousing/furniture-storage(WORLD: components, item-size limit, ten apples, key, Open for the placer only, refused pick-up),housing/furniture-storage-save(PERSISTENCE: cash, apple and water bottle survive delete plus load, a second load adds nothing, an empty one is picked up and its record goes),everon/furniture-storage-stock(pack leg: stocked, priced above sell-back, house-owner policy). A real restart, a second player at the open furniture and the inventory screen are manual. - ⚠️ Placement preview (#928 prototype, dev-tools worlds only, selecting the action is not automated): while Deploy is selected the officer sees a ghost
of the strip where it will lie, blue when the server would accept it and red when not (
LF_SpikeStripPreview). - ✅ The server samples the vehicles within 9.75 m every 50 ms and tests each wheel's path since the last
sample against the footprint, so a fast car cannot jump it. A crossing wheel's
SCR_WheelHitZone(on the wheel slot entity) takes COLLISION damage to DESTROYED; vanillaUpdateWheelStatethen cuts the radius to 80 %, the grip to 20 % and adds drag on every machine, so the car slows and pulls. A flat wheel is not hit twice. Logs[LFDebug:SpikeStrip] punctured wheel N of <vehicle>. - 🔨 Spike strip cap (#2416, in-dev): an officer may have
spikeStripMaxPerOfficer(police config, 2) of their own strips deployed at once, counted by deployer (LF_SpikeStripComponent.CountDeployedBy; the strip placed in a world layer is never counted).LF_PlacementService.ConfirmasksLF_SpikeStrips.CapProblembefore anything is spawned or used up: the next strip is refused ([LFDebug:Placement] refused: <uid> already has N spike strip(s) deployed (cap M), toast#LF-SpikeStrip_Cap) and the item stays. Picking one up or its lifetime running out frees a place. Testpolice/spike-strip-cap. The cap keys on the strip prefab (LF_SpikeStrips.STRIP_PREFAB). - ✅ Pick up spike strip (on-duty police) puts the folded item back in the inventory, or at the feet when full.
The strip goes by itself after
LF_PoliceConfig.m_iSpikeStripLifetimeSeconds(600). The town has no loose strip: the police armory hands out the kit (town pass #1947; the grid cellroadblockkeeps the film and test spot). - Model: one Meshy link repeated by the asset pipeline's deployable kind (
tools/assets/spike-strip). Testspolice/spike-strip,police/spike-strip-geometry; proofsession.mjs spike-strip-proof. - ⚠️ Not persisted: a deployed strip is gone after a restart. The road-network alignment did not run in DebugWorld (no AI road network there); the strip follows the officer's facing.
LF_ConvictionRecord — Feature/Police/LF_ConvictionRecord.c (#1914, 2026-11-16)
- 🧪 Every arrest (
LF_OnArrestedon the bus) stamps the player uid with the in-game day (the game clock's date as a day number,DayOrdinal) and counts it.IsRecent(uid, days)answers "convicted in the last N in-game days?" (the stamp day counts as day 0, so a window of 3 is the stamp day and the two after it); the firearm permit desk (#1766) refuses an application on it, with the window fromLF_LicencesConfig. Server only, never replicated. Saved as theconvictionspayload (save version 36); vanilla persistence restores the clock, so a stamp keeps its age across a restart. A stamp dated after today (an admin set the clock back) still counts as recent. Pin testpolice/conviction-record(also thewt e2erestart proof). - ✅ Logging out wanted right after police contact rejoins in jail; downed rejoins at the hospital (#1972). A suspect identification (ID check, caught in the act, report) stamps police contact on the character (
LF_PoliceContact, server session state keyed by uid); a person search (LF_ConfiscateAction, found or clean) and a completed cuffing (LF_Cuffing.FinishCuff, only whenLF_Restraint.Restrainreturned OK) stamp it too withLF_PoliceContact.Stamp(uid, "search"|"cuffing")(#2102). A wanted player who logs out withindisconnect.contactWindowSeconds(default 120,0off) is handled like a cuffed logout byLF_DisconnectRules.Decide: the jail rule, the leaving-custody charge, a flagged logout row. Wanted past the window rejoins in place with the warrant.LF_DisconnectRules.RejoinForis the pure rule for where the leaver rejoins: jail, hospital (a downed logout dies and wakes in a bed with the bill) or in place. Each logout logs[LFDebug:Rejoin] <uid> rejoins <jail|hospital|in place>: <reason>. The sentence is the existing jail payload, so the jail rejoin survives a restart. The pending hospital wake and the contact stamp are session state (a restart between a downed logout and the rejoin spawns at the plaza with no bill); the combat-logout body is #1973. - ✅ A short grace protects a new character (#1780, Arrival #1007, #794).
LF_Grace(Feature/Moderation/LF_Grace.c, configConfigs/Moderation/LF_Grace.conf,m_iMinutes, core default 0 = off). While the character's own persisted played time (LF_GraceCharacterClock, #2443) is under N minutes and the character's crime record (LF_CrimeRecord.Total) is empty, the character cannot be held up (LF_HoldUp.AttemptreturnsGRACE) or arrested (LF_JailArrestAction.PerformAction), and may not rob (LF_RobAction.GaterefusesREFUSED_GRACE;LF_RobWeaponAction.CommitWeaponRobbery; a protected character also cannot hold anyone up). The first completed crime ends it for good. Nothing new is saved: a restart or relog neither restarts nor extends it. The server decides and the refusal toast names the grace (LF-Grace_Refused); nothing is replicated, so a client menu may still offer the action and the server refuses it. Both the clock and the end are per character. Pin testonboarding/grace. - 🧪 (2026-11-17) Each new character gets its own grace (#2443, #2075 item 3). The grace clock is the character's own played time:
LF_Playtime.Settlealso credits the account's active character inLF_GraceCharacterClock(save version 48, payloadgraceclock), so a second character on an account with hours played is protected for its own first N minutes. An older save seeds each existing character with its account's playtime, so the upgrade gives nobody a fresh grace. Testonboarding/grace-per-character. - 🧪 (2026-11-16) The flagship turns the grace on at 30 minutes (#2075, from #1780).
LF_GraceConfigreads an ownergracesection (minutes, 0 to 600) overLF_Grace.conf;server/flagship/config.jsonsets 30, the core default stays 0. Testconfig/respawn-grace;flagship-config-selftestpins the live value. - ✅ The armory issues from its outlet by rank (#1763, Refs #1066): an offer of the
police_armoryoutlet withissueset is handed out free (no money moves) as its serialled twin (issuePrefab,LF_ArmoryM16.et), and a serial is booked to the officer in the book (LF_FenceSerials).LF_PoliceRanks.IssueItemand theDrawkit lines read the offer's job and rank gate; a patrol officer is refused the rifle and the toast names the senior rank (#EL-Rank_IssueNeedsRank). TestLF_Test_ArmoryOutlet(catalogue/armory-rank). ⏳LF_PoliceRank.m_aKitstill lists which lines a rank carries (the spike strip, the roadblock kit, the pistol); retiring it is a follow-up card. - ✅ A serial can name the outlet that sold the weapon (#1765, Refs #1067):
LF_OutletSerial.Mint(outlet, n)writesLF-<outlet>-0007andLF_OutletSerial.Outlet(serial)reads the outlet back;LF_FenceSerials.Issue(uid, prefab, outlet)books it. The outlet lives inside the serial string, so no record changes shape (save version unchanged) and an oldLF-0001serial parses to no outlet and still loads. TestLF_Test_OutletSerial(catalogue/outlet-serial). ⏳ The armory issue path (LF_PoliceRanks.IssueOffer) and a shop weapon sale do not pass their outlet yet: a follow-up one-line call each, held back so this slice stays out of the police-issue files. - ✅ The armory and the gun counter stamp their outlet into the serial (#2153, Refs #2123, #1009):
LF_PoliceRanks.IssueOfferbooks the issue with the offer's outlet (LF-police_armory-0007). A sale at a shop that is not a fence, of a catalogue weapon sold under a licence-gated offer (the gun counter; the black market and back room are unlicensed and stay unserialled), goes throughLF_FenceSerials.OnWeaponSaleand booksLF-gun_counter-0012to the buyer; the weapon slot is searched as well as the bags, since a bought weapon lands there. A fence sale still publishesLF_OnFenceSale, now withm_sOutlet; only fence sales take that path. TestLF_Test_OutletSerialWired(catalogue/outlet-serial-wired). ⚠️ A weapon prefab with noLF_SerialComponentcannot carry a serial: the sale stands and[LFDebug:Serials]warns. The gun counter's items are still the plain vanilla prefabs, so they need serialled twins in the catalogue before a counter sale reads a serial in play. - ✅ The armory's AKS-74U carries a serial (#2152, Refs #2118): the pack's rank-2 issue offer for
rifle_aks74usetsissuePrefabtoLF_ArmoryAKS74U.et(the vanilla rifle plusLF_SerialComponent), so the issue is booked to the officer instead of logging "untracked". The black-market PM is not issued by the armory, so it has no twin. TestLF_Test_EveronArmorySerials(pack leg,everon/armory-serials). - ✅ The gun counter's PM and M21 carry serials (#2166, Refs #2153, #1009): the pack's
pistol_pmandrifle_m21catalogue items point atLF_CounterPM.etandLF_CounterM21.et(LF_Everon1989/Prefabs/Weapons, the vanilla weapon plusLF_SerialComponent, theLF_ArmoryM9pattern), so a licensed counter sale is booked asLF-gun_counter-NNNNinstead of warning "a weapon prefab needs LF_SerialComponent". The Vz.58 is no live counter offer (the weapons overlay removes it) and has no twin. A plain vanilla PM or M21 a player already carries no longer matches a catalogue row. TestLF_Test_EveronGunCounterSerials(pack leg,everon/gun-counter-serials).
Police station kit (#2201 town pipeline)
-
🧪 The 1989 police station as a reusable kit (2026-11-16): the vanilla
Villa_E_2I01_Policefitted out as a working post in the GridWorld claimpolice-station-kit(c3r1, 2x2), written bytools/buildings/police-station/fitout.mjs(building-space rows, three cumulative passes: BUILD, POLISH 1, POLISH 2) and shot bylooks.mjs;spec.jsonis the concept and the rooms,proof.jsonthe shot list and the booking walkthrough. The public hall has the licence and permit desk (LF_LicenceDesk) and the wanted board; the duty room has the duty desk (clock in), the armory locker andLF_ArmoryStore, the evidence locker and the dispatch board; the records room has the case board; the villa's own barred cell is the holding cell (the cell door decision is under POLISH 2 below). Patrol cars, a spike strip and the payphone stand in the yard. Budget (maintainer): at most 6 dynamic lights per building and 1 shadow caster, 300 entities for the building with its furniture, static vanilla props, no per-frame scripts;fitout.mjs --reportprints the counts. Saint-Philippe placement is later, throughtown fit. -
🧪 Police station POLISH 2 (#2275, merged, in-dev). The villa is now the pack prefab
Prefabs/Buildings/PoliceStation/PoliceStation.et(tools/buildings/police-station/shell.mjs): the vanilla villa with its furniture cut from 231 props to 143 (the attic's junk, 16 light switches, repeats) and its ceiling lamps given a lit cover, so the building totals 215 of the 300 entities (MEDIUM). The facade carries anLF_Sign_Fasciaover the loggia with the pack cardpolice_front("Gendarmerie"; the name is in the pack table) and two wall lamps whose glass is lit with no light of their own; the sixth light is one warm glow under the loggia. The hall has a front counter facing the door, its notices and the benches either side of the duty-room door; the cell has its rules pinned by the door; the yard has a bench, a wall bin, planters, cones and the escort car. Every prop height is snapped bysurface.mjs;tools\cli building check police-stationreads the kit's layer rows too (spec.jsoncheck_layer). The cell door, decided: the kit always shows the villa's own barred cell and door and carries no jail component, because one placed cell is allowed per world and GridWorld has one.fitout.mjs --with-cell(fortown fitinto a world with no cell) stages only theLF_JailCellmarker, its zone fitted to the room (2 m) and the release point in the hall; noEL_JailDoor, which would hang a second door in the villa's doorway. The villa's own cell door is the breach target (#2373, in-dev).PoliceStation.etoverrides the cell's door leaf (DoorSet_PrisonCell_L_EXT_B>Door_PrisonCell_E_A_Left_INT_ST_B, written byshell.mjs) withLF_LockComponent(locked at spawn),LF_BreachTargetComponentidPoliceStation_CellDoorand the arm and repair actions, the same partsRoadmap_Jail_Doorhas, so--with-cellwritesm_sDoorTargetId "PoliceStation_CellDoor"and a prisoner is held while the door is locked, a charge breaches it and the jailbreak path of #235 applies, and police repair it. A cell placed by hand in a world (the island town) sets that same id on itsLF_JailCellComponent. One station per world: two stations would share the id. Testeveron/police-cell-door(WORLD, pack leg). -
🧪 Saint-Philippe jail cell (#2969, town draft, draft PR, in-dev). The police slot's
JailCellmarker (LF_PlaceComponent) is only a marker: it switches the Jail system on and leavesLF_Jailwith no cell, so an arrest had nowhere to send the prisoner. The island now has the real cell: thejailslot (a street-style slot that rides in the police slot's building,with: policeintools/town/templates/town.json, kittools/town/kits/jail.json, layerPlace_saint-philippe_jail.layer) puts oneLF_JailCellComponent(prefabEL_JailCell, zone 2 m, release point 3 0 2.5 in the cell's frame, no door target) in the villa's own barred cell on the ground floor, west.LF_Jailfinds it by component (LF_PlaceskindJailCell, idcell; one per world), so arrests, sentences, the zone and release run on the island exactly as in DebugWorld. Breach and jailbreak on it still need the villa door to carryLF_BreachTarget(#2373).tools\cli town check <place>now warns (an error under--complete) when a slot promisesJailCelland no fitted layer carriesLF_JailCellComponent, so the marker alone cannot pass again. -
✅ Map area data (#2233, epic #2223, test
map/areas; node twintools/map/rules/areas.mjs).LF_MapAreas(Feature/Map/LF_MapAreas.c) turns an area into an outline vertex list: a polygon is its points, a circle a 32-gon, a box its four corners turned by yaw the wayLF_ZoneArea.Containsturns it, a polyline corridor a mitred strip.Collectmerges everyLF_Zoneszone that has a style (SAFE and LAWLESS draw; NORMAL draws nothing) with the map-only areas (LF_MapAreaComponent: town line, gated, custom; a polygon local to the entity, or a circle). Styles are tokens for themap-*theme rows (M6). The outline, centroid, style and rule cases are one table,Configs/Map/Rules/areas.cases.json, that the Enforce test and the emulator's node rule both run;LF_MapAreaCases.generated.ccarries it as script because the game cannot read a loose.jsonfrom an addon (node tools/map/rules/areas.mjs --genrewrites it; the selftest fails when stale).LF_Zones.GetAll()is the one hook in the zone service. Nothing draws yet (M6). -
🔧 Crime review fixes (2026-11-17,
docs/reviews/2026-11-17-crime.md, merged, in-dev):- Till robbery with no room for the cash.
LF_RobAction.CommitRobberynow refuses withREFUSED_NO_ROOMwhen the robber's inventory takes none of the cash. It starts no till cooldown, adds no wanted and calls no dispatch, and the robber gets the toast#LF-Robbery_NoRoom. Testcrime/rob-no-room. - Chop-shop COLLECT. COLLECT pays first. A short payment is rolled back and refused (
NO_ROOM,#LF-Chop_NoRoom), and the car stays. COLLECT also refuses while someone sits in the car (LF_ChopShopRules.CheckCollect). Testchopshop/collect-guard. - Escort holds.
LF_Jail.Imprisonends the prisoner's escort hold (LF_JailEscort.Drop) on every arrest path. Before this, a freed prisoner's next logout counted as escaping custody. Testjail/escort-drop. - Self-arrest.
LF_Jail.Arrestrefuses when the officer is the prisoner. The police-menu arrest RPC now runs the sameLF_PlayerInteraction.CheckPairand grace gate as the in-world arrest action, so the menu cannot arrest yourself, a dead player or a new character. Testjail/self-arrest. - Jail work after a logout. The jail-work timer carries the prisoner's uid, so a prisoner who logs out mid-task is no longer refused as BUSY after rejoining. Test
jail/work-abandon. - Jail work refuses a start out of reach (#2580).
LF_JailWork.Begin(viaBeginFor) now refuses a worker beyondLF_WorkAnim.MAX_RANGEof the work spot, or a dead one, and logs a[LFDebug:Jail]warning; before, only the finish checked range. Testjail/work-begin-range. - Escort grab reach and holds (#2542). Both escort actions (
LF_JailEscortAction,LF_JailEscortArrestAction) runLF_JailEscort.Grabon the server: reach first (LF_PlayerInteraction.CheckPair, the cuff and arrest rule), then a hold check.LF_JailEscort.EscortandLoadrefuse a suspect another officer already holds instead of overwriting the hold (HeldByOther; the holder's own repeat grab still works). Each refusal logs throughLF_Debug("Jail") and toasts the officer (#LF-Interact_TooFar,#LF-Escort_HeldByOther). Testjail/escort-grab-rules.
- Till robbery with no room for the cash.
-
🔧 1989 jail work stations (#3418, pack; merged, in-dev). Three pack prefabs in
LF_Everon1989/Prefabs/Props/Jail/carry the existingLF_JailWorkAction(#127):LF_JailLaundryTub(joblaundry_tub, 10 s off, 6 s work),LF_JailKitchenSink(kitchen_sink, 8 s off, 5 s work) andLF_JailYardBroom(yard_broom, 8 s off, 8 s work), each with a 30 s cooldown per job. A full round takes 26 s off, under half of the shortest sentence (one wanted level, 60 s). Strings#LF-JailWork_LaundryTub,_Kitchen,_Yard. Not yet placed in a layer; no script or save change. Pack testeveron/jail-work. -
✅ Fence workshop yard, pass 1 BUILD (#2302, shell #2301, epic #2201; pack).
FenceYard.et(Workshop_01 main plus the side annex) stands in pack grid cell c14r4 (2x2,Grid_fence_yard.layer). The front is a plain garage; the fence's stall (LF_FenceStall, stockfence) and the fence (LF_Fence) are in the annex back room, written bytools/buildings/fence-yard/fitout.mjs(--checkfor drift) with the room lights (FenceYard_Kit.et: 3 shadowless lights). No sign, string or map place names the fence (D-M5). No stash (the only stash system is the org hideout's) and no car bay (Crime has none for a fence). No script or save change. -
🔧 Crime and policing review fixes (#2419, merged, in-dev): the evidence bag takes a dropped item only while it still lies loose beside its marker (
LF_Evidence.Bag: no parent entity, no inventory slot, withinITEM_MOVED_M2 m; otherwise the row is dropped and the item stays with whoever has it). An NPC witness answers an officer once (LF_WitnessEntry.m_bAsked; the accuracy roll no longer repeats). The contraband run pays only a driven crate (LF_ConvoyRun.m_bDriven, set when the vehicle watch attaches) and a paid character waitsLF_Contraband.COOLDOWN_MS(10 min) before the next run (#LF-Contraband_Cooldown,#LF-Contraband_NotDriven); its failure toast andLF_Hotwire.MayStartEngineuseLF_Utils.NotifyEntity. A hideout door a member opened relocks when no member of the owner stands withinLF_Hideout.RELOCK_RADIUS_M(40 m), checked everyRELOCK_SWEEP_MS;ApplyAllreleases a live lease the save does not hold;LF_Hideout,LF_PoliceApplicationshave world-end reset hooks;LF_PoliceRosterNotice.s_aSentis capped at 64. The chop bench takes the nearest stolen car (LF_ChopShopRules.PickDropIndex), so an unstolen car beside it no longer blocks the yard.LF_WorkAnim.ResetStaticsremoves its queuedWatch. No save format change. Testsinvestigation/bag-held,investigation/npc-witness,crime/contraband-cooldown,hideout/relock-and-load,crime/chop-drop-pick,work/anim-reset,police/statics-reset. ⚠️ Not checked live: the relock sweep with a real member walking away, and the dedicated-server toasts. -
🧪 Police calls, list and take (#2477, slice of #234; merged, in-dev).
LF_PoliceCalls(server, session only) keeps a list of calls. A player's first wanted report (LF_OnWantedChanged0 to above 0) posts oneFINEcall naming the suspect uid, the site (the newest report's place text, never a coordinate) and a minimum rank (LF_PoliceRanks.PATROL); a suspect has at most one open call.Take(callId, officerUid, accountState)accepts only an on-duty police state at or above the call's rank, one officer per call; each refusal logsLF_Debug.Warn("PoliceCalls", ...).Complete(callId, officerUid)closes it once, for the officer who holds it. The list holds 64 calls and drops the oldest closed one.LF_GameModeRoleplaycallsLF_PoliceCalls.Install()(one line). No UI, pay or save yet. Testpolice/call-accept. -
🧪 Police dispatch board: take a call (#2479, slice of #234; merged, in-dev). The police dispatch board (
LF_DispatchBoard_Police.et) carriesLF_PoliceCallBoardAction("Take a call") beside the radio-call take. Only an on-duty police officer is offered it. On perform the server checks the officer is at the board, takes the oldest open call nobody holds whose minimum rank the officer meets (LF_PoliceCalls.OldestOpenFor, thenTake, which re-checks duty and rank), toasts the site, and sends a waypoint on the site to that officer (the owner-channel waypoint the job stops use). A site filed as a grid square marks the square centre, a site filed as a place sign title marks that sign; a site named only by the map label gets the take and the toast but no waypoint. Refusals logLF_DebugPoliceCalls. Testpolice/call-board. Manual: an officer on duty takes a call at the board in a session. -
🧪 Unit status from the car radio (#4204, PO-D3; merged, in-dev). The police car (
LF_UAZ469_Police.et) carries two radio rows, "Radio: available" and "Radio: busy" (LF_UnitStatusAction, at the driver door or in the cab), offered only to an officer on duty. The server re-checks the account and the reach, then keeps one status per officer (LF_UnitStatus, session state, no save). Every officer reading the dispatch or wanted board gets a "UNITS ON THE RADIO" section, one row per unit ("Unit Dupont: busy"), sorted by name. Clocking out clears the row (LF_PoliceRanks.OnDutyChanged), and a unit no longer on duty is dropped at the next read. Refusals logLF_DebugUnitStatus. Testpolice/unit-status. Manual: two officers on duty; one radios busy from the car, the other reads the dispatch board and sees the row; the first clocks out and the row is gone on the next read. -
🧪 Police call pay: fine at the site completes the call (#2478, slice of #234; merged, in-dev).
LF_FineTicketRole.WritepublishesLF_OnFineIssued(officer and holder uids, the officer's position, ticket number, amount) after a ticket is issued.LF_PoliceCallPay(server) completes the suspect's open call when the fine is by the officer who took it, the suspect still has an open wanted report, and the officer stands withincallRadius(police config, default 50 m, ground plane) of the site. Since #4319 it pays no cash: the completed call earns the $15 resolved-call duty bonus once (LF_DutyBonus, paid at clock-out), toast#LF-PoliceCall_Bonus(or#LF-CallOutcome_Resolvedwhen the hour's cap is reached); thecallRewardconfig key is gone. The site is a position kept per suspect: the alarm site of the policeLF_OnServiceCallthe crime report publishes, else the suspect's body there; a wanted level rising from or dropping to 0 forgets it. With no kept position agrid X-Zplace resolves to its square's centre (radius at least 71 m); other place text logs a Warn and completes nothing. Refusals log under[LFDebug:PoliceCallPay].LF_GameModeRoleplaycallsLF_PoliceCallPay.Install()(one line). Testpolice/call-pay. -
🧪 Police calls: the report's place, and a call closes with the wanted level (#2516, fix of #2477; merged, in-dev). Crime paths raise the wanted level before
LF_WantedReports.Reportfiles the report, so a call posted at the rise had an empty site.LF_WantedReports.Addnow publishesLF_OnWantedReportFiled(uid, sequence, place). A level rising from 0 with a report already filed posts the call at once with the newest report's place; with none filed yet the suspect waits (call for <uid> waits for the crime report) and the first report posts the call with its place. A level back at 0 (served time, expiry, another officer's arrest, an admin) drops the wait and closes the suspect's open call, taken or not (LF_PoliceCalls.CloseFor,[LFDebug:PoliceCalls] call #N closed for <uid>: no longer wanted); a closed call pays nothing andCompleterefuses it. A report filed after the level cleared posts no call. Testpolice/call-lifecycle. -
🔧 A spare drill in the pack never blocks the charge (#2581, item 13 of #2418; merged, in-dev):
LF_Bank.PickToolpicks the drill only when it is held (LF_HandTool.HeldTool); a keycard or charge the robber can use comes next, and a drill only in the pack is the answer last, so a drill-only vault still shows "hold the drill". A robber with a charge and a spare pack drill at adrill,chargevault is no longer told to drill. No save change. Testcrime/vault-picktool-spare. -
🧪 Police calls keep the crime's position (#2578, follow-up of #2516; merged, in-dev). A site named only by a map location label (
LF_NamedPlaces) resolved to no point, so the officer got no waypoint.LF_WantedReportRecordnow carries a session-onlym_vPositionandm_bHasPosition([NonSerialized], in no save payload, no version bump);LF_WantedReports.Reportfiles it throughAddAtandLF_OnWantedReportFiledcarries it.LF_PoliceCallstores it (from the event, or from the newest stored report when the report came first) andLF_PoliceCallBoardAction.CallOriginuses it before the site text, soSendWaypointmarks the crime's spot. A report with no position (Add, a loaded save) falls back to the site text as before. Test:LF_Test_PoliceCallPosition(WORLD). -
🧪 The Saint-Philippe
policeslot is fitted on the island (#2319, town draft; merged, in-dev once approved). The vanilla police villa b32 (Villa_E_2I01_Police) gets thepolicekit (tools/town/kits/police.json, lifted from the grid police station kit): the duty desk with its clock-in clocks, the armoury store, the evidence locker, the wanted and dispatch boards, the front-desk dressing and the fascia sign. The layer isPlace_saint-philippe_police.layerwith thePoliceStation,PoliceDeskandArmourymarkers. Left out of the kit: the licence desk and case board (they cut the vanilla villa's walls), the payphone (floated at roof height), the patrol cars and spike strip, and the six lights (the kit carries no light settings). Cells are not in this slot yet. -
🧪 Police Search and Arrest are the player interaction menu on a wanted suspect (#2494, proof only; merged, in-dev). The duty NPC menu with two blank buttons is gone (#2509, #2535); an on-duty officer stands within 2 m of a wanted player and the vanilla action menu on the body offers Search (
LF_ConfiscateAction) and Arrest (LF_JailArrestAction), the latter sending the suspect to the cell with a sentence slip.session.mjs police-arrest-proof(up --clients 2 --profile full --roster 2) drives it on two real clients: rob the till, clock in, menu picture, Search, Arrest,jail=seconds above 0 (56 s for wanted 1).LF_AskPoliceArreststays server-guarded for a later wanted-list sheet. No game code changed. -
🧪 Shop bell for the general store till (#2727, rescued WIP of #929; merged, in-dev): a till can name the alarm kind
shopbell(LF_RobAction.m_sAlarmKind), an ElevenLabs-generated 1980s shop burglar bell (Alarm_Robbery_ShopBell.acp,LF_SiteAlarm_ShopBell[Loud].et, kind row inLF_Police.conf); the core default kind for a till staysstore. Core ships the kind and the prefabs; the grid cellshops-tillmounts a till that rings it (Grid_shops_till_Till). The island general store mounts it in a follow-up once its town draft lands. Testpolice/store-alarm. -
🔧 The vault prompt works on a dedicated client (#2418, item 10; merged, in-dev): the vault table (
LF_Bank) and the drill sessions (LF_VaultDrill) live on the server only, so a remote client's rob prompt read "This vault cannot be robbed" on every vault and never showed "Stop drilling"; a host or listen run hid it. On a clientLF_Bank.GateReasonnow answers from what replicates (ClientGateReason): the faction and police count fromLF_AccountReplication, open or armed from the door's breach RplProps, the tools and police minimum from the vault's ownLF_SafeTuning, and the driller from the newLF_BankVaultComponentRplProp (SetDriller, a player id, set when a drill starts and cleared when it ends). Cooldown, stock and grace stay server-only:LF_Bank.Robnow toasts each refusal (GateRefusal) instead of a silent no-op. No save change. Testcrime/vault-client-offer; session proofvault-offer-proof(dedicated server, one client). -
🔧 The clinic cabinet prompt works on a dedicated client (#3364; merged, in-dev):
LF_HospitalCabinetActionaskedLF_Hospital.CanBreach, which reads the server-only cabinet table, so every client saw "Breach cabinet" greyed as "already open". A client now asks the cabinet'sLF_BreachTargetComponent.CanArmForOffer(the replicated open and armed flags), asLF_BreachArmActiondoes; the server keepsCanBreachandPerformActionre-checks throughLF_Hospital.BreachCabinet. No save change. Testcrime/hospital-cabinet-client-offer. -
🧪 (2026-11-18, #3350, X3 of #3339) A safe zone on the Saint-Philippe arrival square. The island had no zone, so a newcomer could be shot at the clerk. The pack layer
Place_saint-philippe_safe-zone.layer(slotsafe-zone, place kindSafeZone, claimsaint-philippe-safe-zone.json) holds one SAFELF_ZoneComponentcircle, 52 m around (4437, 10670): the town hall and its clerk, the forecourt, the residents' house and the square by the pub. It stops short of the bank (nearest wall about 60 m off) and the gun counter, where robberies happen. No lawless zone (D11). Boot log:[LFDebug:Zones] zone Fit_saint_philippe_safe_zone_Place is safe: shape CIRCLE at <4437,12.7,10670> radius 52 m. The refusal itself is the shared rule, testsafezone/blocks. Follow-up: the circle did not cover where newcomers spawn. A brand-new character wakes in a hostel first-spawn bed (4474, 10762, 98 m from the square, found in the 2026-11-18 first-hour run:pos=4474.4,16.3,10761.4 zone=normal), and the legacyMainWorldspawn (4472, 10535, 140 m south) served every other spawn. So the same layer now holds a second 25 m SAFE circleFit_saint_philippe_safe_zone_hostel_Place(4474, 10762) over the beds and the spawn pointFit_saint_philippe_safe_zone_spawn(4426, 10664, 12 m inside the square circle) for a bedless, post-death or later spawn, and the legacy spawn is gone. The slot's footprint margin is 120 m (was 70) so one slot holds both circles. Boot log:[LFDebug:Zones] zone Fit_saint_philippe_safe_zone_hostel_Place is safe: shape CIRCLE at <4474,12.5,10762> radius 25 m. -
🔧 The evidence locker orders a convoy when it fills (#3378, merged, in-dev):
LF_EvidenceLockerFillcounts the locker's rows againstLF_EvidenceConfig.m_iConvoyThreshold(default 12,LF_Evidence.conf). The locker callsCheck()after a bag or a back-room seizure is logged or a raid empties it; reaching the threshold publishesLF_OnEvidenceConvoyDue(rows, threshold, reasonfull) once, and dropping below it (a raid, a world reset, a load) re-arms. A break-in at the locker (LF_Breach.ResetorCancelChargeon targetLF_EvidenceLocker) publishes it at once with reasonbreak-in, once until re-armed. Nothing subscribes yet, and the locker's rows and save are unchanged. Testinvestigation/locker-fill. -
🔧 (2026-11-21) A convoy that does not leave re-arms its order. A start refused for missing route markers, no AI budget or a convoy already under way, and a convoy called off, left the locker "due" until its rows dropped below the threshold or the server restarted, so a full locker ordered nothing more.
LF_EvidenceLockerFill.ScheduleRearm()(called byLF_EvidenceConvoySubscriberon a refused start and byLF_EvidenceConvoy.TryClearafter a call-off) armsRearmNowafterLF_EvidenceConfig.m_iConvoyRearmSeconds(default 600,LF_Evidence.conf); a locker still at the threshold then orders again, one emptied meanwhile orders nothing. Testsinvestigation/locker-fill,investigation/evidence-convoy. -
🔧 The evidence convoy (#3382, in-dev): when the locker orders a convoy,
LF_EvidenceConvoy(subscribed inLF_GameModeRoleplay) starts the sceneevidence_convoy: a Ural truck with a driver and a police UAZ escort spawn at the scene'sevent_spawnmarker, drive itsevent_waypointroute to theevent_target(the central store) throughLF_EventSceneDrive(the escort is a second drive over the same route, starting 9 m behind), and despawn out of sight; on-duty police get an "Evidence transfer under way" toast when it leaves. A snapshot of the locker's rows rides in the truck's crate (a child prop of the truck). The rows stay in the locker while the truck is on the road and leave it on arrival (LF_EvidenceLocker.RemoveDelivered, numbering is not reused, so case board cards keep their row number); a convoy that is lost, times out (900 s) or is dropped by a restart delivers nothing. After a delivery a locker still at the threshold orders the next convoy. No placed markers, no AI budget (two free slots), or an empty locker start nothing and the locker keeps its rows (logged[LFDebug:EvidenceConvoy]). The island route markers are not placed yet. Testinvestigation/evidence-convoy. -
🔧 Chop yard outside town (#3403, X29, merged, in-dev): a lone farm yard 1.2 km from the Saint-Philippe square, in the hamlet scouted as
chopyard(the big barn at its south edge, open ground east of its doors, the road 59 m beyond).LF_ChopBench(shop idchopyard-yard, drop area 10 m left clear) stands 14 m in front of the barn, dressed with the engine hoist (the bench mesh), a welder, jack, vehicle doors and scrap, tyres, barrels, a workbench and one wreck. No sign and no POI (poinone, kindChopYard). Placechopyard, templatechopyard, kitchop-yard(lifted from DebugWorldStreet_ChopShop.layer), layerPlace_chopyard_yard.layer.audit placement --strictclean,town check chopyardok. ⚠️ Not checked live: driving a stolen car in and chopping it (session proof). -
Furniture offer from a dedicated client (#3361): the HOUSE_OWNER_OR_KEY rule read
LF_HouseManagerComponent.Live(), which only the server fills, so a remote client never saw the furniture prompt, even in its own house. A client now reads the house managers streamed in within 30 m (LF_PlacementPolicy.GatherHouseClient, a static-entity sphere query) and the replicatedm_sHouseIdentifier/m_sOwnerKey, plus the keys it carries. It only decides whether the prompt shows; the server'sConfirmstill re-checks with the live table. Testplacement/client-offer(a fixture house outside the live table). ⚠️ Not checked live: a dedicated-server client in an owned house (session proofplacement-furniture-proofnot yet written); the built-plot cottage as a source stays with #3173. -
🧪 Cottage furniture range complete: stool added (#3194, parent #3169). Bed, wardrobe and rug were already in the home set; the stool (
Furniture_Stool_Item/_Placed, vanillaStool_01, FLOOR snap, buy 40 / sell 16) is the missing piece, written bytools/furniture/gen.mjsfrom a newitems.jsonrow (policy row, stringLF-Furniture_Stool_Name, price rule andfurniturestock row follow). It sells from the furniture store (#3256), not the general store, like the other fourteen. Testhousing/furniture-range(LF_Test_FurnitureRange, WORLD): each of the four has its_Item/_Placedpair with the owner stamp, bed, stool and rug land on the floor of the owner's house through the placement service, the rug is a flat mat, the wardrobe is a WALL item;everon/furniture-homenow lists the stool (stocked, priced, pick-up). -
🧪 Prison break rules as pure logic (#3420, parent #1027, #798):
LF_PrisonBreakRules.TryStartdecides whether a break may start: the feature is on (Configs/Police/LF_PrisonBreak.conf,m_bEnabled0, ships off), the starter is free and belongs to an organisation, that organisation has a member inside, at leastm_iMinOfficersOnDuty(3) officers are on duty, no window is open, and the island cooldown (m_iCooldownSeconds, 7200) is spent. A good start opens a window ofm_iWindowSeconds(90, 10..600) in which prisoners may choose to walk; refusals are machine codes logged as[LFDebug:PrisonBreak]. Pure state (last start, window end), no entities and no persistence; nothing calls it yet.LF_Test_PrisonBreakRules(LOGIC) covers each refusal, the window length and the cooldown. -
🔧 Crew robbery rules as pure logic (#3401, parent #1024, merged, in-dev):
LF_CrewRobRules(Feature/Crime/LF_CrewRobRules.c) holds the rules of a crew robbery with a holder on the till spot, optional lookouts and a minimum crew (CrewMeets). The take grows per second only while the holder is on the spot (AdvanceSpotSeconds), pauses off it and is capped (Take). The police response window starts with the alarm, not the robbery (ResponseWindowOpen). Pay is split evenly among the crew present at the end in int math, the remainder going one cash each to the first members: 301 among 3 is 101, 100, 100 (Split). Numbers live inLF_CrewRobConfig(Configs/Crime/LF_CrewRob.conf: min crew 2, 5 per second, cap 1500, 90 s window). No world wiring yet. TestLF_Test_CrewRobRules(LOGIC). -
🔧 Rob a till as a crew (#3404, parent #1024, in-dev): a till whose
LF_RobActionhasm_bCrewJobset is robbed by a crew; the instant action is hidden and refused there. Three actions beside it (LF_CrewRobStartAction,LF_CrewRobHoldAction,LF_CrewRobTakeActioninLF_CrewRobActions.c). "Start the job" gathers the starter and every armed civilian within 15 m (LF_CrewRob.GatherCrew), needsLF_CrewRobConfig.m_iMinCrew, runs the single-till gates (cooldown, grace, civilian, officers on duty) for the holder, starts the till cooldown, raises wanted on each member and sounds one alarm throughLF_Dispatch.Report. "Hold the till" (holder only) makes the take grow each 250 ms tick while the holder stands within the till's hold radius, and it pauses when they step off (LF_CrewRobRules.AdvanceSpotSeconds). "Take the money" (holder only, once) ends the job and pays every crew member within 40 m of the till an equal share (LF_CrewRobRules.Split) as physical cash, or marked notes when dirty money is on (LF_RobAction.PayLoot). A lookout gets a toast when an on-duty officer comes within the till's police radius, once per approach. A member who is down, dead or cuffed at the take gets no share. A holder who goes down, is cuffed or leaves ends the job unpaid, and so does a take that stops growing forLF_CrewRobConfig.m_fIdleTimeoutSeconds(120 s; the holder off the spot, not holding, or at the cap), which frees the till. Server-side state only, not saved. Grid cellcrew-tillholdsLF_CrewTill.et(a counter with the till marked for crew jobs and the three actions);node agent-box/session.mjs crew-rob-proof(up --mission grid --clients 2) proves it on a dedicated server with two players. TestLF_Test_CrewRob(WORLD). -
🔧 Heist stages as pure logic (#3409, parent #1024, merged, in-dev):
LF_HeistStages(Feature/Crime/LF_HeistStages.c) is the state machine a heist runs on: ordered stages, each with a gate (LF_EHeistGate:TARGET_OPENED,CREW_IN_AREA,TIME_HELDwith a hold time), one clock for the job and a fail state. A signal for any stage but the current one, or with the wrong gate, does nothing. The clock running out (also on a late signal) orTick(now, crewAlive)seeing no crew fails it (FAIL_CLOCK,FAIL_CREW); a fail and a success are final and the first fail reason stands. Times are world milliseconds passed in; clock 0 means no limit; leaving a hold resets it. Nothing in the world uses it yet (the stages are wired by the heist cards under #1024). Testcrime/heist-stages. Log[LFDebug:Heist]. -
🧪 The break: forcing the jail door opens a window (#3421, parent #1027, #798, merged, in-dev):
LF_PrisonBreak(Feature/Police/LF_PrisonBreak.c) listens to the jail door'sLF_Breach(hooks inLF_Breach.ArmandOpen). When the rules of #3420 allow it (breaks on, the starter free and in an organisation with a member serving, enough officers, cooldown spent), the window opens forwindowSeconds, a jailbreak report goes to dispatch (every on-duty officer is radioed; the forced door already sounds its alarm), and a prisoner who walks out of the cell volume while it is open (LF_Jail.NoteEscape) gets theescapedstatus: still serving, remaining time kept in thejailpayload and the sentence clock held while out (LF_Jail.TickOnline), no longer pulled back (LF_Jail.Confines). At the end of the window the door locks again (LF_Breach.Reset); a prisoner who stayed in serves on. A breach the rules refuse is the plain break-in: no window, no status. The escaped list is theprisonbreaksave section (LF_PrisonBreakSavePayload, character key and seconds left; a save without it leaves nobody escaped); the window is session state. Not yet: recapturing an escapee (LF_Jail.Arreststill refuses a prisoner who is serving). Testpolice/prison-break(PERSISTENCE; restart check underwt e2e). -
🧪 The search afterwards: escapees are wanted (#3422, parent #1027, #798, merged, in-dev):
LF_PrisonEscape(Feature/Police/LF_PrisonEscape.c). A prisoner who walks out in a break window is posted on the wanted board as "Escaped custody" (#LF-Offence_EscapedCustody, a crime report with a dispatch call; wanted at least 1; on their record). The member who forced the door has the jailbreak on their record and is wanted (LF_PrisonEscape.OnOpened, called fromLF_PrisonBreak.Start).LF_Jail.Arrestno longer refuses an escapee: it callsLF_Jail.Recapture, which puts them back in the cell with the rest of the sentence plus the escape term (LF_PrisonBreakConfig.m_iEscapeTermSeconds, default 300 s), clears the escaped status and refreshes the slip; the escort (LF_JailEscort) usesLF_Jail.IsInCustodyso a cuffed escapee can be walked back too. A first escape is one dispatch call and one wanted row. A prisoner who stayed inside is still refused. No new save data: the status is the "prisonbreak" section, the sentence is the jail payload. Test:LF_Test_PrisonEscape. -
🔧 Two-layer jailbreak and bail (merged, in-dev).
LF_JailBreak(Feature/Police/LF_JailBreak.c): a jail whose cell (LF_JailCellComponent) names an outer door (m_sOuterDoorTargetId) as well as its cell door is broken in two charges on the existingLF_Breach.Armpath.LF_Breach.ArmasksLF_JailBreak.ArmRefusalbefore the charge is taken: the cells are refused while the outer door is locked (#LF-JailBreak_OuterFirst, also the offer reason from the outer door's replicated open flag), a prisoner in custody cannot charge either door (#LF-JailBreak_FromInside), and both doors refuse inside the cooldown after the cells last blew (#LF-JailBreak_Cooldown). Both layers ring the loud alarm and dispatch with the door's position; the config fuse replaces the door's own. The cell charge reports the new catalogue row#LF-Offence_PrisonBreach(+4 wanted, a 600 s sentence floor). When the cells open (LF_Breach.Open),LF_Jail.FreeInsideends the sentence of every prisoner in custody whose body is within the cell zone plus 2 m (no release move, no wanted reduction, slip stamped) andLF_PrisonEscape.OnEscapedposts each as escaped custody, wanted; an offline prisoner (no body) serves on. The breacher gets the jailbreak on their record (LF_PrisonEscape.OnOpened). Each blown door seals itself afterm_iResealSeconds(LF_Breach.Reset), or police repair it with the breach repair action. In two-layer modeLF_PrisonBreak.OnOpenedopens no break window. Bail (Feature/Police/LF_JailBail.c, actionLF_JailBailActiononPrefabs/Police/LF_JailBailPhone.et): a prisoner in custody paysLF_JailBailRules.Quote(per started minute left, clamped to a minimum and maximum) from their bank (LF_ATMManager,Withdrawis the check; cash is not used) andLF_Jail.EndOnBailends the sentence like a served one; refused with nothing taken when bail is off, the payer is not in custody, or the bank is short. Releases now land on the floor under the release point (LF_Jail.GroundedReleasePoint, a down trace that sees through characters). Numbers inConfigs/Police/LF_JailBreak.conf(LF_JailBreakConfig, pack-overlayable; the Everon pack sets bail 150 per minute, at least 500). Server only; the doors reach a late joiner throughLF_BreachTargetComponent's replicated flag; the cooldown is session state. Testspolice/jailbreak-layers,police/jailbreak-free(WORLD),police/jail-bail(LOGIC). Logs[LFDebug:JailBreak],[LFDebug:JailBail]. On the Saint-Philippe island the jail kit (tools/town/kits/jail.json) places it: the cell door (saint_philippe_jail_cell,EL_JailDoorin the villa's barred doorway, the vanilla leaf hidden by a boxed clear), a barred gate that fills the corridor mouth wall to wall (outer doorsaint_philippe_jail_outerplus two fixed wing leaves, so the hall cannot be walked around), the bail phone inside the cell zone, and the cell row names both doors. Before this the island cell named no door, so a sentenced prisoner was not held at all. A served prisoner is released in the public hall, north of the gate. Both jail layers sound their own jailbreak siren:LF_JailBreak.AlarmKindForsets the alarm kindjail(Configs/Police/LF_Police.conf, prefabsLF_SiteAlarm_Jailand_JailLoud, orange flashing light, a 196 Hz four-blast klaxon synthesised bytools/assets/jail-siren/synth.mjs), a sound no robbery kind shares. Testalarm/jailbreak-siren. Proofisland-jail-breach-proof(held, cells refused first, outer then cells frees B) and bail paid at the cell phone (500 from the bank, released in the hall). Playtest town (#4247, merged, in-dev): the town's walled jail yard (Street_Jail.layer) gets the bail phone,Town_Jail_BailPhoneon a vanilla office desk against the yard's north wall inside the cell zone, so a sentenced player can pay bail there; the town's cell, gate and two work props stay as they were. The outer door and wing leaves are not in the town yet (it has one gate and no corridor), so the town jail is the single-door cell. -
🔧 Hands-up rules as pure logic (#3394, parent #1024, #782; merged, in-dev):
LF_HandsUpRules(Feature/Crime/LF_HandsUpRules.c) is the state of one target with their hands up. The target chooses: it starts only on the target's own accepted answer to the prompt (AnswerStarts/Answer); another player's request or answer, a refusal and an invalid id do nothing, and repeating the yes does not restart the timer. It is never a forced pose.Tick(pos, armed, nowMs)ends it with a reason (LF_HandsUpEndReason):ARMEDwhen a weapon is drawn,MOVEDpast 1.5 m horizontally of where the hands went up,TIMEOUTafter 30 s;Lowerends it asLOWEREDby the target only. Nothing in the world uses it yet (prompt, pose and rob wiring are separate cards). Testcrime/hands-up-rules(LF_Test_HandsUpRules, LOGIC).
LF_BreakInRules — Feature/Crime/LF_BreakInRules.c, LF_BreakInConfig.c
- 🧪 Staged break-in rules, pure logic (2026-11-19, #3368, parent #1023): a break-in is
LF_BreakInConfig.m_iStageCountstages (Configs/Crime/LF_BreakIn.conf: 3 stages, 20 s each).LF_BreakInRules.Tick(state, worked, required, dt, config)advances a stage only while every work point is worked at once; one of two does nothing. Work stopped for longer thanm_fGraceSeconds(3 s) drops the current stage to zero (finished stages stay), setsm_bResetPendingonce per gap (ConsumeReset) for the defenders, and fires only on stopped work that had progress, never on an approach.ProgressOf/WordKeygive the word: barely started, halfway (from 0.34 overall), nearly through (from 0.75), through (keys#LF-BreakIn_*). No world clock, no entity: nothing calls it yet. Testcrime/break-in-rules. - 🔧 Heist run: door, vault drill, getaway (#3411, parent #1024, merged, in-dev):
LF_HeistRun(Feature/Crime/LF_HeistRun.c) binds threeLF_HeistStagesstages to the world through the bus. Stage one is the site's breach door:LF_Breach.Opennow publishesLF_OnBreachOpened(target id, the uid that armed it), and the door's event starts the run and its clock; the arm itself already rang the alarm and radioed dispatch. Stage two isLF_OnVaultBreach"opened" for the site's vault (the drill finishing). Stage three is the getaway: every crew member (the uids that opened the door or the vault) more than the radius from the site. A vault opened before the door does nothing; the clock running out, or no live crew body, fails the run.LF_HeistRunComponenton a site entity names the door target id, the vault id, the getaway radius (default 40 m) and the clock (default 600 s), ticks once a second while a run is going and starts a fresh run when one ends. Grid cellgrid:heist-run(GridWorld,Grid_heist_run.layer): a breach door, a drill vault and the site. Testcrime/heist-run(WORLD: real breach arm, real vault drill, getaway, clock fail). Log[LFDebug:Heist]. ⚠️ Not checked live: two clients on a dedicated server running the grid site end to end. - 🔧 Heist jobs as pack data: the 1989 bank job (#3414, parent #1024, merged, in-dev): the core reads heist jobs from
Configs/Crime/LF_Heist.conf(LF_HeistConfig,Feature/Crime/LF_HeistConfig.c, ships none) and layers each pack overlay over it by site id (LF_ConfigOverlay). A job isLF_HeistSiteRow: a clock, a police-on-duty minimum and orderedLF_HeistStageRows; a stage kind resolves to its component and gate (LF_HeistKinds: door =LF_BreachTargetComponent, vault =LF_BankVaultComponent, getaway =LF_HeistRunComponentradius). The Everon 1989 pack (LF_HeistBank_Everon1989.conf, listed in the mission header) shipsbank: staff door (bank_staff_door, the clerk may choose hands up), vault (bank_vault), getaway 120 m out, 720 s clock, 2 police on duty. Testeveron/heist-bank(pack leg). ⚠️ The staff door and the site entity are not placed in the Saint-Philippe bank layer yet (follow-up card). - 🔧 Heist site reads its job row; the police minimum gates the door (#3748, parent #1024, merged, in-dev):
LF_HeistRunComponent.m_sHeistIdnames anLF_HeistConfigjob; set, the site builds its run withLF_HeistRun.FromRow(door and vault ids from the stages, getaway radius from the getaway stage or the component's own when the row says 0, clock, police minimum, clerk hands-up flag) and the door/vault/radius/clock attributes are ignored. An id with no row, or a row missing a door, vault or getaway stage, builds no run and logs[LFDebug:Heist]an error. Arming the breach on a job's door with fewer police on duty than the job needs is refused (LF_HeistRun.ArmRefusal): the offer shows "Not enough police on duty for this job" (replicated count) and the server refuses the arm with the same toast (live count). The clerk hands-up flag is carried on the run (ClerkMayHandsUp) and logged when the run starts; nothing acts on it until hands-up is a state a target chooses (#782). Testscrime/heist-run-row(LOGIC) andeveron/heist-bank-run(pack leg). - 🔧 Saint-Philippe bank: staff door and heist site placed (#3752, parent #3748, in-dev): the island bank slot (
Place_saint-philippe_bank.layer, kittools/town/kits/bank.json) now carries the heist job's two entities.LF_BankStaffDoor(Prefabs/Props/Roleplay/BankVault/, a steel leaf withLF_BreachTargetComponentidbank_staff_door) hangs in the building's real west side doorway, in front of the wooden door;LF_HeistSite_Bankis the site (LF_HeistRunComponent, heist idbank, site idsaint_philippe_bank; the 120 m getaway is measured from it). The job's police minimum, door, vault and getaway come from the pack'sbankrow (#3748). Proofnode agent-box/session.mjs island-bank-heist-proof(up --mission island --clients 4 --roster 3,4): with one officer on duty arming the door is refused, with two the door opens and the run starts, a second robber drills the vault, both robbers reach the police desk (over 120 m away) and the run completes. Log[LFDebug:Heist]. - 🔧 Chop shop fits a hidden compartment (#3776, parent #1035, merged, in-dev):
LF_ChopFitActiononLF_ChopBench("Fit a hidden compartment", shown only where the compartment table has rows, so the bare core offers nothing).LF_ChopFit.Serve(server,Feature/Crime/LF_ChopFit.c) picks the nearest car in the drop area the worker owns (LF_ChopFitRules.PickIndex), checks it (LF_ChopFitRules.Check: not the owner, noLF_VehicleCompartmentConfigrow, already fitted, short purse; each has a#LF-ChopFit_*toast), takes the table'sm_iFitPricein cash (chopshop-fit), runsLF_VehicleCompartment.Fitand hands the money back whole if the compartment does not build. The size goes into the car's saved state (LF_VehicleOwnership.SetState) and the empty compartment into the vehiclecache ledger (LF_VehicleCache.Capture, #3435), so a garage trip or a restart keeps it. No new save section. Tests LOGICcrime/chop-fit-rules, pack WORLDeveron/chop-fit. Log[LFDebug:ChopShop].
LF_HandsUp — Feature/Crime/LF_HandsUp.c, LF_HandsUpPrompt.c (#3396, slice H2 of #1024)
- 🧪 Hands up, the target chooses (2026-11-19, LOGIC
crime/hands-up-state, proofhands-up): a hold-up (LF_OnHoldUp) or a held aim (LF_OnAimedAt) offers the target a prompt, "Put your hands up?" (UI/Layouts/HUD/Crime/LF_HandsUpPrompt.layout), for 8 s, not again for 20 s. The key (LF_HandsUp, F7 / gamepad RB+X: every letter key and bare gamepad X, which is vanilla Reload and Interact, clash with a vanilla action,validate-input-vanilla-clash) sendsRpcAsk_LF_HandsUpon the target's own controller; the server takes the player id from that controller, needs a live offer, and raises the hands throughLF_HandsUpRules(#3394: walk past 1.5 m, draw a weapon, lower them with the key, or 30 s ends it). Ignoring the prompt or answering with no offer changes nothing. The state isSCR_ChimeraCharacter.m_bLF_HandsUp(RplProp,BumpMeon change, so a late joiner reads it); the owner's machine plays the vanilla halt gesture (id 2) until the state ends (no two-hand pose exists in the base game). Harness verbhandsup state|choose <0|1|2>|offer <playerId>. Logs[LFDebug:HandsUp]. No save change. - 🔧 Search needs a target that has given up: the hands-up gate (#3399, parent #1024, #782; merged, in-dev):
LF_HandsUpGate(Feature/Crime/LF_HandsUpGate.c) is the one gate a search or robbery of a PLAYER goes through. The target has given up when their hands are up or they are restrained; otherwise the action refuses with "They haven't given up." (#LF-HandsUp_NotGivenUp). The hands-up flag counts only from a target that is alive, controlled by a player and not downed (a dead body, a downed player or an AI never counts); restraint counts on its own.LF_ConfiscateAction(the officer's search) shows the reason on the offer (client, replicated flags) and refuses on the server before the search or the police-contact stamp. No action robs a player yet;LF_RobActionand the weapon and vehicle robberies rob a till, a weapon or a vehicle, so they are unchanged and a future player robbery callsLF_HandsUpGate.Check. Proofsearch-proofnow raises the target's hands first and checks the down-hands refusal. Testcrime/hands-up-gate(LF_Test_HandsUpGate, LOGIC). Logs[LFDebug:HandsUp]. No save change. - ✅ Police station rebuilt through the grid (#3889, merged, in-dev). The Saint-Philippe police slot (
Place_saint-philippe_police.layer, kittools/town/kits/police.json) was authored in a grid authoring bay around a copy of the villa (town author police), walked and audited there, extracted and stamped onto b32 (town stamp police). It is furnished lightly: the front duty desk with a desk officer (LF_Npc_Police_1) behind it, the armory cabinet and the armory store, the evidence locker, wanted, dispatch and case boards, the two duty clocks, a few seats, a plant and an interview table upstairs. The eight display pieces on the old display desk, the posters, the back desk and the street bench, bin and flowerpots (their layer height was read as height above terrain, #3938) are gone. The front fascia row is left out: no seat on the villa's front wall cleared the shell audit (follow-up). The audit of the layer reports no floating, displaced, clipping, door-blocking or unreachable row. The kit's source layer is archived attools/town/kits/sources/police.layer. - 🧪 (2026-11-22) Island jail stations seated on the real floor and out of the door swing (#3888). The laundry tub was 8.6 cm into the island floor and the kitchen sink 0.4 m into the cell door's swing. The kit row of the tub now carries
keepYwith its island height (town fitused to snap every floor row back to the model's top surface), and the sink moved 0.65 m along its wall (z) to stand clear; all three stations are still inside the cell's 2 m zone. Merged, in-dev. - 🧪 (2026-11-23) Sentences up to 15 online minutes, work stations scaled (#4207). The cell's cap is 900 s (
EL_JailCell.et,LF_JailCellComponent.MAX_SENTENCE_SECONDS); a configured cap above that clamps to 900 with a[LFDebug:Jail]warning. The cell tellsLF_JailWorkits cap (SetSentenceCap) and each finished chore credits its station number scaled to it: 3x at 15 minutes (the 8, 10 and 8 s stations take 24, 30 and 24 s off), never more than 5% of the cap for one chore, and a full shift of all stations stays within 10% (LF_JailWorkRules.ScaledSecondsOff). No cap set leaves a chore as written. No persistence change. Testjail/cap-15. Merged, in-dev.
LF_StashContainer — Feature/Crime/LF_StashContainer*.c (#4195, crime B3)
The short container: a tally clerk leaves one container short on the books, and only a player who carries the clerk's key opens it.
LF_StashContainerStockholds the rules: a key prefab, the stock lines (LF_StashContainerEntry: prefab and count) and a refill timer in seconds (default 2700).Check(player, nowSec)answersOK,NO_KEY,EMPTY,NO_STOCKorNO_PLAYER;Take(server only) moves the whole stock into the player's inventory in one go, drops what does not fit at their feet, and starts the timer. Until it runs out a second open finds it empty.LF_StashContainerComponentgoes on the container prop. The pack sets the key, the cartons and bottles and the refill time on its prefab. The component replicates only "empty or not" (m_bEmpty) so a client's action row can say why it stays shut; the server flips it back with aCallLaterat the refill.LF_StashContainerActionis the "Open the container" row. It is refused with "Locked. You need the clerk's key" or "Empty. Come back later".- The state lives for the session: a restart starts the container full again. Every take and refusal logs
[LFDebug:StashContainer]. - Test:
LF_Test_StashContainerRefill(WORLD). - 🧪 (2026-11-23) Marcel the tally clerk: dialogue and fee (#4199, crime B4). Pack dialogue
LF_Dialogue_TallyClerk.conf(idtally_clerk, speaker Marcel Brun, spectools/assets/dialogue/tally_clerk/dialogue.json), five lines, every one recorded in its own ElevenLabs voice (Antonin; no other NPC uses it): the greeting ("Container nine is short this week"), the fee line (four hundred dollars, it stays short on the books), the key line (brass key on a red string, back row past the crane), a come-back-later line and a goodbye. A player walks greeting, fee, pay. Captions are pack strings (LF-Dialogue_TallyClerk_*,LF-Townsfolk_TallyClerk_Name). The fee and the key are wired by #4381 (next row). Testeveron/tally-clerk(pack leg). - 🧪 (2026-11-23) Marcel takes the $400 and hands over the container nine key (#4381, follow-up of #4199). The pay reply ("Here is the four hundred.") runs the core dialogue action
FeeForItemwith400|{6E6C667869AC0F87}Prefabs/Items/Story/LF_ContainerNineKey.etand ends the talk. Paid: the $400 leaves the player's carried cash and the key goes into the inventory; Marcel answers with his voiced key line (itsfor_keyis#LF-Dialogue_FeePaid) and a toast says "You paid $400 in cash." Short of $400: nothing is taken and he says "That is not enough. Come back with the full amount." Already carrying the key: nothing is taken ("You already have one. Keep your money."). If the key cannot go into the inventory, the $400 comes back whole. The key isLF_ContainerNineKey.etin the pack ("Container Nine Key", brass, our house-key mesh). Marcel's body isConfigs/Npcs/LF_Npc_Townsfolk_TallyClerk.et(talk action, dialogue idtally_clerk) and his index row is the fragmentConfigs/Dialogue/LF_DialogueIndex_OldMan/LF_DialogueIndex_TallyClerk.conf. Not placed yet: the container yard on the dock is the town card CR-B9, which puts Marcel there with the kittools/town/kits/tally-clerk.jsonand sets container nine'sm_sKeyPrefabto this key. Testsdialogue/fee-trade(core) andeveron/tally-clerk(pack leg). - 🧪 (2026-11-22) Police call outcomes: resolved, no one found, unfounded (#4203, PO-D1 of 0.3.0).
LF_CallOutcome.Close(callId, officerUid, outcome, officerPosition, messageKey, messageArg)(server,Police/LF_CallOutcome.c) closes a call the officer holds asLF_CallOutcomeKind.RESOLVED,NO_ONE_FOUNDorUNFOUNDEDand records it on the call (LF_PoliceCall.m_iOutcome, added by amodded class, session only like the call list). The outcome counts only when the officer stands withincallRadius(police config, default 50 m, ground plane) of the scene: the call's own crime position, else the pay site or the report's grid square. A far close, a call another officer holds, a closed call, no outcome or a site with no position is refused with a localized reason (#LF-CallOutcome_TooFarnames the radius;NotHeld,NoCall,NoScene) and the call stays open. Success returns the closing line (#LF-CallOutcome_Resolved,NoOneFound,Unfounded). This slice only records and closes; the action row that calls it, pay, police XP, the caller's unfounded mark, the 30 s stay at the scene and the unfounded-rate flag are later PO-D cards that readm_iOutcome. Refusals log under[LFDebug:CallOutcome]. Testpolice/call-outcomes. - 🧪 (2026-11-23) A stop search finds contraband in a car (#4196, CR-B7 of 0.3.0).
LF_VehicleSearchGoods(Feature/Police/LF_VehicleSearchGoods.c). An item is classed contraband by the markerLF_VehicleSearchGoodsComponent(class tobacco, alcohol, narcotics or untaxed goods; the pack's cigarette carton and vodka bottle, #4198, carry it) or byLF_VehicleSearchGoods.Register(prefab, class). The officer's "Search vehicle" (LF_VehicleSearchAction, the quick and the full one) walks the car's storage with the chain-goods find chance (LF_ChainSearch.FindChanceof the classed units) and, on a find, toasts "Found in the trunk: 2 tobacco, 1 alcohol. Search again to seize it." The next search of that car within 5 minutes seizes exactly the classed goods still there, once, and files the offence against the people sitting in it; legal goods stay. Chain goods keep their own seize-on-find path. The pending find is server session state. Logs[LFDebug:Police] stop search found ...andseized .... Test:LF_Test_VehicleSearchGoods(WORLD). - 🧪 (2026-11-23) Rank board and commendations plaque at the station (#4206, PO-R9 of 0.3.0). Two printed boards, both board kinds (
LF_BoardProviders) that anyone may read.LF_RankBoard(Feature/Police/LF_RankBoard.c, kindrankboard, read actionLF_RankBoardReadAction) lists every account on the police roster that has a character, highest rank first and then by name, one line each: "Senior Officer: Sam Senior" (the rank title fromLF_PoliceRanks.TitleKey, so a ladder of any length works). The server builds the list per read (LF_PlayerAccountManager.CollectOfficerRows, amodded classin that file), so a promotion shows on the next read; at most 40 rows print, an empty roster says "Nobody is on the roster yet."LF_Commendations/LF_CommendationPlaque(Feature/Police/LF_Commendation.c, kindcommendations, read actionLF_CommendationPlaqueReadAction) is a ledger of name, reason and time kept in$profile:LifeFramework/police_commendations.txt(time|name|reason, 200 rows, the separator scrubbed from a name or reason);LF_Commendations.Award(name, reason, nowUnix)is the server call that engraves one, and the plaque lists the newest 30 first ("Abe Patrol: Ten years of service"). Nothing awards a commendation yet: a later card callsAward. The prefabs (a board and a plaque carrying the two read actions) and their placement are the town card R10; until then no world prop offers the action. Logs[LFDebug:RankBoard]and[LFDebug:Commendations]. Testpolice/rank-board-text(LF_Test_RankBoardText, LOGIC). - 🧪 (2026-11-23) Rank fleet: the police car pool hands each rank its car (#4205, PO-R1 of 0.3.0).
LF_RankFleet(Feature/Police/LF_RankFleet.c) reads one car per police rank id from the pack overlayLF_RankFleet_Everon1989.conf(root classLF_RankFleetConfig; a later overlay row for the same rank replaces an earlier one; the core names no vehicle). The Everon pack gives the Cadet the beige S105 and Patrol, Senior Patrol, Sergeant and Lieutenant theLF_UAZ469_Policecar.Request(rank, out prefab, out refusalKey)is what the pool calls;MayDraw(rank, prefab, out refusalKey, out neededTitleKey)lets a rank take its own car or any lower rank's, and refuses a higher car with#LF-RankFleet_NeedsRank("That car is for the rank of %1 and up.",%1= the needed rank's title key) or#LF-RankFleet_NotIssuedfor a rank with no row or a car on no row. Refusals logLF_DebugRankFleet. The cars are the vanilla prefabs for now; the white POLICE livery repaint (WO-L4) swaps the prefab in the conf row. Testspolice/rank-fleet(core) andeveron/rank-fleet(pack leg). Not wired to a spawn point yet: the pool action that callsRequestis a follow-up card. - 🧪 (2026-11-23) The cigarette carton and the vodka bottle exist (#4198, CR-B2 of 0.3.0). Pack prefabs
LF_Everon1989/Prefabs/Items/Contraband/LF_CigaretteCarton.et(vanillaLitterInterior_01_Cigarettes_02mesh, 0.2 kg, 200 ml) andLF_VodkaBottle.et(vanillaS2_Vodkamesh, 1.1 kg, 900 ml), both onRoleplayItem_Base(so a stack counts as one item with a quantity) and each with anLF_VehicleSearchGoodsComponent(carton = tobacco, bottle = alcohol), so the stop search (#4196) lists and seizes them without anyRegistercall. They go into a field pack's storage. Names are pack stringsLF-Item_CigaretteCartonandLF-Item_VodkaBottle(withDesc). No outlet sells them yet (buyer, barkeeper and container cards follow). The vanilla pack and bottle textures print Cyrillic, so each prefab overrides the one material slot that carries the print (LitterInterior_01_V1,Vodka_paper) withLF_CigaretteCarton.emat/LF_VodkaBottle.emat(inherit the vanilla material, swap only the colour map) inLF_Everon1989/Assets/Items/Contraband/: the vanilla atlas with the pack's and the label's patches repainted in US English for two invented brands, GANNET filter cigarettes and CORVIN vodka (node tools/assets/contraband-labels/build.mjs; the vodka preview camera is turned to the label front). Testeveron/contraband-items(pack leg). - 🧪 (2026-11-23) Police car pool board: draw your rank's car into the bay, in the POLICE livery (#4352).
LF_PoliceCarPoolBoard.et(core,Prefabs/Props/Police/, the vanilla motor-pool cork board mesh) carriesLF_PoliceCarPoolComponent(the bay:m_vBayOffsetin the board's frame, default 6 m in front, andm_fBayYaw) and fourLF_PoliceCarPoolDrawActionrows, slot 0 to 3. A slot is the fleet table's cars in ladder order with repeats dropped (LF_PoliceCarPool.Cars), named for the lowest rank that draws it ("Take the Cadet car", "Take the Patrol car"); a slot past the table hides, and the rows show only to police on duty (replicated account state). A car above the officer's rank stays on the list greyed with "That car is for the rank of Patrol and up." The server (LF_PoliceCarPool.Draw) checks, in order: police on duty (#LF-CarPool_OffDuty), within 5 m of the board (#LF-CarPool_TooFar), 10 s since this officer's last draw (#LF-CarPool_TooSoon),LF_RankFleet.MayDraw(the rank refusal), the officer's last pool car empty (#LF-CarPool_CarOut), and no other vehicle within 3.5 m of the bay (#LF-CarPool_BayBlocked). Then the officer's last pool car is deleted (one car per officer), the new one spawns in the bay as an unlocked service car (only an officer on duty opens it), is held out of the world save (gone at a restart) and settled on the ground; the officer gets "Your car is in the bay." Logs[LFDebug:CarPool]. The Everon fleet rows now name the pack liveries built withtoolscli livery build(WO-L4's police part):LF_S105_Police(the S105 joined the generator: its doors are animated parts of the body mesh, so one body material repaints them; white, no door lettering yet) for the Cadet andLF_UAZ469_Police(white, navy trim, POLICE plates on the front doors) for Patrol and up. Testpolice/car-pool(WORLD); the board stands with both cars in grid cellpolice-car-pool(Everon1989Grid). Not yet on the island: a town pass hangs the board at the Saint-Philippe station. - 🧪 (2026-11-23) Josselin the barkeeper: lines, prices and weekly caps (#4439, CR-B5 of 0.3.0; the plan's Josette). Pack NPC
Configs/Npcs/LF_Npc_Townsfolk_Barkeeper.et(outfitLF_Outfit_Barkeeper.conf: cotton shirt, dark trousers; no vanilla apron exists, so none yet) carries the coreLF_CounterOutletComponent(buyer idbar_chotain) with the "Sell under the counter" action beside his talk action. He is a man because every character body is male andvalidate-voice-sexrefuses a woman's name or voice on one. The pack'sLF_BuyerDemand_Bars_Everon1989.conf(its own file, listed in both mission headers) gives each bar weekly period rows (m_iPeriodHours 168):bar_chotaintakes 2 cartons at $150 and 6 vodka bottles at $45 ($570 a full week),bar_levie2 cartons at $155 and 5 bottles at $52 ($570), inside the $500 to $650 expected-clean hour of crime tier 1 in the plan's economy table. The second bar's barkeeper is placed withm_sBuyerId bar_levie(CR-B9). Dialoguebarkeeper(spectools/assets/dialogue/barkeeper/dialogue.json, five lines, every one recorded in the ElevenLabs voice Hank Harvey, which no other NPC uses): the greeting, what he buys ("Two cartons a week, a few bottles. More than that and the owner notices."), why only two cartons, the law ("If you wear a badge, I sell beer.") and a goodbye; captionsLF-Dialogue_Barkeeper_*, nameLF-Townsfolk_Barkeeper_Name. Not voiced: the toasts of the sale action ("Not with that badge on, officer.", "That's enough for this week."), which are core notifications and not dialogue lines. Not placed yet: the two bars are CR-B9_3 and CR-B9_4. Testeveron/barkeeper(pack leg).