Forum

custom monster macros n stuff - crash?

Discuss programming in the QuakeC language.

Moderator: InsideQC Admins

custom monster macros n stuff - crash?

Postby ceriux » Wed Mar 21, 2012 5:35 am

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);};
User avatar
ceriux
 
Posts: 2223
Joined: Sat Sep 06, 2008 3:30 pm
Location: Indiana, USA

Re: custom monster macros n stuff - crash?

Postby Supa » Wed Mar 21, 2012 5:44 am

Is there a reason for why you are calling ai_run in an idle walk sequence?
aut viam inveniam aut faciam
User avatar
Supa
 
Posts: 164
Joined: Tue Oct 26, 2004 8:10 am

Re: custom monster macros n stuff - crash?

Postby ceriux » Wed Mar 21, 2012 5:46 am

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.
User avatar
ceriux
 
Posts: 2223
Joined: Sat Sep 06, 2008 3:30 pm
Location: Indiana, USA


Return to QuakeC Programming

Who is online

Users browsing this forum: No registered users and 1 guest