Welcome to Soldier of Fortune Community Forums
23 Oct 2019, 23:56


View unanswered postsView active topics



Reply to topic  [ 1 post ] 
Auto-Taunt script 
Author Message
Israel

User avatar

Joined:
Sun Dec 04th, 2011
Posts: 384
Reply with quote
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:
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 59 times
01 Apr 2015, 00:51
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 1 post ] 
Topic Views: 580


Who is online

Users browsing this forum: No registered users and 1 guest


Top
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group
www.sof1.org