mirror of
https://github.com/nzp-team/quakec.git
synced 2024-11-22 03:41:15 +00:00
SERVER: Auto-remove targetless lights and info_null
This commit is contained in:
parent
9fc6f93e77
commit
6f43585c0f
2 changed files with 5 additions and 2 deletions
|
@ -46,6 +46,7 @@ void() info_player_1_spawn = {};
|
||||||
void() info_player_2_spawn = {};
|
void() info_player_2_spawn = {};
|
||||||
void() info_player_3_spawn = {};
|
void() info_player_3_spawn = {};
|
||||||
void() info_player_4_spawn = {};
|
void() info_player_4_spawn = {};
|
||||||
|
void() info_null = {remove(self);};
|
||||||
|
|
||||||
void() zombie_horde_point = {};
|
void() zombie_horde_point = {};
|
||||||
|
|
||||||
|
|
|
@ -61,8 +61,10 @@ void() LS_Setup =
|
||||||
void() L_Setup =
|
void() L_Setup =
|
||||||
{
|
{
|
||||||
// If it's not vanilla ZHLT, cut it off.
|
// If it's not vanilla ZHLT, cut it off.
|
||||||
if (self.style > 12)
|
if (self.style > 12 || !self.targetname) {
|
||||||
|
remove(self);
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Set the Light to be Off if the spawnflag is set.
|
// Set the Light to be Off if the spawnflag is set.
|
||||||
/*if ((self.spawnflags & LIGHT_SPAWNFLAG_STARTOFF)) {
|
/*if ((self.spawnflags & LIGHT_SPAWNFLAG_STARTOFF)) {
|
||||||
|
|
Loading…
Reference in a new issue