bs_zombies
server-synced walkers: one list, one health pool, hosted AI, individual-zombie simulation.
Generated from the Lua sources in resources/[beyond]/bs_zombies/. 163 entries. The description column is the comment above the line in the code, so if it’s empty nobody wrote one yet.
Exports
Section titled “Exports”Call with exports.bs_zombies:Name(...) from the same side.
| Name | Side | Where | Description |
|---|---|---|---|
AppearanceLedger | client | client/cl_sync.lua:1655 | Same table as data for other resources (e.g. |
Corpses | client | client/cl_combat.lua:434 | |
Count | client | client/cl_sync.lua:1442 | |
Failures | client | client/cl_sync.lua:1440 | |
FeedingConfig | client | client/cl_ai.lua:1291 | Exported so bs_admin’s debug button uses the same spawn distance instead of a duplicated number. |
GetFxOptions | client | client/cl_options.lua:81 | |
HasWalker | client | client/cl_sync.lua:1419 | Did this walker get a ped on this client? |
HealthBarsVisible | client | client/cl_healthbar.lua:74 | |
HordeActive | client | client/cl_horde.lua:63 | |
HostedCount | client | client/cl_sync.lua:1444 | |
IsBeingAttacked | client | client/cl_attack.lua:435 | |
IsCrawlerPed | client | client/cl_crawl.lua:685 | |
IsGrabbed | client | client/cl_attack.lua:434 | Nothing holds the player, so this always answers false. |
IsWalkerPed | client | client/cl_sync.lua:1380 | Counts why walkers have no ped (‘model:<name>’ and ‘ground’), shown in the staff menu. |
Live | client | client/cl_sync.lua:1443 | |
PlayerProtectedInVehicle | client | client/cl_vehicle.lua:45 | |
SafeZoneMarkersShown | client | client/cl_safezones.lua:118 | Used by the Settings tab in bs_inventory. |
SetFxOption | client | client/cl_options.lua:82 | |
SetHealthBarsVisible | client | client/cl_healthbar.lua:73 | |
SetSafeZoneMarkersShown | client | client/cl_safezones.lua:119 | |
Types | client | client/cl_sync.lua:1425 | List of walker types, for anything that offers a choice (staff menu spawn buttons), so new config types show up without code changes. |
WalkerIdOf | client | client/cl_sync.lua:1832 | Walker id for a ped we can see, or nil (used by bs_gadgets turret). |
AnyNear | server | server/sv_registry.lua:1731 | Is any server-tracked walker within radius of (x, y, z)? |
AtlasCall | server | server/sv_sim_atlas.lua:648 | Entry 2: exports.bs_zombies:AtlasCall(op, args, via), for the nodes web panel (nodes/server/sv_http.lua), which has no player. |
ClearRadius | server | server/sv_director.lua:673 | Staff /dz: removes every walker within radius of x, y through the normal removal path (budgets, host lists and corpses stay consistent). |
DirectorState | server | server/sv_director.lua:712 | |
EventClear | server | server/sv_registry.lua:2081 | keep = true: untag only, so the walkers stay and fall back to normal culling. |
EventCount | server | server/sv_registry.lua:2079 | |
EventDrive | server | server/sv_registry.lua:2078 | |
EventNoise | server | server/sv_registry.lua:2082 | |
EventSpawn | server | server/sv_registry.lua:2077 | |
GadgetHit | server | server/sv_registry.lua:2092 | Gadget damage (bs_gadgets turret). |
Heat | server | server/sv_director.lua:685 | |
InSafeZone | server | server/sv_registry.lua:1692 | Same list plus the padded radius, for the Node Atlas panel. |
NodeAtlas | server | server/sv_nodes.lua:1110 (not in fxmanifest) | The atlas graph, so the panel can draw roads. |
NodeList | server | server/sv_nodes.lua:1079 (not in fxmanifest) | Every herd, flattened for drawing: position, size, behaviour and traits. |
NodeMemory | server | server/sv_nodes.lua:1134 (not in fxmanifest) | Spatial memory as cells worth colouring (visits and kills). |
NodeSnapshot | server | server/sv_nodes.lua:1076 (not in fxmanifest) | |
SafeZones | server | server/sv_registry.lua:1680 | Safe zones as plain numbers. |
SafeZonesPadded | server | server/sv_registry.lua:1701 | |
SectorClearDebt | server | server/sv_sectors.lua:481 | |
SectorGrid | server | server/sv_sectors.lua:459 | |
SectorSet | server | server/sv_sectors.lua:475 | |
SectorSnapshot | server | server/sv_sectors.lua:457 | |
SetSpawnMode | server | server/sv_spawnsrc.lua:208 | |
Snapshot | server | server/sv_registry.lua:1721 | |
SpawnMode | server | server/sv_spawnsrc.lua:207 | |
StreamSnapshot | server | server/sv_streaming.lua:669 | |
Total | server | server/sv_registry.lua:1714 | |
WorldSeed | server | server/sv_registry.lua:1719 |
Callbacks
Section titled “Callbacks”Server callbacks are called from a client with BSB.Await(name, timeoutMs, ...). Client callbacks are called from the server with BSB.AwaitClient(src, name, timeoutMs, ...).
| Name | Direction | Where | Description |
|---|---|---|---|
zombies:atlas: | client -> server | server/sv_sim_atlas.lua:638 | |
zombies:debug:nearby | client -> server | server/sv_sim_atlas.lua:125 | The in-world Alt overlay only identifies a real local walker (A) next to its unmaterialised simulation neighbours (D). |
zombies:force | client -> server | server/sv_registry.lua:1753 | |
zombies:loot | client -> server | server/sv_director.lua:502 | |
zombies:lootCheck | client -> server | server/sv_director.lua:482 | |
zombies:nearest | client -> server | server/sv_registry.lua:1957 | |
zombies:sectors:cleardebt | client -> server | server/sv_sectors.lua:428 | |
zombies:sectors:list | client -> server | server/sv_sectors.lua:396 | |
zombies:sectors:set | client -> server | server/sv_sectors.lua:416 |
Events
Section titled “Events”“net” means the handler is registered with RegisterNetEvent, so the other side can trigger it. “local” is AddEventHandler only (same side, or game events).
| Name | Side | Type | Where | Description |
|---|---|---|---|---|
bs_config:changed: | client | local | client/cl_safezones.lua:133 | Redraw when the zones are edited in F1. |
bs_config:changed: | shared | local | config/config_zones.lua:101 | |
bs:combatfx:options | client | local | client/cl_healthbar.lua:27 | |
bs:crafting:skinZombie | client | local | client/cl_combat.lua:219 | Skinning is run by bs_crafting, but the body is ours: hold it here and on the server so it is not culled or timed out while the player kneels over it. |
bs:factionBases:changed | server | local | server/sv_flagzones.lua:8 | bs_faction_bases fires this on every flag change. |
bs:factionBases:sync | client | net | client/cl_safezones.lua:138 | Player faction flags arrive from bs_faction_bases. |
bs:hook:player:loaded | client | local | client/cl_options.lua:92 | |
bs:hook:player:spawned | client | local | client/cl_safezones.lua:122 | Re-drawn on respawn so a resource restart in between cannot leave it missing. |
bs:hook:player:unloaded | client | local | client/cl_attack.lua:414 | |
bs:sim:stance | server | net | server/sv_sim_senses.lua:144 | Stance report from cl_sim_stance.lua. |
bs:ui:soundEnded | client | local | client/cl_ai.lua:218 | The page finished a clip, stop moving a sound nobody hears. |
bs:vip:changed | client | local | client/cl_options.lua:91 | VIP status decides whether custom colours apply. |
bs:weapons:shot | client | local | client/cl_damage.lua:298 | |
bs:world:noise | client | local | client/cl_ai.lua:1217 | |
bs:world:noise | server | net | server/sv_director.lua:196 | Gunfire is the loudest way to tell a zone you are in it. |
bs:z:add | client | net | client/cl_net.lua:422 | |
bs:z:animreport | server | net | server/sv_registry.lua:1837 | Client side of /zanim, so the clipset info lands in a file. |
bs:z:badnative | server | net | server/sv_registry.lua:1831 | |
bs:z:correctHost | client | net | client/cl_sync.lua:1173 | |
bs:z:crippled | client | net | client/cl_damage.lua:195 | |
bs:z:dead | client | net | client/cl_combat.lua:396 | |
bs:z:dmg | server | net | server/sv_registry.lua:1401 | |
bs:z:draw | client | net | client/cl_horde.lua:45 | The server tells a host to pull one of its walkers toward something. |
bs:z:drunktest9 | client | net | client/cl_ai.lua:2011 | |
bs:z:drunktest9 | server | net | server/sv_net.lua:624 | /zdrunktest9 (see cl_ai.lua): a ped made the way real walkers are made. |
bs:z:enginedeath | server | net | server/sv_registry.lua:1816 | A client could not apply one of the natives that makes a walker a walker. |
bs:z:envdeath | server | net | server/sv_registry.lua:1567 | |
bs:z:gated | server | net | server/sv_registry.lua:1175 | Server half of the spawn-on-top-of-player guard: cl_sync holds any record inside Noise.Materialise.hardFloor instead of creating it. |
bs:z:grab | server | net | server/sv_registry.lua:1581 | Being grabbed is shared: everyone near sees the same walker holding the same player, since state rides on the record. |
bs:z:grabbed | client | net | client/cl_attack.lua:365 | Another player is attacked: play the same swing on our copy of the walker so everyone sees the lunge. |
bs:z:hit | server | net | server/sv_registry.lua:1308 | |
bs:z:horde | client | net | client/cl_horde.lua:5 | |
bs:z:hordeOver | client | net | client/cl_horde.lua:39 | |
bs:z:host | client | net | client/cl_sync.lua:1144 | Who this client is responsible for. |
bs:z:hurt | client | net | client/cl_ai.lua:1269 | A hit anywhere pulls the ones this client steers, whoever fired. |
bs:z:materialised | server | net | server/sv_registry.lua:1177 | |
bs:z:net:app | server | net | server/sv_net.lua:568 | The owner applied the seeded appearance once; later owners must not redo it. |
bs:z:net:fps | server | net | server/sv_net.lua:545 | |
bs:z:net:grounded | server | net | server/sv_net.lua:558 | The owner grounded a ped that was created without a known z. |
bs:z:netkill | client | net | client/cl_net.lua:429 | A corpse that nobody killed: the server asks its owner to. |
bs:z:nolos | server | net | server/sv_net_target.lua:35 | The owner tried, and a wall was in the way. |
bs:z:orphan | server | net | server/sv_registry.lua:1803 | |
bs:z:pedlost | server | net | server/sv_registry.lua:1810 | |
bs:z:report | server | net | server/sv_registry.lua:979 | |
bs:z:rm | client | net | client/cl_net.lua:409 | The server removed / killed it: never re-adopt that id until it is announced again. |
bs:z:synca | server | net | server/sv_registry.lua:2125 | |
bs:z:syncq | client | net | client/cl_sync.lua:1887 | /zsync: the server asks, we answer with what exists locally. |
bs:z:upd | client | net | client/cl_sync.lua:1053 | Walkers vanished when you got close: the server spawns at z = 0.0 and relies on the host client to report ground height, but hosts only exist within HOST_RADIUS (180m) while… |
bs:z:vehhit | server | net | server/sv_registry.lua:1514 | |
bs:z:verify | server | net | server/sv_registry.lua:1139 | |
bs:zombies:bitten | server | net | server/sv_director.lua:587 | |
bs:zombies:dot:loot | client | local | client/cl_combat.lua:168 | |
bs:zombies:holdCorpse | server | net | server/sv_director.lua:492 | |
bs:zs:diag | client | net | client/cl_spawner.lua:431 | Client half of /zdiag. |
bs:zs:diagreply | server | net | server/sv_streaming.lua:929 | The client’s answer, printed in the same readout. |
bs:zs:plan | client | net | client/cl_spawner.lua:319 | |
bs:zs:report | server | net | server/sv_streaming.lua:295 | Dry-run report. A client sends one per work pass: candidates accepted and refused per reason. |
bs:zs:spawn | server | net | server/sv_streaming.lua:457 | |
bs:zs:tele | server | net | server/sv_streaming.lua:276 | |
entityRemoved | server | local | server/sv_net.lua:489 | |
onResourceStop | client | local | client/cl_ai.lua:723 | On shutdown Zed.owned still has the meals so releaseEverything() collects them; this only clears the timer table. |
onResourceStop | server | local | server/sv_net.lua:535 | Best-effort save on shutdown. |
playerDropped | server | local | server/sv_director.lua:500 | A disconnecting player’s noise record is dropped so the table does not grow forever. |
txAdmin:events:serverShuttingDown | server | local | server/sv_nodes.lua:914 (not in fxmanifest) |
Commands
Section titled “Commands”| Command | Side | Where | Description |
|---|---|---|---|
/bs_zombiehp | client | client/cl_healthbar.lua:66 | Any VIP or staff member can toggle this for themselves from chat. |
/hitmarkertest | client | client/cl_hitmarker.lua:125 | /hitmarkertest - plays the three sounds without needing a zombie, weapon or VIP. |
/pools | client | client/cl_pools.lua:131 | |
/safezones | client | client/cl_safezones.lua:104 | /safezones - toggle. No ace check: it only draws zones from a config file every client already has. |
/sector | server | server/sv_sectors.lua:437 | /sector - what square am I in, and what is it doing? |
/zanim | client | client/cl_sync.lua:1543 | /zanim - asks the engine directly which clipsets are loaded (and by which native), and for the nearest walker, its recorded gait, move rate and repair state. |
/zclear | server | server/sv_director.lua:660 | |
/zcrawl | client | client/cl_crawl.lua:695 | Same idea as /zanims in cl_sync.lua: check that the animation is there and something is moving it. |
/zdebug | client | client/cl_sync.lua:1461 | |
/zdiag | server | server/sv_streaming.lua:914 | |
/zdrunkclear | client | client/cl_ai.lua:1876 | |
/zdrunktest | client | client/cl_ai.lua:1646 | |
/zdrunktest2 | client | client/cl_ai.lua:1658 | |
/zdrunktest3 | client | client/cl_ai.lua:1694 | |
/zdrunktest4 | client | client/cl_ai.lua:1737 | |
/zdrunktest5 | client | client/cl_ai.lua:1801 | /zdrunktest5 <mask>: /zdrunktest4 10 plus extras only real walkers get at spawn. |
/zdrunktest6 | client | client/cl_ai.lua:1846 | /zdrunktest6 [model]: the /zdrunktest ped moved by TaskGoStraightToCoord at the player, re-issued every 2.5 s like a drawn walker. |
/zdrunktest7 | client | client/cl_ai.lua:1886 | /zdrunktest7 [mask] [model]: /zdrunktest6 plus the setup groups from cl_net.lua configureOwned(), switchable by bit. |
/zdrunktest8 | client | client/cl_ai.lua:1930 | /zdrunktest8 [model]: same as /zdrunktest6 but with a networked ped (isNetwork = true), to see if networking strips the stagger. |
/zdrunktest9 | client | client/cl_ai.lua:2049 | |
/zgait | client | client/cl_ai.lua:1469 | /zgait: one line per nearby walker. |
/zgaitprobe | client | client/cl_ai.lua:1964 | |
/zhorde | server | server/sv_director.lua:612 | |
/zmode | server | server/sv_spawnsrc.lua:174 | |
/zmodelinfo | client | client/cl_sync.lua:1668 | |
/znet | server | server/sv_net.lua:611 | |
/znetc | client | client/cl_net.lua:465 | |
/znodes | server | server/sv_nodes.lua:952 (not in fxmanifest) | |
/znodesave | server | server/sv_nodes.lua:1028 (not in fxmanifest) | /znodesave - force a save and print the row counts written. |
/zpoi | server | server/sv_poi.lua:338 | |
/zsim | server | server/sv_sim_atlas.lua:668 | |
/zstance | client | client/cl_sim_stance.lua:75 | /zstance - shows the stance this client reports. |
/zstatus | server | server/sv_director.lua:625 | |
/zstream | server | server/sv_streaming.lua:614 | |
/zsync | server | server/sv_registry.lua:2108 | |
/ztestdamage | client | client/cl_damage.lua:375 | |
/ztestsenses | client | client/cl_ai.lua:1298 | |
/ztestspawn | client | client/cl_sync.lua:1789 | |
/zvanilla | client | client/cl_sync.lua:1531 | /zvanilla - respawn every walker on this client with the base-game model, to rule out the ped pack without a restart or config edit. |
/zwhy | client | client/cl_sync.lua:1605 | /zwhy prints the last 40 peds this client created, most recent first, with the path (spawn, streamin, reground…), distance and gate decision. |
Files not loaded
Section titled “Files not loaded”These Lua files are on disk but no pattern in fxmanifest.lua loads them (or they are only pulled in with @bs_zombies/... by another resource). Anything listed from them above is not live in this resource.
server/sv_nodes.luaserver/sv_nodes_db.lua
bs19.org · Privacy · Terms · Cookie settings
Cookies and outside content
The site only needs two essential cookies to keep you logged in and protect forms. Videos and streams from YouTube and Twitch load from their servers, which can set their own cookies, so they stay off until you say yes. Nothing is pre-ticked and you can change your mind any time with "Cookie settings" at the bottom of every page. Details.
Questions about the server, the framework or the site? A real person reads this, usually within a day.