Fix hot bolt issue

► Fixed an issue where the velocity would be transferred to the player standing on a bolt that landed.
This commit is contained in:
speedvoltage 2025-03-12 12:24:33 +01:00
parent a62efecf62
commit f15b0826ae

View file

@ -303,7 +303,7 @@ void CCrossbowBolt::BoltTouch( CBaseEntity *pOther )
else
{
SetThink( &CCrossbowBolt::SUB_Remove );
SetNextThink( gpGlobals->curtime + 2.0f );
SetNextThink( gpGlobals->curtime );
//FIXME: We actually want to stick (with hierarchy) to what we've hit
SetMoveType( MOVETYPE_NONE );
@ -326,7 +326,7 @@ void CCrossbowBolt::BoltTouch( CBaseEntity *pOther )
AddEffects( EF_NODRAW );
SetTouch( NULL );
SetThink( &CCrossbowBolt::SUB_Remove );
SetNextThink( gpGlobals->curtime + 2.0f );
SetNextThink( gpGlobals->curtime );
if ( m_pGlowSprite != NULL )
{