AMPUTATE utilises the http://geck.gamesas.com/index.php/KillActor function in order to destroy limbs. This function can be used on any actor, although its effects can differ depending on the actor's associated body part data.
Basically, every creature has an associated body part data form which dictates things like how much damage should be dealt for a hit to each limb, what effects crippling a limb should have, and whether or not a limb can be severed or made to explode. Each body part is sorted into a group depending on which actor value it is associated with.
Here's a list of them, as along with what they're usually associated with
- BrainCondition - combat inhibitor etc.
- PerceptionCondition - head
- EnduranceCondition - torso
- LeftAttackCondition - left arm
- RightAttackCondition - right arm
- LeftMobilityCondition - left leg(s)
- RightMobilityCondition - right leg(s)
The condition of a limb is determined by the value of its associated actor value (which varies from full at 100 to crippled at 0), so two body parts with the same actor value (like a brahmin's heads) will share the same condition, and will be dismembered together.
When http://geck.gamesas.com/index.php/KillActor is called on an actor, an optional parameter can be used to dismember a limb. This limb is specified by a number which represents a type of limb, rather than an actor value, but will result in all limbs associated with the same actor value as the specified limb being dismembered. The values that represent each body part are listed in the
GECK Wiki's documentation of http://geck.gamesas.com/index.php/KillActor, and can also be used to check if a limb is gone via the http://geck.gamesas.com/index.php/IsLimbGone function.
When http://geck.gamesas.com/index.php/KillActor is used to dismember a limb, the limb will explode if allowed, otherwise it will be severed if allowed. If neither of these behaviours is allowed, it will not be removed at all.
When http://geck.gamesas.com/index.php/KillActor is used to dismember the torso (assuming it
can be dismembered), all other limbs will also be dismembered. For example, if you call this on an
NPC in the console, they will completely explode:
KillActor player 0