| | |
| | | need to be considered. |
| | | --]] |
| | | local abdomen_offset = 1 |
| | | local cache_scaled_shielding = {} |
| | | local rad_dmg_cutoff = 0.2 |
| | | local radiated_players = {} |
| | | |
| | |
| | | end |
| | | if ag.radiation then |
| | | return 0.01 * ag.radiation |
| | | elseif armor_enabled then |
| | | return 0 |
| | | end |
| | | if ag.fleshy then |
| | | return math.sqrt(0.01 * ag.fleshy) |
| | |
| | | end |
| | | |
| | | local function dmg_object(pos, object, strength) |
| | | local obj_pos = vector.add(object:getpos(), calculate_object_center(object)) |
| | | local obj_pos = vector.add(object:get_pos(), calculate_object_center(object)) |
| | | local mul |
| | | if armor_enabled or entity_damage then |
| | | -- we need to check may the object be damaged even if armor is disabled |
| | |
| | | end, |
| | | }) |
| | | end |
| | | |