Dismemberment Update, Fire Axe Fixes, Gun Sounds

This commit is contained in:
SamCroswell
2014-11-23 00:52:32 -05:00
parent c0e7c120f3
commit ceabc46f1b
5 changed files with 20 additions and 7 deletions
+8 -1
View File
@@ -158,12 +158,13 @@
src.update_damages()
//If limb took enough damage, try to cut or tear it off
/*
if(body_part != UPPER_TORSO && body_part != LOWER_TORSO) //as hilarious as it is, getting hit on the chest too much shouldn't effectively gib you.
if(config.limbs_can_break && brute_dam >= max_damage * config.organ_health_multiplier)
if( (edge && prob(5 * brute)) || (brute > 20 && prob(2 * brute)) )
droplimb(1)
return
*/
owner.updatehealth()
var/result = update_icon()
@@ -290,6 +291,12 @@ This function completely restores a damaged organ to perfect condition.
return 1
return 0
/datum/organ/external/proc/dismember_limb()
if(body_part != UPPER_TORSO && body_part != LOWER_TORSO) //as hilarious as it is, getting hit on the chest too much shouldn't effectively gib you.
if(config.limbs_can_break)
droplimb(1)
return
/datum/organ/external/process()
//Dismemberment
if(status & ORGAN_DESTROYED)