View previous topic :: View next topic |
Author |
Message |
IHateThisMap
Joined: 18 Mar 2009 Posts: 14 Location: Quake, ID, B-Movies, Comic
|
Posted: Wed Mar 18, 2009 2:26 pm Post subject: Random monsters and gyro. |
|
|
I'm getting a error when i compile the random monster tutorial:
Code: | error: Q505: ranzombie.qc:19:Unknown value "demon1_stand1"[ |
Code: | // 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 |
|
Back to top |
|
 |
Supa

Joined: 26 Oct 2004 Posts: 122
|
Posted: Wed Mar 18, 2009 7:51 pm Post subject: |
|
|
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. |
|
Back to top |
|
 |
IHateThisMap
Joined: 18 Mar 2009 Posts: 14 Location: Quake, ID, B-Movies, Comic
|
Posted: Fri Mar 20, 2009 2:25 am Post subject: |
|
|
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). |
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2004 phpBB Group
|