R_Slasher
r_slasher Creating Maps
Add your own Slasher Night maps in r_slasher: the play zone, survivor and killer spawns, batteries, fuse boxes, exits and the reboot van.
Maps live in shared/config_maps.lua. Four come ready: Stab City, Paleto Sawmill,
O'Neil Ranch and Rogers Salvage. Add a map there, then use its key in a public lobby
(R.Lobbies) or pick it in a custom lobby.
A map
R.Maps = {
stabcity = {
label = 'Stab City',
image = 'media/maps/stabcity.jpg',
zone = { coords = vec3(58.00, 3672.00, 38.75), radius = 95.0 },
killerSpawn = vec4(69.56, 3600.51, 39.63, 212.24),
reboot = vec4(57.10, 3714.69, 39.75, 166.48),
spawns = {
vec4(24.42, 3726.10, 38.62, 211.83),
vec4(49.27, 3736.77, 38.58, 187.68)
-- one per survivor, 9 for a full lobby of 10
},
batteries = {
vec3(18.10, 3678.94, 38.76),
vec3(34.31, 3719.13, 38.68)
},
fuseBoxes = {
vec4(71.68, 3706.41, 39.75, 73.10),
vec4(53.77, 3641.73, 39.55, 320.93)
},
exits = {
vec4(104.10, 3592.70, 38.74, 210.17),
vec4(0.20, 3727.80, 39.74, 47.76)
}
}
}| Field | What it is |
|---|---|
label | Name in the hub |
image | Card image, a file in web/build/media/maps/ or an https link (2:1, e.g. 1200x600) |
zone | Play area. Players outside it for R.Round.outOfBounds seconds are sent back |
killerSpawn | Where the killer starts, facing the heading |
reboot | Where the reboot van parks |
spawns | Survivor spawns. Add one per survivor, extra survivors share a spawn a step to the side |
batteries | Battery spots. R.Round.batteriesSpawned of them get a battery each round |
fuseBoxes | Stand at the spot and face where the box should be |
exits | Open when every fuse box is full. Survivors escape by running into them |
Batteries and fuse boxes are only used in Power Outage. Survive the Night and Last Stand only need the zone and the spawns.
Tips
- Stand on the spot in game and copy your coords with your admin menu. Use your heading for every
vec4. - Keep every spot inside the zone.
- Put the exits at the edge of the zone, far from the killer spawn.
- Spread batteries across the whole map so survivors have to move.
- Restart the resource after editing the file.