mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-26 06:20:48 +00:00
Give gibs and debris 250 health points.
This prevents gibs and debris being easily destroyed with the rocket launcher but leaves enough room for the entities being destroyed by elevators, doors and the like if necessary.
This commit is contained in:
parent
ef55042cef
commit
bf6f2bd1e1
1 changed files with 2 additions and 1 deletions
|
@ -217,7 +217,7 @@ ThrowGib(edict_t *self, char *gibname, int damage, int type)
|
|||
gib->flags |= FL_NO_KNOCKBACK;
|
||||
gib->takedamage = DAMAGE_YES;
|
||||
gib->die = gib_die;
|
||||
gib->health = 500;
|
||||
gib->health = 250;
|
||||
|
||||
if (type == GIB_ORGANIC)
|
||||
{
|
||||
|
@ -399,6 +399,7 @@ ThrowDebris(edict_t *self, char *modelname, float speed, vec3_t origin)
|
|||
chunk->classname = "debris";
|
||||
chunk->takedamage = DAMAGE_YES;
|
||||
chunk->die = debris_die;
|
||||
chunk->health = 250;
|
||||
gi.linkentity(chunk);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue