Page 1 of 1

custom monster macros n stuff - crash?

Posted: Wed Mar 21, 2012 5:35 am
by ceriux
hey this compiles fine and everything, but why does it cause quake to crash after the map loads?

Code: Select all

void()	army_walk1	=[	$run1,		army_walk2	] {
if (random() < 0.2)
	sound (self, CHAN_VOICE, "soldier/idle.wav", 1, ATTN_IDLE);
ai_run(11);};
void()	army_walk2	=[	$run2,		army_walk3	] {ai_walk(15);};
void()	army_walk3	=[	$run3,		army_walk4	] {ai_walk(10);};
void()	army_walk4	=[	$run4,		army_walk5	] {ai_walk(10);};
void()	army_walk5	=[	$run5,		army_walk6	] {ai_walk(8);};
void()	army_walk6	=[	$run6,		army_walk7	] {ai_walk(15);};
void()	army_walk7	=[	$run7,		army_walk8	] {ai_walk(10);};
void()	army_walk8	=[	$run8,		army_walk1	] {ai_walk(8);};

Re: custom monster macros n stuff - crash?

Posted: Wed Mar 21, 2012 5:44 am
by Supa
Is there a reason for why you are calling ai_run in an idle walk sequence?

Re: custom monster macros n stuff - crash?

Posted: Wed Mar 21, 2012 5:46 am
by ceriux
right as i posted that (after searching though for like 30 mins) i found it -.- it wasnt supposed to be but i guess i overlooked it. thanks i was going to delete this but i figured it out. thanks for your quick reply.