Overview
The Advanced Slash mechanic creates visually impressive slash attacks with accurate hitbox detection. It features VFX configuration with tapering effects, customizable arc patterns, and precise collision detection using totems.Key Features
- VFX Tapering: Slash width gradually increases from base to tip
- Separate VFX and Hitbox Points: Independent configuration for visuals and collision
- Instant or Animated: Choose between immediate or animated slash execution
- Two-Sided Option: Randomize roll for unpredictable slash direction
- Accurate Hitboxes: Uses totem-based collision detection for precision
Basic Usage
Parameters
The arc angle of the slash in degrees (0-360)
Duration in ticks for the slash animation (0 for instant)
The reach/length of the slash
The maximum width at the tip of the slash
The width at the base of the slash (creates tapering effect)
Number of visual effect points along the slash arc
Number of hitbox detection points along the slash arc (set to 0 to disable hitboxes)
The radius of each hitbox detection sphere
If true, all hitboxes are created instantly; if false, they animate with the slash
If true, randomizes the roll rotation for unpredictable slash direction
Whether to display visual effects
Yaw rotation offset in degrees
Pitch rotation offset in degrees
Roll rotation offset in degrees
Skills to execute when the slash hits an entity
Custom VFX skill to override default slash visuals
How It Works
Tapering System
The slash width gradually increases frombasewidth at the origin to width at the tip:
Hitbox Detection
Hitboxes are created using totems for accurate collision detection:- Has configurable radius (
hitboxsize) - Lasts for 1 tick (
md=1) - Hits only once per entity (
charges=1) - Requires line of sight
Hit Detection Logic
Prevents multiple hits on the same entity using auras:slash_impact aura prevents the same entity from being hit multiple times within 3 ticks.
Examples
Wide Spinning Slash
Quick Upward Slash
Instant Horizontal Slash
Custom VFX
Override the default VFX by specifying a customvfx skill:
The
taper_origin variable location is automatically calculated for each VFX point and represents the tapered position along the slash.Aliases
The following aliases are available:Advanced_Slashadvanced_slashSlashslash
advanced_slash-exec.
Technical Details
Line-Based Hitboxes
Hitboxes are distributed along lines from the origin to each point on the slash arc:Performance Considerations
- Higher
hitbox_points= more accurate detection but higher performance cost vfx_pointscan be higher thanhitbox_pointsfor visual quality without performance impact- Use
instant=truefor immediate detection if animation isn’t needed - Set
hitbox_points=0to disable hitboxes entirely (VFX only)