Author Topic: Amputation and regeneration.  (Read 437 times)

I was just thinking of a cool thing to add to blockland. A mod that makes to so when you lose a certain amount of health you will lose limbs. Well... either that or, if possible, make it so if you get shot in the same limb enough it disappears into a small bloody explosion. Like if you get shot/hit 3 times in the right arm your arm and hand will disappear. But if you get hit in the hand only your hand will disappear. And if you get hit in the body too many time your body, head, arms, and hands will disappear and you will be killed even if you have health left over. And along with this mod there should be events that are for player.

Player>setRegen [check mark area]
Player>Amputate [body part name]
Player>Regen [body part name]

setRegen will make it so after 20 seconds, if your alive, you will regenerate all your lost limbs. Amputate will amputate the body part and all "attached". As in... if you amputate someones are onActivate, they will lose that arm and the hand. And Regen will regenerate the body part. But it has limits. Like if you lost an arm w/hand, you will only get the arm back, even if it says to regen the hand. If you have no arm and you try to regen your hand it will switch to regen the arm instead.
If this is possible I think a group of great scripters should get together and make it, soon.

-Edit-
Oh, and if you lose one foot, you will walk slower. And if you lose both legs/your "pants" you will stop and wont be able to move.

Onactivate > Player > Hidenode > [body part]
Onactivate > Player > Shownode > [body part]
Simple stuff, my friend.

Well, that'll work for visual things, anyway.
The rest is a good idea.

Yeah, but I wanted it to be a mod so it will only hide your body parts when they get shot or hit. Besides, how could I make it so it amputates the player when they are attacked with events anyway? I can't find any onPlayerAttacked events.

Yeah, but I wanted it to be a mod so it will only hide your body parts when they get shot or hit. Besides, how could I make it so it amputates the player when they are attacked with events anyway? I can't find any onPlayerAttacked events.
I can do it using variable replacers and variable loops but do not intend to do it now as I have an essay to write up.

I'll be back with it tomorrow.

I can do it using variable replacers and variable loops but do not intend to do it now as I have an essay to write up.

I'll be back with it tomorrow.
Back with it yet?