Home
last modified time | relevance | path

Searched refs:shield_pct (Results 1 – 3 of 3) sorted by relevance

/dports/games/starfighter/starfighter-2.4/src/
H A Dgame.c1926 float shield_pct; in game_doHud() local
2200 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()
/dports/games/diaspora/Diaspora_R1_Linux/Diaspora/fs2_open/code/ship/
H A Dship.cpp9267 float hull_pct, shield_pct; in change_ship_type() local
9312 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()
/dports/games/fs2open/fs2open.github.com-release_21_4_1/code/ship/
H A Dship.cpp10244 float hull_pct, shield_pct; in change_ship_type() local
10357 shield_pct = shield_get_strength(objp) / shield_get_max_strength(objp); in change_ship_type()
10359shield_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()