SkreamerVirii
Administrator
Full Member
![*](Themes/fire/images/staradmin.gif) ![*](Themes/fire/images/staradmin.gif) ![*](Themes/fire/images/staradmin.gif) ![*](Themes/fire/images/staradmin.gif) ![*](Themes/fire/images/staradmin.gif)
Posts: 133
|
![](Themes/fire/images/post/xx.gif) |
« on: September 03, 2008, 11:17:59 PM » |
|
In this Tutorial i will show you how to make a dead body stay around for the entire round time
So let us begin we wil be working in the g_client.c and so scroll down till you find /* ============= BodySink After sitting around for five seconds, fall into the ground and dissapear ============= */ void BodySink( gentity_t *ent ) { if ( level.time - ent->timestamp > 6500 ) { // the body ques are never actually freed, they are just unlinked trap_UnlinkEntity( ent ); ent->physicsObject = qfalse; return; } ent->nextthink = level.time + 1000; ent->s.pos.trBase[2] -= 1; } Change this
ent->nextthink = level.time + 1000; ent->s.pos.trBase[2] -= 1; } to this ent->nextthink = level.time + 1000000; ent->s.pos.trBase[2] -= 1; }
1000000 is infinite compile and go play now go kkill yourself but dont gib your self and then when you spawn back you will see your dead body
Enjoy!!!
|