Searched refs:shield_pct (Results 1 – 3 of 3) sorted by relevance
1926 float shield_pct; in game_doHud() local2200 shield_pct = ( in game_doHud()2204 shield_pct = ( in game_doHud()2210 shield_pct = ((float)aliens[engine.targetIndex].shield in game_doHud()2223 if (i / nbars <= shield_pct) in game_doHud()
9267 float hull_pct, shield_pct; in change_ship_type() local9312 shield_pct = shield_get_strength(objp) / sp->ship_max_shield_strength; in change_ship_type()9314 shield_pct = shield_get_strength(objp) / Ship_info[sp->ship_info_index].max_shield_strength; in change_ship_type()9316 shield_pct = 0.0f; in change_ship_type()9320 Assert(shield_pct >= 0.0f && shield_pct <= 1.0f); in change_ship_type()9321 CLAMP(shield_pct, 0.0f, 1.0f); in change_ship_type()9323 shield_pct = hull_pct = 1.0f; in change_ship_type()9392 shield_set_strength(objp, shield_pct * sp->ship_max_shield_strength); in change_ship_type()
10244 float hull_pct, shield_pct; in change_ship_type() local10357 shield_pct = shield_get_strength(objp) / shield_get_max_strength(objp); in change_ship_type()10359 …shield_pct = shield_get_strength(objp) / (sip_orig->max_shield_strength * sip_orig->max_shield_rec… in change_ship_type()10361 shield_pct = 0.0f; in change_ship_type()10365 Assert(shield_pct >= 0.0f && shield_pct <= 1.0f); in change_ship_type()10366 CLAMP(shield_pct, 0.0f, 1.0f); in change_ship_type()10368 shield_pct = hull_pct = 1.0f; in change_ship_type()10523 shield_set_strength(objp, shield_pct * shield_get_max_strength(objp)); in change_ship_type()