Browse Source

Set tripmine size like in Opposing Force (#19)

opforfixed
Roman Chistokhodov 7 years ago committed by Andrey Akhmichin
parent
commit
9b2bf66db5
  1. 8
      dlls/tripmine.cpp

8
dlls/tripmine.cpp

@ -105,7 +105,11 @@ void CTripmineGrenade::Spawn( void )
ResetSequenceInfo(); ResetSequenceInfo();
pev->framerate = 0; pev->framerate = 0;
UTIL_SetSize( pev, Vector( -8, -8, -8 ), Vector( 8, 8, 8 ) ); if (pev->angles.y >= 270.0 || pev->angles.y <= 90.0) {
UTIL_SetSize( pev, Vector( 0, 0, 0 ), Vector( 1, 1, 1 ) );
} else {
UTIL_SetSize( pev, Vector( -1, -1, 0 ), Vector( 0, 0, 1 ) );
}
UTIL_SetOrigin( pev, pev->origin ); UTIL_SetOrigin( pev, pev->origin );
if( pev->spawnflags & 1 ) if( pev->spawnflags & 1 )
@ -282,7 +286,7 @@ void CTripmineGrenade::BeamBreakThink( void )
m_hOwner = CBaseEntity::Instance( tr.pHit ); // reset owner too m_hOwner = CBaseEntity::Instance( tr.pHit ); // reset owner too
} }
if( fabs( m_flBeamLength - tr.flFraction ) > 0.001 ) if( tr.fStartSolid || fabs( m_flBeamLength - tr.flFraction ) > 0.001 )
{ {
bBlowup = 1; bBlowup = 1;
} }

Loading…
Cancel
Save