actually wake up after resurecting

This commit is contained in:
Bill Currie 2004-02-11 08:10:21 +00:00
parent f2806c8d7b
commit dd9e935d81
2 changed files with 9 additions and 9 deletions

View file

@ -3,7 +3,7 @@
// void bringback (); declared in ogre.qc ( first file its referanced in);
// void savecritter (); ""
integer respawn_enabled;
integer respawn_enabled = 1;
@static {
@ -18,7 +18,7 @@ void () no_hes_not = [ self.frame, im_alive, 5 ]
setmodel (self, "");
}
void () im_alive =
void () im_alive = [ 0, (self.th_run), 0.2 ]
{
self.solid = SOLID_SLIDEBOX;
self.movetype = MOVETYPE_STEP;
@ -57,9 +57,7 @@ void () im_alive =
spawn_tfog (self.origin);
spawn_tdeath (self.origin, self);
if (FindTarget) {
self.think = self.th_run;
} else {
if (!FindTarget) {
self.think = self.th_walk;
}

View file

@ -82,10 +82,12 @@ void() army_walk22 =[ $prowl_22, army_walk23 ] {ai_walk(1);};
void() army_walk23 =[ $prowl_23, army_walk24 ] {ai_walk(1);};
void() army_walk24 =[ $prowl_24, army_walk1 ] {ai_walk(1);};
void() army_run1 =[ $run1, army_run2 ] {
if (random() < 0.2)
sound (self, CHAN_VOICE, "soldier/idle.wav", 1, ATTN_IDLE);
ai_run(11);};
void() army_run1 =[ $run1, army_run2 ]
{
if (random() < 0.2)
sound (self, CHAN_VOICE, "soldier/idle.wav", 1, ATTN_IDLE);
ai_run(11);
};
void() army_run2 =[ $run2, army_run3 ] {ai_run(15);};
void() army_run3 =[ $run3, army_run4 ] {ai_run(10);};
void() army_run4 =[ $run4, army_run5 ] {ai_run(10);};