healthSystemFlags: type: world events: on player join: - if : - flag feeling:100 - if : - flag sanity:100 - if : - flag blood:100 - if : - flag physicalDamage:0 - if : - flag internalDamage:0 - if : - flag temperature:40 - definemap bloodMOVEMENTSPEED: GENERIC_MOVEMENT_SPEED: 1: operation: ADD_SCALAR amount: ]>].div[200]> id: 91100000-1000-1000-1000-100000000000 - adjust add_attribute_modifiers:<[bloodMOVEMENTSPEED]> healthSystemTick: type: world events: on delta time secondly: - foreach as:__player: # Bloodloss - if < 100: - if : - if ].mul[1.5]>]>: - flag blood:+:1 - else: - if ].mul[1.0]>]>: - flag blood:+:1 - if : - choose : - case minor: - if : - playeffect effect:item_crack special_data:red_wool at: offset:0.1,0.33,0.1 quantity:2 velocity:1 data:0.025 - flag blood:-:1 - if : - flag bleeding:! - case mild: - if : - playeffect effect:item_crack special_data:red_wool at: offset:0.1,0.33,0.1 quantity:4 velocity:1 data:0.05 - flag blood:-:1 - if : - flag bleeding:! - case severe: - if : - playeffect effect:item_crack special_data:red_wool at: offset:0.1,0.33,0.1 quantity:8 velocity:1 data:0.05 - flag blood:-:1 - if : - flag bleeding:! - case lethal: - playeffect effect:item_crack special_data:red_wool at: offset:0.1,0.33,0.1 quantity:16 velocity:1 data:0.075 - flag blood:-: - if : - flag bleeding:! - if < 0: - flag blood:0 # Bloodloss Damage - define blooddamage 0 - if <= 59 && >= 50: - if : - define blooddamage:+:0.05 - if <= 49 && >= 40: - if : - define blooddamage:+:0.05 - if <= 39 && >= 30: - if : - define blooddamage:+:0.05 - if <= 29 && >= 20: - if : - define blooddamage:+:0.05 - if <= 19 && >= 10: - if : - define blooddamage:+:0.05 - if <= 19 && >= 10: - define blooddamage:+:0.05 - if <= 9 && >= 5: - define blooddamage:+:0.1 - if <= 4 && >= 1: - define blooddamage:+:0.2 - if <= 0: - define blooddamage:+:0.4 - hurt ]> cause:CUSTOM # Bloodloss Speed - definemap bloodMOVEMENTSPEED: GENERIC_MOVEMENT_SPEED: 1: operation: ADD_SCALAR amount: ]>].div[200]> id: 91100000-1000-1000-1000-100000000000 - adjust attribute_modifiers:<[bloodMOVEMENTSPEED]>