打npc的伤害得先看枪械本身伤害然后乘上子弹增伤系数,然后再乘上中弹者的固定减伤系数和护甲减伤系数,最后乘上命中肢体部位的伤害系数
玩家被打的伤害是敌人枪械本身伤害然后乘上子弹增伤系数,然后乘上玩家本身的难度减伤(就是某某难度下不穿甲的固有减伤)乘上装甲减伤,最后乘上被命中的肢体部位的伤害系数
1.子弹真实伤害公式:
bullet_hit = hit_power(wpn_xxx.ltx) x k_hit(weapons_ammo.ltx)
2.NPC最终伤害公式:
NPC_damage = bullet_hit x hit_fraction_npc (damage.ltx) x stalker_resistance (Immunities.ltx) x stalker_damage (m_stalker.ltx) ; stalker_damage可以控制射击不同区域NPC受到的伤害和流血程度
3.玩家最终伤害公式:
Actor_damage = bullet_hit x firewound_immunities(actor.ltx) x (1 - bone_protection_koeff(outfits.ltx)) x hit_fraction_actor(outfits.ltx) x actor_damage(actor.ltx) ; actor_damage可以控制射击不同区域玩家收到的伤害和流血程度。
4.怪物伤害公式:
monstr_damage = bullet_hit x firewound_immunities(m_xxx.ltx) x (1 - skin_armor(m_xxx.ltx)) x hit_fraction_monster(m_xxx.ltx) x monster_damage(m_xxx.ltx)