Forum

Coffee's tutor bot...feet in ground

Discuss programming in the QuakeC language.

Moderator: InsideQC Admins

Coffee's tutor bot...feet in ground

Postby DieparBaby » Sun Dec 10, 2006 3:15 am

I copied the code Coffee (AI Cafe) wrote for spawning a monster bot.
http://minion.planetquake.gamespy.com/tutorial/tutor9.htm

It works great except for the fact that the feet of the monster
are always in the ground, even when I spawn them in the air.
Any idea why this is happening?

Thanks,
DieparBaby
User avatar
DieparBaby
 
Posts: 44
Joined: Tue Dec 05, 2006 3:27 pm
Location: London, Ontario, Canada, eh

Postby Lardarse » Mon Dec 11, 2006 6:02 am

Could be an issue with the model...
User avatar
Lardarse
 
Posts: 266
Joined: Sat Nov 05, 2005 1:58 pm
Location: Bristol, UK

Postby FrikaC » Mon Dec 11, 2006 10:27 am

There's a mistake in the tutorial. You should always call setsize() after setmodel(), otherwise you get funky bounding boxes.
FrikaC
Site Admin
 
Posts: 1026
Joined: Fri Oct 08, 2004 11:19 pm

Postby DieparBaby » Mon Dec 11, 2006 1:13 pm

Thank you FrikaC. I also changed the "bot.origin = ..." to "setorigin(bot, ...)"

P.S. Can I spawn() your children? ;)
User avatar
DieparBaby
 
Posts: 44
Joined: Tue Dec 05, 2006 3:27 pm
Location: London, Ontario, Canada, eh

Postby Lardarse » Wed Dec 13, 2006 4:16 am

Very clever. I don't think I've seen it asked that way before...
User avatar
Lardarse
 
Posts: 266
Joined: Sat Nov 05, 2005 1:58 pm
Location: Bristol, UK


Return to QuakeC Programming

Who is online

Users browsing this forum: No registered users and 1 guest