Issectopod = true if the enemy you are attacking is a Sectopod. On to all pistol shots, so if you have it and are using a pistol for the The game tells you what pcrit is at the bottom of the screen. Pcrit = the probability of scoring a critical hit on the targeted enemy. Phit = the probability to hit the targeted enemy the game tells you thisĪt the bottom of the screen when targeting enemies. (See the xcom_weapon_data.m file if you aren't sure how to enter a The program accepts all primary weapons, including MEC weapons explosives All weapon names are the same as written in the game, with aĬapital letter beginning each distinct word, and no spaces. Weapon = a string, specifying the weapon your soldier currently hasĮquipped. Irrelevant, except for the Sectopod and the Ethereal. Kill_prob = xcom_kill_probability(enemycurrenthp,weapon,phit,pcrit,haveip3,issectopod)Ī handy calculator for use with the video game XCOM: Enemy Within.Ĭalculates the probability of killing a given enemy based upon the enemy'sĬurrent health, your soldier's current weapon, hit and critical probabilites, and otherĮnemycurrenthp = the enemy's current health.