Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions sp/src/game/server/Human_Error/vehicle_drivable_apc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -709,10 +709,10 @@ int CPropDrivableAPC::OnTakeDamage( const CTakeDamageInfo &inputInfo )
float flNormalDamageModifier = sk_apc_damage_normal.GetFloat();

#ifdef EZ
// In Human Error, the view hide damage reduce percent modifier was half of the normal damage modifier divided by the maximum flViewLowered distance, 10
// 0.15 / 2 / 10 = 0.0075
// In Entropy : Zero, we want it to have half of the normal damage modifier divided by 10
float flViewHideDamageReduce = flNormalDamageModifier / 20.0f;
// In Human Error, the view hide damage reduce percent modifier was half of the normal damage modifier divided by flViewLowered which uses the range [-10, 0]
// 0.15 + (-10 * 0.0075) = 0.075 or half the original modifier
// In Entropy : Zero, to recreate that behavior we just multiply by -0.5
float flViewHideDamageReduce = flNormalDamageModifier * -0.5;
#else
float flViewHideDamageReduce = (float)(m_flViewLowered * 0.0075);
#endif
Expand Down