Skip to content

Commit

Permalink
Merge pull request #262 from fortressforever/features/reduce-ragdoll-…
Browse files Browse the repository at this point in the history
…lifetime

Reduce ragdoll lifetime from 15 to 5 sec
  • Loading branch information
AfterShockFF committed Jun 4, 2016
2 parents bae1e78 + 66bc88c commit c125600
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dlls/ff/ff_player.cpp
Expand Up @@ -2186,7 +2186,7 @@ void CFFPlayer::CreateRagdollEntity(const CTakeDamageInfo *info)
pRagdoll->SetEffectEntity( pRagdollFlame );

//set the same lifetime the same as the ragdoll itself!
pRagdollFlame->SetLifetime( 15.0f );
pRagdollFlame->SetLifetime( 5.0f );
}

// not everything that gets here has an info
Expand All @@ -2202,7 +2202,7 @@ void CFFPlayer::CreateRagdollEntity(const CTakeDamageInfo *info)
}

// remove the ragdoll after a time
pRagdoll->SetNextThink( gpGlobals->curtime + 15.0f );
pRagdoll->SetNextThink( gpGlobals->curtime + 5.0f );
pRagdoll->SetThink( &CBaseEntity::SUB_Remove );

// ragdolls will be removed on round restart automatically
Expand Down

0 comments on commit c125600

Please sign in to comment.