Forum

Random monsters and gyro.

Need help with a tutorial found on InsideQC.com? Post here.

Moderator: InsideQC Admins

Random monsters and gyro.

Postby IHateThisMap » Wed Mar 18, 2009 2:26 pm

I'm getting a error when i compile the random monster tutorial:

Code: Select all
error: Q505: ranzombie.qc:19:Unknown value "demon1_stand1"[


Code: Select all
// Fiend
   if (r == 0)
   {
      self.classname = "monster_demon1";
      self.solid = SOLID_SLIDEBOX;
      self.movetype = MOVETYPE_STEP;

      setmodel (self, "progs/demon.mdl");

      setsize (self, VEC_HULL2_MIN, VEC_HULL2_MAX);
      self.health = 300;

      self.th_stand = demon1_stand1;
      self.th_walk = demon1_walk1;
      self.th_run = demon1_run1;
      self.th_die = demon_die;
      self.th_melee = Demon_MeleeAttack;      // one of two attacks
      self.th_missile = demon1_jump1;         // jump attack
      self.th_pain = demon1_pain;
   }
   
   // Rottweiler
   if (r == 1)
   {
      self.classname = "monster_dog";
      self.solid = SOLID_SLIDEBOX;
      self.movetype = MOVETYPE_STEP;

      setmodel (self, "progs/dog.mdl");

      setsize (self, '-32 -32 -24', '32 32 40');
      self.health = 25;

      self.th_stand = dog_stand1;
      self.th_walk = dog_walk1;
      self.th_run = dog_run1;
      self.th_pain = dog_pain;
      self.th_die = dog_die;
      self.th_melee = dog_atta1;
      self.th_missile = dog_leap1;
   }



I think I know what's goin' on but i don't know how to fix it. BTW I know ranzombie is the wrong file name, I dont thin that's the problem.

Also I want to use gyro to make all the items i the game (health packe, weapons, amo, powerups, and gibs) physics objects but i cant figure it out. Could someone tell me how to make a few of them work and i will figute the rst out on my own.

Thanks
IHateThisMap
 
Posts: 14
Joined: Wed Mar 18, 2009 2:34 am
Location: Quake, ID, B-Movies, Comic

Postby Supa » Wed Mar 18, 2009 7:51 pm

This is due to a typo in the tutorial, you'll need to replace instances of demon1_ with demon_.

As for getting started with Gyro did you take a look at Quakematt's example botmatch mod? Between reading the source and referencing the Gyro docs you should be able to get a good start.
User avatar
Supa
 
Posts: 164
Joined: Tue Oct 26, 2004 8:10 am

Postby IHateThisMap » Fri Mar 20, 2009 2:25 am

Thanks, got it. Man, gyro really kiss ass, I'm lovin' it. Thanks a tone for you help. I read the code you showed me and it was like when Neo became The One, the whole world look diffrent (the game world anyway).
IHateThisMap
 
Posts: 14
Joined: Wed Mar 18, 2009 2:34 am
Location: Quake, ID, B-Movies, Comic


Return to Tutorial Help

Who is online

Users browsing this forum: No registered users and 2 guests