custom monster macros n stuff - crash?

Discuss programming in the QuakeC language.
Post Reply
ceriux
Posts: 2230
Joined: Sat Sep 06, 2008 3:30 pm
Location: Indiana, USA

custom monster macros n stuff - crash?

Post 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);};
Supa
Posts: 164
Joined: Tue Oct 26, 2004 8:10 am

Re: custom monster macros n stuff - crash?

Post by Supa »

Is there a reason for why you are calling ai_run in an idle walk sequence?
aut viam inveniam aut faciam
ceriux
Posts: 2230
Joined: Sat Sep 06, 2008 3:30 pm
Location: Indiana, USA

Re: custom monster macros n stuff - crash?

Post 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.
Post Reply