Auto-Taunt script

Reactions: 0
Posts: 409
Joined: 04 Dec 2011, 12:07

Auto-Taunt script

Post by CheaterSkeeter »

wave every 6 seconds. :zzz:

Put autotaunt.func inside your sofplus addons folder (user/sofplus/addons) and start or restart sof.

to turn it off:
wave_on 0

Code: Select all

function autotaunt_init()
{
  set wave_on "1"
  sp_sc_on_change wave_on "autotaunt_switch"
  sp_sc_func_exec taunt
}

function autotaunt_switch()
{
  sp_sc_flow_if number cvar wave_on == val 1
  {
    sp_sc_func_exec taunt
    set ~msg "%03Autotaunt %04Activated!"
    sp_sc_cvar_unescape ~msg ~msg
    echo #~msg
  }
  else
  {
    set ~msg "%03Autotaunt %02Deactivated!"
    sp_sc_cvar_unescape ~msg ~msg
    echo #~msg
  }
}

function taunt()
{
  sp_sc_flow_if number cvar wave_on == val 1
  {
    sp_sc_flow_if number cvar wave_val > val 3
    {
      set wave_val 1
    }
    wave #wave_val
    add wave_val 1
    sp_sc_timer 6000 "sp_sc_func_exec taunt"
  }
}
Attachments
autotaunt.zip
(411 Bytes) Downloaded 125 times
Post Reply

Who is online

Users browsing this forum: No registered users and 10 guests