Should have fixed the unkickable thing breaking explosive breakables.

This commit is contained in:
Scott Brooks 2002-08-23 23:07:01 +00:00
parent 59f1e6ee62
commit 69c79ba832
2 changed files with 7 additions and 5 deletions

View file

@ -5,6 +5,9 @@
//-----------------------------------------------------------------------------
//
// $Log$
// Revision 1.120 2002/08/23 23:07:01 blaze
// Should have fixed the unkickable thing breaking explosive breakables.
//
// Revision 1.119 2002/08/22 05:00:01 blaze
// Allow func_buttons to be unkickable too (set spawnflags to 8)
//
@ -1815,10 +1818,6 @@ void G_Damage(gentity_t * targ, gentity_t * inflictor, gentity_t * attacker,
if (!targ->takedamage) {
return;
}
if ( (targ->s.eType == ET_BREAKABLE || targ->s.eType == ET_MOVER) && targ->unkickable == qtrue){
return;
}
if (g_gametype.integer == GT_TEAMPLAY && level.lights_camera_action) {
return; // JBravo: No dmg during LCA

View file

@ -5,6 +5,9 @@
//-----------------------------------------------------------------------------
//
// $Log$
// Revision 1.78 2002/08/23 23:07:01 blaze
// Should have fixed the unkickable thing breaking explosive breakables.
//
// Revision 1.77 2002/07/22 07:27:02 niceass
// better fog laser support
//
@ -245,7 +248,7 @@ qboolean JumpKick(gentity_t * ent)
//Makro - this was a few lines below
damage = 20;
if (traceEnt->s.eType == ET_BREAKABLE && (traceEnt->spawnflags & 8) == 8) {
if ((traceEnt->s.eType == ET_BREAKABLE || traceEnt->s.eType == ET_MOVER) && traceEnt->unkickable == qtrue ) {
return qfalse;
}