Xtoys integration
#2
I have gotten the connection, but now I can't figure out what to do with the lines below to change the settings. There is currently no shock and it just pings Xtoys a bunch:

const STEP_DURATION = 0.05

# Shock patterns: zap | burst | stutter_shock
# Keep intensities conservative - test from 0.05 upward.
const STAGES = [
{\"pattern\": \"zap\", \"intensity\": 0.10, \"on\": 1.0, \"off\": 4.0, \"repeat\": 3},
{\"pattern\": \"burst\", \"intensity\": 0.15, \"on\": 1.2, \"off\": 3.0, \"repeat\": 3},
{\"pattern\": \"stutter_shock\", \"intensity\": 0.20, \"on\": 1.5, \"off\": 2.5, \"repeat\": 0},
]
# -

var _proxy = null
var _current_stage = 0
var _cycles_in_stage = 0

var _steps = []
var _step_time = 0.0
var _prev_step_idx = -1
var _in_off = false
var _off_timer = 0.0
var _retry_timer = 0.0
  Reply


Messages In This Thread
Xtoys integration - by Wombatant1 - 07-13-2026, 01:56 PM
RE: Xtoys integration - by velrbin - 07-31-2026, 05:02 PM
RE: Xtoys integration - by Wombatant1 - 08-03-2026, 09:25 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)