bringback.qc moved respawn_enabled to defs.qc and made a float, whitespace fixes

defs.qc added respawn_enabled
world.qc added setup for respawn_enabled. Is only checked on map load.
This commit is contained in:
Timothy C. McGrath 2004-02-14 10:35:17 +00:00
parent 9da852c80f
commit 029ab404b5
3 changed files with 55 additions and 57 deletions

View file

@ -3,8 +3,6 @@
// void bringback (); declared in ogre.qc ( first file its referanced in);
// void savecritter (); ""
integer respawn_enabled = 1;
@static {
void () hes_dead_jim = [ self.frame, im_alive, 10 ] { }
@ -49,6 +47,7 @@ void () im_alive = [ 0, (self.th_walk), 0.2 ]
spawn_tfog (self.origin);
//Don't stay angry at everyone.
//Side note. NIL is the same as WORLD.
self.enemy = NIL;
//We have to set the origin no matter what kind of creature it is, so the
@ -61,7 +60,6 @@ void () im_alive = [ 0, (self.th_walk), 0.2 ]
setorigin (self, self.origin);
}
}
};
void () savecritter =

View file

@ -38,7 +38,7 @@ float total_monsters;
float found_secrets; // number of secrets found
float killed_monsters; // number of monsters killed
float respawn_enabled; // is respawn allowed
// spawnparms are used to encode information about clients across server
// level changes
@ -692,5 +692,3 @@ void(entity targ, entity inflictor, entity attacker, float damage) T_Damage;
float (entity e, float healamount, float ignore) T_Heal; // health function
float(entity targ, entity inflictor) CanDamage;

View file

@ -333,6 +333,8 @@ void() worldspawn =
// 63 testing
lightstyle(63, "a");
respawn_enabled = cvar ("respawn_enabled");
localcmd ("set respawn_enabled " + ftos (respawn_enabled) + "\n");
};
void() StartFrame =