|
|
## Description
|
|
|
Kicks the target's screen to simulate recoil.
|
|
|
|
|
|
|
|
|
## Attributes
|
|
|
| Attribute | Aliases | Description | Default |
|
|
|
|-----------|-----------|----------------------------------------------------------------------|---------|
|
|
|
| recoil | r | The amount of recoil. | 1 |
|
|
|
| pitch | p | The range of pitch the screen will get kicked by | -10to10 |
|
|
|
| yaw | y | The range of yaw the screen will get kicked by | -0.25to0.25 |
|
|
|
| sneaking | sn | The value of the pitch's and yaw's multiplier if the player is sneaking | 0.75 |
|
|
|
| sprinting | sp | The value of the pitch's and yaw's multiplier if the player is sprinting| 1.25 |
|
|
|
|
|
|
### Recoil Attribute
|
|
|
Negative numbers on pitch will recoil upwards, whilst positive will recoil downwards. If you set the values to the same number it will always go the same distance: `pitch=-1to-1`
|
|
|
|
|
|
|
|
|
## Examples
|
|
|
```yaml
|
|
|
ScreenShakeSkill:
|
|
|
Skills:
|
|
|
- recoil{r=1;pitch=-1to-1} @self ~onAttack
|
|
|
- recoil{r=4;pitch=10to-10} @self ~onAttack
|
|
|
```
|
|
|
|
|
|
|
|
|
## Aliases
|
|
|
- [x] effect:recoil
|
|
|
- [x] e:recoil |
|
|
\ No newline at end of file |