Skip to content

Commit

Permalink
Update damage.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
twist84 committed Dec 8, 2024
1 parent a619934 commit c100912
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions game/source/objects/damage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,6 @@ real __cdecl compute_total_damage(s_damage_data* damage_data, void* damage_effec
{
real result = INVOKE(0x00B4FB10, compute_total_damage, damage_data, damage_effect_definition, damage_definition, object_index, a5);

if (cheat.deathless_player && TEST_BIT(_object_mask_biped, object_get_type(object_index)))
{
if (object_index == player_mapping_get_unit_by_output_user(0))
result = 0.0f;
}

if (cheat.jetpack && TEST_BIT(_object_mask_biped, object_get_type(object_index)))
{
if (damage_data->damage_reporting_info.type == _damage_reporting_type_generic_collision_damage)
Expand Down

0 comments on commit c100912

Please sign in to comment.