Forum

Problem with segmented monster in Darkplaces

Discuss programming in the QuakeC language.

Moderator: InsideQC Admins

Problem with segmented monster in Darkplaces

Postby Nahuel » Wed Jan 02, 2013 2:23 am

Hello Forum, i am creating a segmented monster in darkplaces using 2 md3 models (model A and model B) and gettaginfo stuff to the origin of the B model (torso) (not settatachment stuff). So i have the setmodel monster function with the A model ( legs.md3). I i get to use diferent animation for the 2 models, and i get the monster is attacking the enemy and runing simultaneously etc. But i have a problem: how can i add damage to the monster when their dependent entity (torso) is damaged? I mean when I shoot to the torso this is damaged but the monster does not notice anything. The torso (model B) is a separated entity but his "owner" is the monster (the legs, model A). I wanna to add equilibrated damage, attacker (enemy) and other relative stuff, but i can not to use the old "hit location system" because i am using weapons with tracelines and "MOVE_HITMODEL" for the tracelines. Models instead BBOXES
Code: Select all
traceline (src, src + direction*2048, MOVE_HITMODEL, self);
. thanks in advance.
hi, I am nahuel, I love quake and qc.
User avatar
Nahuel
 
Posts: 492
Joined: Wed Jan 12, 2011 8:42 pm
Location: mar del plata

Re: Problem with segmented monster in Darkplaces

Postby Seven » Wed Jan 02, 2013 10:54 am

Dear friend,

Using a monster with 2 pieces, brings Hipnotic into my mind: Armagon
Please read the source hiparma.qc (especially function: monster_armagon)
This might help you.

I think you should try this to better "link" them together:
self.trigger_field = body;
body.trigger_field = self;
or
self.trigger_field = newmis = spawn();

Maybe this helps you a little bit.

I hope you have a healthy and lucky new year 2013, Nahuel !
Seven
Seven
 
Posts: 301
Joined: Sat Oct 06, 2007 8:49 pm
Location: Germany


Return to QuakeC Programming

Who is online

Users browsing this forum: No registered users and 1 guest