Crouch depth
origins-powerful-powers:crouch_depthentity conditionplayers onlytracked
How far into a sneak the player is, from 0.0 (standing) to 1.0 (fully crouched). It moves a third of the way toward 1 each tick while sneaking, and back toward 0 when not, so a full crouch takes 3 ticks.
| Field | Type | Default | Description |
|---|---|---|---|
comparison | Comparison | required | |
compare_to | Float | required | 0.0 to 1.0 |
- It's
0for other entities.
Example:
{
"type": "origins:modify_damage_taken",
"condition": {
"type": "origins-powerful-powers:crouch_depth",
"comparison": ">=",
"compare_to": 1.0
},
"modifier": {
"operation": "multiply_total_multiplicative",
"value": -0.1
}
}While fully crouched, you take 10% less damage.
Attribute: crouch_depth