mirror of
https://github.com/ReactionQuake3/reaction.git
synced 2024-11-11 15:52:30 +00:00
some func_breakable fixes. Explosives respawn on new rounds now .
This commit is contained in:
parent
883b49dff6
commit
863a0e564c
2 changed files with 13 additions and 6 deletions
|
@ -5,6 +5,9 @@
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
//
|
//
|
||||||
// $Log$
|
// $Log$
|
||||||
|
// Revision 1.43 2002/05/23 04:53:41 blaze
|
||||||
|
// some func_breakable fixes. Explosives respawn on new rounds now .
|
||||||
|
//
|
||||||
// Revision 1.42 2002/05/21 14:19:26 makro
|
// Revision 1.42 2002/05/21 14:19:26 makro
|
||||||
// Printf's for misc_portal_surface setup errors
|
// Printf's for misc_portal_surface setup errors
|
||||||
//
|
//
|
||||||
|
@ -507,10 +510,8 @@ void func_breakable_explode( gentity_t *self , vec3_t pos ) {
|
||||||
|
|
||||||
tent = G_TempEntity2( pos, EV_EXPLODE_BREAKABLE, eParam);
|
tent = G_TempEntity2( pos, EV_EXPLODE_BREAKABLE, eParam);
|
||||||
|
|
||||||
self->takedamage = qfalse;
|
// self->takedamage = qfalse;
|
||||||
self->s.eType = ET_INVISIBLE;
|
// self->s.eType = ET_INVISIBLE;
|
||||||
self->r.contents = 0;
|
|
||||||
self->s.solid = 0;
|
|
||||||
self->exploded = qtrue;
|
self->exploded = qtrue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -519,7 +520,7 @@ void func_breakable_explode( gentity_t *self , vec3_t pos ) {
|
||||||
void func_breakable_die( gentity_t *self, gentity_t *inflictor, gentity_t *attacker, int damage, int meansOfDeath )
|
void func_breakable_die( gentity_t *self, gentity_t *inflictor, gentity_t *attacker, int damage, int meansOfDeath )
|
||||||
{
|
{
|
||||||
func_breakable_explode( self , self->s.origin );
|
func_breakable_explode( self , self->s.origin );
|
||||||
G_ExplodeMissile(self);
|
// G_ExplodeMissile(self);
|
||||||
G_RadiusDamage(self->s.origin,attacker,self->damage,self->damage_radius,self, meansOfDeath);
|
G_RadiusDamage(self->s.origin,attacker,self->damage,self->damage_radius,self, meansOfDeath);
|
||||||
// radius damage
|
// radius damage
|
||||||
|
|
||||||
|
|
|
@ -5,6 +5,9 @@
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
//
|
//
|
||||||
// $Log$
|
// $Log$
|
||||||
|
// Revision 1.97 2002/05/23 04:53:41 blaze
|
||||||
|
// some func_breakable fixes. Explosives respawn on new rounds now .
|
||||||
|
//
|
||||||
// Revision 1.96 2002/05/23 03:07:10 blaze
|
// Revision 1.96 2002/05/23 03:07:10 blaze
|
||||||
// Some changes to autoaction, still need to fix up a little bit more stuff relating to getting sent 2 screenshot requests
|
// Some changes to autoaction, still need to fix up a little bit more stuff relating to getting sent 2 screenshot requests
|
||||||
//
|
//
|
||||||
|
@ -845,7 +848,10 @@ void SpawnPlayers()
|
||||||
if (ent != NULL && ent->classname != NULL && !strcmp(ent->classname, "func_breakable")) {
|
if (ent != NULL && ent->classname != NULL && !strcmp(ent->classname, "func_breakable")) {
|
||||||
//re-link all unlinked breakables
|
//re-link all unlinked breakables
|
||||||
trap_LinkEntity(ent);
|
trap_LinkEntity(ent);
|
||||||
}
|
ent->exploded = qfalse;
|
||||||
|
ent->takedamage = qtrue;
|
||||||
|
ent->s.eType = ET_BREAKABLE;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue