Home
last modified time | relevance | path

Searched refs:hitchance (Results 1 – 13 of 13) sorted by relevance

/dports/games/wolfpack/empire-4.4.1/src/lib/commands/
H A Dbomb.c353 int hitchance; in ship_bomb() local
417 hitchance = 100; in ship_bomb()
421 pr("%d%% hit chance...", hitchance); in ship_bomb()
423 if (pct_chance(hitchance)) { in ship_bomb()
472 int hitchance; in plane_bomb() local
516 hitchance = 100; in plane_bomb()
519 pr("%d%% hit chance...", hitchance); in plane_bomb()
521 if (pct_chance(hitchance)) { in plane_bomb()
560 int aaf, flak, hitchance; in land_bomb() local
616 hitchance = 100; in land_bomb()
[all …]
H A Dtorp.c58 double hitchance; in c_torpedo() local
162 hitchance = shp_torp_hitchance(&sub, range); in c_torpedo()
164 pr("Hit chance = %.0f%%\n", hitchance * 100); in c_torpedo()
176 } else if (chance(hitchance)) { in c_torpedo()
/dports/games/ecwolf/ecwolf-1.3.3-src/src/
H A Dwl_act2.cpp677 int hitchance; in ACTION_FUNCTION() local
695 hitchance = 160-dist*16; // players[0].mo can see to dodge in ACTION_FUNCTION()
697 hitchance = 160-dist*8; in ACTION_FUNCTION()
702 hitchance = 256-dist*16; // players[0].mo can see to dodge in ACTION_FUNCTION()
704 hitchance = 256-dist*8; in ACTION_FUNCTION()
709 if (pr_cabullet()<hitchance) in ACTION_FUNCTION()
/dports/games/wolfpack/empire-4.4.1/src/lib/subs/
H A Dmslsub.c158 int hitchance, hit; in msl_hit() local
164 hitchance = pln_hitchance(pp, hardtarget, type); in msl_hit()
165 hit = pct_chance(hitchance); in msl_hit()
166 mpr(pp->pln_own, "\t%d%% hit chance...%s\n", hitchance, in msl_hit()
H A Dmission.c448 double vrange, hitchance; in perform_mission_ship() local
482 hitchance = shp_torp_hitchance(sp, md); in perform_mission_ship()
490 "\tWhooosh... Hit chance = %.0f%%\n", hitchance * 100); in perform_mission_ship()
492 if (!chance(hitchance)) { in perform_mission_ship()
1026 int hitchance; in air_damage() local
1062 hitchance = 100; in air_damage()
1064 hitchance = pln_hitchance(pp, hardtarget, EF_SHIP); in air_damage()
1067 hitchance); in air_damage()
1069 if (pct_chance(hitchance)) { in air_damage()
H A Dplnsub.c993 int hitchance; in pln_hitchance() local
1001 hitchance = (int)(pp->pln_effic * (1.0 - 0.1 * tfact) * in pln_hitchance()
1005 if (hitchance < 20) in pln_hitchance()
1006 hitchance = 5 + ldround(300.0 / (40.0 - hitchance), 1); in pln_hitchance()
1007 if (hitchance > 100) in pln_hitchance()
1008 hitchance = 100; in pln_hitchance()
1009 return hitchance; in pln_hitchance()
H A Dshpsub.c917 int hitchance, hit; in shp_missile_defense() local
949 hitchance = (int)(gun * eff * teff * 4.5) - hardtarget; in shp_missile_defense()
950 hitchance = LIMIT_TO(hitchance, 0, 100); in shp_missile_defense()
951 hit = pct_chance(hitchance); in shp_missile_defense()
959 mpr(ship.shp_own, "%d%% hit chance...%s\n", hitchance, in shp_missile_defense()
/dports/games/ufoai/ufoai-2.5-source/src/client/battlescape/
H A Dcl_battlescape.cpp228 …const float hitchance = (stdevupdown > LOOKUP_EPSILON ? CL_LookupErrorFunction(height * 0.3536f / … in CL_GetHitProbability() local
282 return 100 * (hitchance * (0.125) * n); in CL_GetHitProbability()
/dports/games/bstone/bstone-1.1.9/src/
H A D3d_act2.cpp4430 int16_t hitchance, damage; in T_Shoot() local
4508 hitchance = 128; in T_Shoot()
4532 hitchance = 160 - dist * 16; // player can see to dodge in T_Shoot()
4534 hitchance = 160 - dist * 8; in T_Shoot()
4540 hitchance = 256 - dist * 8; in T_Shoot()
4546 if (US_RndT() < hitchance) { in T_Shoot()
4617 int16_t hitchance, damage; in T_Hit() local
4624 hitchance = 220; // Higher - Better Chance (255 max!) in T_Hit()
4631 hitchance = 220; // Higher - Better Chance (255 max!) in T_Hit()
4637 hitchance = 200; // Higher - Better Chance (255 max!) in T_Hit()
[all …]
/dports/games/wolfpack/empire-4.4.1/doc/
H A DCHANGES2.3163 - increased sea mine hitchance from mines/(mines+50) to mines/(mines+40)
206 asw hitchance calculation.
250 identchance = (1 - (1 - hitchance)^2).
/dports/games/openmw/openmw-openmw-0.47.0/apps/openmw/mwclass/
H A Dcreature.cpp264 float hitchance = MWMechanics::getHitChance(ptr, victim, ref->mBase->mData.mCombat); in hit() local
266 if(Misc::Rng::roll0to99() >= hitchance) in hit()
H A Dnpc.cpp580 float hitchance = MWMechanics::getHitChance(ptr, victim, getSkill(ptr, weapskill)); in hit() local
582 if (Misc::Rng::roll0to99() >= hitchance) in hit()
/dports/games/zdoom/zdoom-2.8.1/src/thingdef/
H A Dthingdef_codeptr.cpp4709 int hitchance = speed < runspeed ? 256 : 160; in DEFINE_ACTION_FUNCTION_PARAMS() local
4712 hitchance -= dist * (dodge ? 16 : 8); in DEFINE_ACTION_FUNCTION_PARAMS()
4717 hitchance >>= 2; in DEFINE_ACTION_FUNCTION_PARAMS()
4721 if (pr_cabullet() < hitchance) in DEFINE_ACTION_FUNCTION_PARAMS()