Navigation

 Instagib Weapons Feature Type: Coding Tutorials     Added: 05/01  
  Author: Corven 

Setting a weapon to instant gib damange is very easy to do. This tutorials only deals with how to set the weapon to instagib.

Gib Explosions

Code to be Added or Changed

g_weapon.c & g_missile.c

As we know each weapon does a differing amount of damage, and if you reduce a players health to -40 they will explodes in a shower of gibs.

Single Weapons: So all we have to do is change the amount of damage done (see the weapon damage tutorial) by the weapon to something like 1000 then its always going to gib the opponent.

bg_public.h

All Weapons: However, if you want every weapon to be instant gib then the easier way is to just change the gib value from if health -40 to something like if health -5, resulting in a far greater change of gibbing. You'll find that value at the very top of bg_public.h in the list of defines:
#define GIB_HEALTH -40

Change it to #define GIB_HEALTH -5

Comments »



  Page 1

  Comments ( 0 )


  Features Index

  Home

Copyright 2001 MGON International AB - Privacy statement