
Posted by X-Arch on January 08, 1999 at 05:28:32:
===============
Name: X-Arch
Tutorial: Adding more gibs to peoples death's
Difficulty: Doesnt come any easier
==============
okies just a small one tht i was mucken around with and i though i would add
some extra gibs too go along with my akimbo weapons...well this made the small
little mod i made to play at lans EXTREMELY cool and fun...small,simple,prolly
everyone knows how to do it but its fun and i thought i might as well post
it...here we go!
open up p_client.c and then
go down to void player_die....
now go down a little more inside this function and you should see this:
if (self->health < -40)
{ // gib
gi.sound (self, CHAN_BODY, gi.soundindex ("misc/udeath.wav"), 1,
ATTN_NORM, 0);
for (n= 0; n < 4; n++)
ThrowGib (self, "models/objects/gibs/sm_meat/tris.md2", damage,
GIB_ORGANIC);
ThrowClientHead (self, damage);
okies now simply change
that to this:
if (self->health < -1)
{ // gib
gi.sound (self, CHAN_BODY, gi.soundindex ("misc/udeath.wav"), 1,
ATTN_NORM, 0);
for (n= 0; n < 4; n++)
ThrowGib (self, "models/objects/gibs/sm_meat/tris.md2", damage,
GIB_ORGANIC);
ThrowClientHead (self, damage);
//then add this extra code here for the different types of gibs:
//1 chest
ThrowGib (self, "models/objects/gibs/chest/tris.md2", damage,
GIB_ORGANIC);
// few arms
ThrowGib (self, "models/objects/gibs/arm/tris.md2", damage,
GIB_ORGANIC);
ThrowGib (self, "models/objects/gibs/arm/tris.md2", damage,
GIB_ORGANIC);
ThrowGib (self, "models/objects/gibs/arm/tris.md2", damage,
GIB_ORGANIC);
ThrowGib (self, "models/objects/gibs/arm/tris.md2", damage,
GIB_ORGANIC);
//few legs
ThrowGib (self, "models/objects/gibs/leg/tris.md2", damage,
GIB_ORGANIC);
ThrowGib (self, "models/objects/gibs/leg/tris.md2", damage,
GIB_ORGANIC);
ThrowGib (self, "models/objects/gibs/leg/tris.md2", damage,
GIB_ORGANIC);
ThrowGib (self, "models/objects/gibs/leg/tris.md2", damage,
GIB_ORGANIC);
//and that should just about do it...
//END OF TUTORIAL
ok
well that is WAY WAY WAY over the top as in the ammount of gibs you should do
and would probably cause more lag or something but it looks REAL kool compared
to the little gibs you normally get....change this as u wish to add more(hehe)
or less....VEYR simple but very fun...enjoy!