Inside3D!
     

gibbing player bodies?

 
Post new topic   Reply to topic    Inside3d Forums Forum Index -> QuakeC Programming
View previous topic :: View next topic  
Author Message
MeTcHsteekle



Joined: 15 May 2008
Posts: 397
Location: its a secret

PostPosted: Thu Oct 02, 2008 9:18 pm    Post subject: gibbing player bodies? Reply with quote

i just tried to get this, but all it does it crash quake at first witht the move type step thing so i changed it to move type none

oh im basing this off of the gibbing dead bidies tutorial

i think its because of

void() player_die_ax9 = [ $axdeth9, player_die_ax9 ] {PlayerDead(); become_corpse ();};

it also dosent work, you cant gib them and messes up the " your dead look"

as in

instead of a red screen and the limeted looking its a normal screen and full looking [i thought i was in observer mode due to the way it looked, and i dident code it to go to observer after death]

any ideas, and also im afraid to touch the playerdead() thing because i like being able to respawn after death Surprised
_________________
bah
Back to top
View user's profile Send private message AIM Address
MeTcHsteekle



Joined: 15 May 2008
Posts: 397
Location: its a secret

PostPosted: Fri Oct 03, 2008 8:08 pm    Post subject: Reply with quote

ok so now i can get the body to gib If the player remains in it, it shows you have 30 health and souch but thats not that big a deal,

but when you leave the body it cant be gibbed, i heard that when you leave the body the game just makes a copy of the frame of i and puts it there..or somthing

i know it can be gibbed because the monsters attack it and when it dos gib it does this weird thing whee it takes all the commands away and shootis you to outside the map so you can lookin to it
_________________
bah
Back to top
View user's profile Send private message AIM Address
Wazat



Joined: 15 Oct 2004
Posts: 732
Location: Middle 'o the desert, USA

PostPosted: Fri Oct 03, 2008 8:19 pm    Post subject: Reply with quote

When you die, you remain the same entity as your corpse until you respawn. At this point the game replaces your body with one of the bodyqueue objects (i believe in world.qc). You'll need to make those gibbable too.

I know this because I made corpses gibbable in Ace of Nails, and it's really cool when it's working. It's a bit of work but a good learning experience. Have fun!
_________________
When my computer inevitably explodes and kills me, my cat inherits everything I own. He may be the only one capable of continuing my work.
Back to top
View user's profile Send private message MSN Messenger
MeTcHsteekle



Joined: 15 May 2008
Posts: 397
Location: its a secret

PostPosted: Fri Oct 03, 2008 11:26 pm    Post subject: Reply with quote

ok ill keep trying that, but i also just found that you cant respawn if your are killed by lava i think

Confused
_________________
bah
Back to top
View user's profile Send private message AIM Address
MeTcHsteekle



Joined: 15 May 2008
Posts: 397
Location: its a secret

PostPosted: Sun Oct 05, 2008 10:30 pm    Post subject: Reply with quote

ok im think im getting close but not quite there,

is this atleast the right idea?:

Code:
void() bodyque =
{   // just here so spawn functions don't complain after the world
   // creates bodyques
};

void() InitBodyQue =
{
   local entity   e;
   
   //become_corpse();
   bodyque_head = spawn();
   bodyque_head.classname = "monster_corpse";//"bodyque";
   bodyque_head.owner = spawn();
   bodyque_head.owner.classname = "monster_corpse";//"bodyque";
   bodyque_head.owner.owner = spawn();
   bodyque_head.owner.owner.classname = "monster_corpse"; //"bodyque";
   bodyque_head.owner.owner.owner = spawn();
   bodyque_head.owner.owner.owner.classname = "monster_corpse";//"bodyque";
   bodyque_head.owner.owner.owner.owner = bodyque_head;
};


// make a body que entry for the given ent so the ent can be
// respawned elsewhere
void(entity ent) CopyToBodyQue =
{
   bodyque_head.angles = ent.angles;
   bodyque_head.model = ent.model;
   bodyque_head.modelindex = ent.modelindex;
   bodyque_head.frame = ent.frame;
   bodyque_head.colormap = ent.colormap;
   bodyque_head.movetype = ent.movetype;
   bodyque_head.velocity = ent.velocity;
   bodyque_head.flags = 0;
   setorigin (bodyque_head, ent.origin);
   setsize (bodyque_head, ent.mins, ent.maxs);
   bodyque_head = bodyque_head.owner;
   become_corpse();
};


btw that Ace Of Nails looks cool, is it still in development or did you not update that site thing?
_________________
bah
Back to top
View user's profile Send private message AIM Address
r00k



