gib
Function
Makes gibs and blood splats spew out from a model based entity. This command is meant to be used mainly with func_scriptmodel's but can, in principle, be used on any model based entity. See notes below.
Syntax
|
$<entity_name> gib <no_of_gibs> <velocity> <scale> <gib_type>
|
Notes & examples
|
Explanation of the command arguments:
<no_of_gibs>: number of gib models that will be thrown.
<velocity>: velocity of the thrown gibs (inversely proportional to scale).
<scale>: size of the thrown gibs (affects velocity: the smaller the gibs, the farther they fly out).
<gib_type>: type of thrown gibs. Possible types are: organic (heads, arms, legs, etc.) and feather.
When used on func_scriptmodel's, this command will make them throw gibs and disappear afterwards the same way as if the thing had died in a shower of gibs. When used on other model based entities such as actors or world objects, they will throw gibs but won't die, be damaged or removed.
If you need to make a living things gib AND die, the easiest way is to inflict them a massive amount of damage that largely exceeds their maximum default health with the hurt command. For example, to gib-kill a simple thug:
$thug1 hurt 1000
Since a regular thug has a maximum health value of about 60 - 80 points, inflicting 1000 points of damage will gib it.
If you want to make an non-damageable model based entity to appear to die in a shower of gibs, the best way is to create an illusion. For this, just follow the gib command with a remove command, for example:
$object gib 10 30 1 organic
$object remove
|
|