Skip to content

Raiding & Turrets

Raiding

Players without access to a base can breach it with C4 (Config.Raid in config/general.lua).

  • enable - master switch for the whole raid system.
  • c4Item - the item/weapon needed to plant C4 (default weapon_stickybomb).
  • What can be bombed: PlantOnDoors, PlantOnBuildingProps (walls, foundations...), PlantOnFunritures, PlantOnStorage, PlantOnTurrets - each individually toggleable.
  • DamageAtProps - health removed per explosion. Combined with per-tier prop health this controls how many charges a wall takes.
  • Loot bags - when a storage container with items inside is destroyed, its contents drop as a physical loot bag raiders can search. BagDespawnTime controls how long it stays, 300 seconds (5 minutes) by default.
  • Structural logic still applies during raids - blow up the supports and everything above collapses.

Raid hours

Restrict raiding to a time window (server local time):

RaidHours = {
    enable = false,   -- false = raiding allowed 24/7
    StartHour = 12,   -- raiding opens at 12:00
    EndHour = 0,      -- raiding closes at 00:00 (midnight)
},

Overnight windows work too (e.g. StartHour = 20, EndHour = 2). Outside the window players get a "Raiding Closed" notification showing the allowed hours.

Turrets

Automated defense guns, powered by your base (Config.Turret).

  • Targeting modes - turrets pick their own targets. The default mode for new turrets is configurable, and owners can switch modes per turret (e.g. armed / passive).
  • targetPlayers / targetNPCs - what turrets may ever shoot. A ped-model ignore list protects animals (or anything you add) from being shot.
  • Behavior tuning: rotation speed, fire tolerance, target-loss reset time, weapon, lock-on sound.
  • Turrets consume power - in Pro they must be wired to the grid, in Lite any running generator feeds them.
  • Turrets can be raided: C4 on a turret (if PlantOnTurrets is on) destroys it.

Balance tips

  • Raise DamageAtProps or lower tier-3 health if raids feel too slow - do the opposite to make concrete bases real fortresses.
  • Keep PlantOnStorage = false if you want raiders to fight to the loot room but not pop containers directly.