Project details
Project: HauntedDoors
dev language: c# oxide
Plugin language: en
Author: @RustFlash
HauntedDoors spawns spooky “ghosts” when a player opens certain hinged doors. Despite the display description (“double doors”), the code checks both single and double hinged wood/metal/HQM doors. Ghosts spawn with optional sound and visual effects, then despawn after a short duration.
OnDoorOpened hook → checks door type → rolls SpawnChance (default 0.15) before spawning.GhostDuration seconds (default 4).oxide/config/HauntedDoors.json
{
"Ghost spawn chance (0.0 - 1.0)": 0.15,
"Ghost visibility duration (seconds)": 4.0,
"Play sound effects": true,
"Show visual effects (smoke/fog)": true
}
Notes
door.hinged.wood, door.double.hinged.wood, door.hinged.metal, door.double.hinged.metal, door.hinged.toptier, door.double.hinged.toptier.Ghost spawn chance (0.0 - 1.0): Probability that opening an allowed door spawns a ghost (0.0–1.0).Ghost visibility duration (seconds): Lifetime for spawned ghosts before they vanish.Play sound effects: Toggle audio on spawn/despawn.Show visual effects (smoke/fog): Toggle visual FX on spawn/despawn.load, run, enjoy 💝