;----------------------------------------
; Fix Wheels Wizard Stage 10
;----------------------------------------
modify:
{
	match:
	{
		"classname" "momentary_rot_button"
		"targetname" "stage3_ex_wizard_rbut1"
	}
	replace:
	{
		"distance" "68"
		"speed" "3"
	}
}
modify:
{
	match:
	{
		"classname" "momentary_rot_button"
		"targetname" "stage3_ex_wizard_rbut2"
	}
	replace:
	{
		"distance" "68"
		"speed" "3"
	}
}

;---------------------
; Change to 6 extends
;---------------------

modify:
{
	match:
	{
		"targetname" "map_fixthis"
		"classname" "func_brush"
	}
	delete:
	{
		"OnUser1" "console,Command,sm_mapvote_extend 4,0.04,1"
		"OnUser1" "console,Command,mce_extend 4,0.05,1"
	}
	insert:
	{
		"OnUser1" "console,Command,sm_mapvote_extend 6,0.04,1"
		"OnUser1" "console,Command,mce_extend 6,0.05,1"
	}
}


;==============
; EVENT STUFF
; 09-07-2021
;==============

;-----------------
; Avada max 2 use
;-----------------

modify:
{
	match:
	{
		"targetname" "spx_avada_case"
		"classname" "logic_case"
	}
	delete:
	{
		"OnCase01" "spx_avada_counter,SetHitMax,3,0,1"
		"OnCase02" "spx_avada_counter,SetHitMax,3,0,1"
		"OnCase03" "spx_avada_counter,SetHitMax,3,0,1"
		"OnCase04" "spx_avada_counter,SetHitMax,3,0,1"
	}
}

;---------------------
; Modes Stack and VIP
;---------------------

add:
{
	"origin" "0 0 0"
	"targetname" "EVENT_VIP_MODE_TOGGLE"
	"spawnflags" "0"
	"classname" "logic_relay"
	"OnUser1" "console,Command,sm_vipmode_enable 1,0,-1"
	"OnUser2" "console,Command,sm_vipmode_enable 0,0,-1"
}

add:
{
	"origin" "0 0 0"
	"targetname" "EVENT_STACK_MODE_TOGGLE"
	"spawnflags" "0"
	"classname" "logic_relay"
	"OnUser1" "console,Command,sm_stackmode_enable 1,0,-1"
	"OnUser2" "console,Command,sm_stackmode_enable 0,0,-1"
}

;Normal1-6 no special mode 

; 	map_stages_case_nrml
; 	Case01 => Warmup
; 	Case02 => Normal1
; 	Case03 => Normal2
; 	Case04 => Normal3
; 	Case05 => Normal4
; 	Case06 => Normal5
; 	Case07 => Normal6


modify:
{
	match:
	{
		"targetname" "map_stages_case_nrml"
		"classname" "logic_case"
	}
	insert:
	{
		"OnCase01" "EVENT_STACK_MODE_TOGGLE,FireUser2,,0,1"
		"OnCase02" "EVENT_STACK_MODE_TOGGLE,FireUser2,,0,1"
		"OnCase03" "EVENT_STACK_MODE_TOGGLE,FireUser2,,0,1"
		"OnCase04" "EVENT_STACK_MODE_TOGGLE,FireUser2,,0,1"
		"OnCase05" "EVENT_STACK_MODE_TOGGLE,FireUser2,,0,1"
		"OnCase06" "EVENT_STACK_MODE_TOGGLE,FireUser2,,0,1"
		"OnCase07" "EVENT_STACK_MODE_TOGGLE,FireUser2,,0,1"
		"OnCase01" "EVENT_VIP_MODE_TOGGLE,FireUser2,,0,1"
		"OnCase02" "EVENT_VIP_MODE_TOGGLE,FireUser2,,0,1"
		"OnCase03" "EVENT_VIP_MODE_TOGGLE,FireUser2,,0,1"
		"OnCase04" "EVENT_VIP_MODE_TOGGLE,FireUser2,,0,1"
		"OnCase05" "EVENT_VIP_MODE_TOGGLE,FireUser2,,0,1"
		"OnCase06" "EVENT_VIP_MODE_TOGGLE,FireUser2,,0,1"
		"OnCase07" "EVENT_VIP_MODE_TOGGLE,FireUser2,,0,1"
		
	}
}

; Stack mode extreme1-3 + extreme6
; Vip mode extreme4-5 + extreme6

; 	map_stages_case_xtrm
; 	Case01 => Final Zm mode (Stage 13)
; 	Case02 => Extreme1
; 	Case03 => Extreme2
; 	Case04 => Extreme3
; 	Case05 => Extreme4
; 	Case06 => Extreme5
; 	Case07 => Extreme6


modify:
{
	match:
	{
		"targetname" "map_stages_case_xtrm"
		"classname" "logic_case"
	}
	insert:
	{
		"OnCase01" "EVENT_STACK_MODE_TOGGLE,FireUser2,,0,1"
		"OnCase01" "EVENT_VIP_MODE_TOGGLE,FireUser2,,0,1"

		
		"OnCase02" "EVENT_STACK_MODE_TOGGLE,FireUser1,,0,1"
		"OnCase03" "EVENT_STACK_MODE_TOGGLE,FireUser1,,0,1"
		"OnCase04" "EVENT_STACK_MODE_TOGGLE,FireUser1,,0,1"
		"OnCase05" "EVENT_STACK_MODE_TOGGLE,FireUser2,,0,1"
		"OnCase06" "EVENT_STACK_MODE_TOGGLE,FireUser2,,0,1"
		"OnCase07" "EVENT_STACK_MODE_TOGGLE,FireUser1,,0,1"
		
		"OnCase02" "EVENT_VIP_MODE_TOGGLE,FireUser2,,0,1"
		"OnCase03" "EVENT_VIP_MODE_TOGGLE,FireUser2,,0,1"
		"OnCase04" "EVENT_VIP_MODE_TOGGLE,FireUser2,,0,1"
		"OnCase05" "EVENT_VIP_MODE_TOGGLE,FireUser1,,0,1"
		"OnCase06" "EVENT_VIP_MODE_TOGGLE,FireUser1,,0,1"
		"OnCase07" "EVENT_VIP_MODE_TOGGLE,FireUser1,,0,1"
	}
}

