diff --git a/source/server/entities/traps.qc b/source/server/entities/traps.qc index bda8afb..28957ff 100644 --- a/source/server/entities/traps.qc +++ b/source/server/entities/traps.qc @@ -25,6 +25,8 @@ */ +#define TRAP_SPAWNFLAG_REQUIRESPOWER 1 + // // -------------------- // Electric Trap @@ -269,6 +271,10 @@ void() zapper_switch = if (!self.calc_time) self.calc_time = 60; + // Requires Power + if (self.spawnflags & TRAP_SPAWNFLAG_REQUIRESPOWER) + self.requirespower = true; + self.solid = SOLID_TRIGGER; precache_model(self.model); precache_sound("sounds/machines/elec_shock.wav");