zombielore

zombie_lore.lua — Zombie module

What it does

Dynamically rewrites the active SandboxVars.ZombieLore settings and immediately forces all nearby zombies to recalculate their stats. Supports named preset profiles, full manual stat overrides, a randomise flag, a stress-scaling mode, sprinter percentage control, and an optional persistent auto-mutation system (ShavedChalupa).

Trigger type

zombielore

Parameters

ParameterTypeDefaultValid ValuesDescription
profilestringnoneapex, survival, survivor, builder, beginner, apocalypse, blind_rage, shamblers, ragevirus, berserker, deaf_blind, tracker, walker_only, infected_mixApply a named preset. Individual overrides are applied on top.
randomizebooleanfalsetrue, falseRandomise all numeric stats within valid ranges.
scale_stressbooleanfalsetrue, falseScale Strength and Cognition inversely to player stress.
globalbooleantruetrue, falseUpdate all zombies in cell when true, or only within radius when false.
radiusnumber20Any positive numberUsed only when global is false.
ShavedChalupabooleannonetrue, falseEnable/disable continuous auto-mutation. Zombies re-roll lore stats periodically on each update tick.
quietbooleanfalsetrue, falseSuppress player speech bubble when toggling ShavedChalupa.
Speednumbernone1–41=Sprinters, 2=Fast Shamblers, 3=Shamblers, 4=Random mix.
sprintersnumbernone0–100% of zombies that are sprinters when Speed=4. Automatically sets Speed to 4.
Strengthnumbernone1–41=Superhuman, 2=Normal, 3=Weak, 4=Random.
Toughnessnumbernone1–41=Tough, 2=Normal, 3=Fragile, 4=Random.
ZombiesArmorFactorfloatnoneAny ≥ 0.0Multiplier for effectiveness of armor worn by zombies.
ZombiesMaxDefensenumbernone0–100Maximum defense % that zombie armor can provide.
ChanceOfAttachedWeaponnumbernone0–100% chance a zombie spawns with an attached weapon.
ZombiesFallDamagefloatnoneAny ≥ 0.0Multiplier for damage zombies take when falling from height.
Cognitionnumbernone1–41=Navigate+Doors, 2=Navigate, 3=Basic, 4=Random.
doorOpeningnumbernone0–100% of zombies that can open doors when Cognition=4. Automatically sets Cognition to 4.
Memorynumbernone1–6How long zombies remember the player. 1=Long, 6=None.
Sightnumbernone1–51=Eagle-eyed, 5=Poor.
Hearingnumbernone1–51=Pinpoint, 5=Poor.
ActiveOnlynumbernone1–3When zombies are most active. 1=Both, 2=Night, 3=Day.
SpottedLogicbooleannonetrue, falseEnable advanced stealth system (hiding behind cars, trait/weather effects).
CrawlUnderVehiclenumbernone1–7Zombie crawl-under-vehicle behaviour. 1=Often, 7=Never.
DisableFakeDeadnumbernone1–3Fake dead zombie reanimation. 1=World zombies, 2=World+Combat, 3=Never.
Transmissionnumbernone1–41=Blood+Saliva, 2=Saliva Only, 3=Everyone Infected, 4=None.
Mortalitynumbernone1–7How fast infection kills. 1=Instant, 5=2-3 Days, 7=Never.
Reanimatenumbernone1–6How fast corpses reanimate. 1=Instant, 6=1-2 Weeks.
ThumpNoChasingbooleannonetrue, falseZombies attack doors/constructions while roaming without having seen the player.
ThumpOnConstructionbooleannonetrue, falseZombies can destroy player-built constructions and defenses.
TriggerHouseAlarmbooleannonetrue, falseZombies can trigger house alarms.
ZombiesDragDownbooleannonetrue, falseMultiple zombies can drag the player down.
ZombiesCrawlersDragDownbooleannonetrue, falseCrawler zombies contribute to drag-down chance.
ZombiesFenceLungebooleannonetrue, falseZombies lunge at player after climbing a fence or through a window.
PlayerSpawnZombieRemovalnumbernone1–2Whether zombies near the player spawn point are removed.
FenceThumpersRequirednumbernone1–5Zombies needed to damage a tall fence. 1=Disabled, 2=10, 3=25, 4=50, 5=100.
FenceDamageMultiplierfloatnoneAny ≥ 0.0How quickly zombies damage tall fences.

Examples

Apply the "apex" preset (max difficulty, all sprinters)
{ type="zombielore", profile="apex" }
Set random speed mix with 50% sprinters
{ type="zombielore", sprinters=50 }
Random cognition with 33% able to open doors
{ type="zombielore", doorOpening=33 }
Randomise all lore stats only for zombies within 30 units
{ type="zombielore", randomize=true, global=false, radius=30 }
Enable continuous auto-mutation with beginner preset
{ type="zombielore", profile="beginner", ShavedChalupa=true, quiet=true }
Nightmare mode: tough, fast, drag you down, lunge, open doors
{ type="zombielore", Strength=1, Toughness=1, sprinters=75, ZombiesDragDown=true, ZombiesFenceLunge=true, doorOpening=50 }
Slow infection, no fake dead, disable fence thumping
{ type="zombielore", Mortality=7, Reanimate=6, DisableFakeDead=3, FenceThumpersRequired=1 }