Joined: 13 Nov 2004
Posts: 483

PostPosted: Sun Oct 05, 2008 10:50 pm    Post subject: Reply with quote

I made gibbable corpse once, but then I had the problem that,
a player would be blocked be the corpse. DP has some flag to allow them to be gib-able and non solid at the same time, iirc. It would depend on the mod u are making i suppose. For a game like CA or CTF i felt it was more detrimental to the gameplay than just a cool eyecandy behavior. Sad I might still, have the code somewhere but I doubt it. Maybe I'll tinker with it tomorrow Smile


ps: i've abandoned the entire bodyque thing long ago.
Currently when a player dies, i create a static entity, that melts into the floor (ala q3). So, im sure making that gib-able fairly easy...
Back to top
View user's profile Send private message
MeTcHsteekle



Joined: 15 May 2008
Posts: 397
Location: its a secret

PostPosted: Sun Oct 05, 2008 11:21 pm    Post subject: Reply with quote

hmm melting

i was thinking of adding frames and skins to look like you were rotting away at one point, but i wasent so sure how to work that eather

im trying to make it not dp dependant so everyone can play it so i have been using glpro and ultametly winquake pro, brcause if it works in thise then it will work in almost anything [accept quakeworld i think, but i dont play qw Razz Very Happy ]


Smile Surprised Very Happy
_________________
bah
Back to top
View user's profile Send private message AIM Address
Wazat



Joined: 15 Oct 2004
Posts: 732
Location: Middle 'o the desert, USA

PostPosted: Mon Oct 06, 2008 3:21 am    Post subject: Reply with quote

Yes, that bodyqueue code you posted is the right area.

Quote:
btw that Ace Of Nails looks cool, is it still in development or did you not update that site thing?

Well, I consider the mod as finished as I'm going to get it. Which site are you looking at? My old website disappeared a while ago (static.condemned.com), but I'll bet Cheapy's site or someone else has it. If not then I may be able to upload it somewhere. Its code might be helpful to ya, at the very least.
_________________
When my computer inevitably explodes and kills me, my cat inherits everything I own. He may be the only one capable of continuing my work.
Back to top
View user's profile Send private message MSN Messenger
MeTcHsteekle



Joined: 15 May 2008
Posts: 397
Location: its a secret

PostPosted: Mon Oct 06, 2008 3:50 am    Post subject: Reply with quote

it was mod database

http://www.moddb.com/mods/ace-of-nails/related/addons

i dont think i saw any downloads there for it
_________________
bah
Back to top
View user's profile Send private message AIM Address
Wazat



Joined: 15 Oct 2004
Posts: 732
Location: Middle 'o the desert, USA

PostPosted: Mon Oct 06, 2008 8:15 am    Post subject: Reply with quote

I had completely forgotten about moddb. I really need to update all that stuff with download links. Very Happy

For now, I've uploaded Ace of Nails and it's just awaiting moderator approval. I'll let you know when it's available for download.

I've been playing Ace of Nails lately and I have to say, I like it. I didn't remember it being as polished as this, and it's fun to play. AoN, Jeht, and Best of the Void are my 3 good DM mods that I'm proud of. I can't remember any others that I liked much.

And I'm also now remembering just how much time I put into those gibbable corpses in AoN to get them just perfect. You can walk through them even without the Darkplaces SOLID_CORPSE feature (works just as well in Cheaphack or Tomazquake). When you gib them, they tend to splatter away from the source of damage, so a quad damage rocket will send gibs flying off to the side (rather than quake's standard straight up no matter what). It's cool. Very Happy

Hurray for revisiting old work and actually feeling proud of it. ^_^
_________________
When my computer inevitably explodes and kills me, my cat inherits everything I own. He may be the only one capable of continuing my work.
Back to top
View user's profile Send private message MSN Messenger
Wazat



Joined: 15 Oct 2004
Posts: 732
Location: Middle 'o the desert, USA

PostPosted: Mon Oct 06, 2008 5:37 pm    Post subject: Reply with quote

Okay, the download is ready.

http://www.moddb.com/mods/ace-of-nails/downloads
_________________
When my computer inevitably explodes and kills me, my cat inherits everything I own. He may be the only one capable of continuing my work.
Back to top
View user's profile Send private message MSN Messenger
MeTcHsteekle



Joined: 15 May 2008
Posts: 397
Location: its a secret

PostPosted: Mon Oct 06, 2008 8:46 pm    Post subject: Reply with quote

cools Very Happy
_________________
bah
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    Inside3d Forums Forum Index -> QuakeC Programming All times are GMT
Page 1 of 1

 
Jump to:  
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