; disable bhop on ending stage 1
modify:
{
    match:
    {
        "targetname" "s1_counter_trig4"
        "classname" "math_counter"
    }
    insert:
    {
		"OnHitMax" "cmd,Command,sv_enablebunnyhopping 0,15,1"
    }
}

modify:
{
    match:
    {
        "targetname" "level1_relay"
        "classname" "logic_relay"
    }
    insert:
    {
		"OnTrigger" "cmd,Command,sv_enablebunnyhopping 1,0.02,1"
    }
}

modify:
{
    match:
    {
        "targetname" "level2_relay"
        "classname" "logic_relay"
    }
    insert:
    {
		"OnTrigger" "cmd,Command,sv_enablebunnyhopping 1,0.02,1"
    }
}
 
 
 ; pickrandomshuffle ending stage 1
modify:
{
    match:
    {
        "targetname" "aze_timer"
        "classname" "logic_timer"
    }
	delete:
    {
		"OnTimer" "aze_move_case,PickRandom,,0,-1"
    }
    insert:
    {
		"OnTimer" "aze_move_case,PickRandomShuffle,,0,-1"
    }
}

; add 2 more items on stage 1 

add:
{
"targetname" "s1_human_item_location2"
"classname" "logic_relay"
"OnTrigger" "item_maker,ForceSpawnAtEntityOrigin,!caller,0.02,-1"
"OnTrigger" "!self,Kill,,6,-1"
"origin" "12336 -8792 -5320"
"spawnflags" "0"
}

modify:
{
    match:
    {
        "targetname" "s1_human_location_case"
        "classname" "logic_case"
    }
    insert:
    {
		"OnCase02" "s1_human_item_location2,Trigger,,0,1"
		"OnCase03" "s1_human_item_location3,Trigger,,0,1"
    }
}

modify:
{
    match:
    {
        "targetname" "s1_item_relay"
        "classname" "logic_relay"
    }
    insert:
    {
		"OnTrigger" "!self,FireUser1,,1.5,-1"
		"OnTrigger" "!self,FireUser1,,0.3,-1"
    }
}

add:
{
"targetname" "s1_human_item_location3"
"classname" "logic_relay"
"OnTrigger" "item_maker,ForceSpawnAtEntityOrigin,!caller,0.02,-1"
"OnTrigger" "!self,Kill,,6,-1"
	"origin" "12448 -6000 -5384"
"spawnflags" "0"
}




; bullet damage
modify:
{
    match:
    {
        "targetname" "m_xd_hurt"
        "classname" "trigger_hurt"
    }
    replace:
    {
	"damage" "260"
    }
}

;fix laser csgo height

modify:
{
    match:
    {
        "targetname" "s2_beam_relay_c"
        "classname" "logic_relay"
    }
    replace:
    {
	"origin" "5568 -6848 -5964"
    }
}

modify:
{
    match:
    {
        "targetname" "s2_beam_relay2"
        "classname" "logic_relay"
    }
    replace:
    {
	"origin" "5568 -6568 -5964"
    }
}

modify:
{
    match:
    {
        "targetname" "s2_beam_relay_a"
        "classname" "logic_relay"
    }
    replace:
    {
	"origin" "5568 -6296 -5964"
    }
}

modify:
{
    match:
    {
        "targetname" "uu_beamsquare_movelin"
        "classname" "func_movelinear"
    }
    replace:
    {
	"speed" "400"
    }
}

modify:
{
    match:
    {
        "targetname" "uu_beamsquare_movelin"
        "classname" "func_movelinear"
    }
    replace:
    {
	"origin" "5720 -7792 -5936"
    }
}

; disable cube ending stage 2, to many trolls

modify:
{
    match:
    {
        "targetname" "s2_rotateend"
        "classname" "func_door_rotating"
    }
    insert:
    {
		"OnFullyOpen" "human_cube_filter,FireUser1,,2.2,1"
    }
}

 ; crash fix

modify:
{
    match:
    {
        "targetname" "level1_relay"
        "classname" "logic_relay"
    }
	delete:
    {
		"OnTrigger" "s1_glowworms_p,Start,,1,1"
    }
    insert:
    {
		"OnTrigger" "s1_glowworms_p,Start,,25,1"
    }
}
modify:
{
    match:
    {
        "targetname" "level4_relay"
        "classname" "logic_relay"
    }
	delete:
    {
		"OnTrigger" "s4_glow_p,Start,,1,1"
    }
    insert:
    {
		"OnTrigger" "s4_glow_p,Start,,25,1"
    }
}

; boost musics volume

add:
{
"targetname" "s2_music01"
"classname" "ambient_generic"
"spawnflags" "49"
"message" "#hgarden/music/cbl-accede.mp3"
"lfotype" "0"
"lforate" "0"
"lfomodvol" "0"
"lfomodpitch" "0"
"health" "10"
"fadeoutsecs" "0"
"fadeinsecs" "0"
"cspinup" "0"
"volstart" "0"
"spinup" "0"
"spindown" "0"
"radius" "10000"
"preset" "0"
"pitchstart" "100"
"pitch" "100"
}

add:
{
"targetname" "s2_music02"
"classname" "ambient_generic"
"spawnflags" "49"
"message" "#hgarden/music/alpha-portal-acid-rain.mp3"
"lfotype" "0"
"lforate" "0"
"lfomodvol" "0"
"lfomodpitch" "0"
"health" "10"
"fadeoutsecs" "0"
"fadeinsecs" "0"
"cspinup" "0"
"volstart" "0"
"spinup" "0"
"spindown" "0"
"radius" "10000"
"preset" "0"
"pitchstart" "100"
"pitch" "100"
}

add:
{
"targetname" "s3_music01"
"classname" "ambient_generic"
"spawnflags" "49"
"message" "#hgarden/music/2006-millions-of-lumsecs-away.mp3"
"lfotype" "0"
"lforate" "0"
"lfomodvol" "0"
"lfomodpitch" "0"
"health" "10"
"fadeoutsecs" "0"
"fadeinsecs" "0"
"cspinup" "0"
"volstart" "0"
"spinup" "0"
"spindown" "0"
"radius" "10000"
"preset" "0"
"pitchstart" "100"
"pitch" "100"
}

add:
{
"targetname" "s3_music02"
"classname" "ambient_generic"
"spawnflags" "49"
"message" "#hgarden/music/carpenter-brut-what-we-fight-for-from-furi-original-soundtrack.mp3"
"lfotype" "0"
"lforate" "0"
"lfomodvol" "0"
"lfomodpitch" "0"
"health" "10"
"fadeoutsecs" "0"
"fadeinsecs" "0"
"cspinup" "0"
"volstart" "0"
"spinup" "0"
"spindown" "0"
"radius" "10000"
"preset" "0"
"pitchstart" "100"
"pitch" "100"
}

add:
{
"targetname" "s3_music03"
"classname" "ambient_generic"
"spawnflags" "49"
"message" "#hgarden/music/teahouse.mp3"
"lfotype" "0"
"lforate" "0"
"lfomodvol" "0"
"lfomodpitch" "0"
"health" "10"
"fadeoutsecs" "0"
"fadeinsecs" "0"
"cspinup" "0"
"volstart" "0"
"spinup" "0"
"spindown" "0"
"radius" "10000"
"preset" "0"
"pitchstart" "100"
"pitch" "100"
}

add:
{
"targetname" "s4_music01"
"classname" "ambient_generic"
"spawnflags" "49"
"message" "#hgarden/music/carbon-based-lifeforms-proton-electron.mp3"
"lfotype" "0"
"lforate" "0"
"lfomodvol" "0"
"lfomodpitch" "0"
"health" "10"
"fadeoutsecs" "0"
"fadeinsecs" "0"
"cspinup" "0"
"volstart" "0"
"spinup" "0"
"spindown" "0"
"radius" "10000"
"preset" "0"
"pitchstart" "100"
"pitch" "100"
}

add:
{
"targetname" "s4_music02"
"classname" "ambient_generic"
"spawnflags" "49"
"message" "#hgarden/music/uppermost-x-fuji-deep-space.mp3"
"lfotype" "0"
"lforate" "0"
"lfomodvol" "0"
"lfomodpitch" "0"
"health" "10"
"fadeoutsecs" "0"
"fadeinsecs" "0"
"cspinup" "0"
"volstart" "0"
"spinup" "0"
"spindown" "0"
"radius" "10000"
"preset" "0"
"pitchstart" "100"
"pitch" "100"
}

add:
{
"targetname" "s4_music03"
"classname" "ambient_generic"
"spawnflags" "49"
"message" "#hgarden/music/we-are-all-astronauts-violent-delights.mp3"
"lfotype" "0"
"lforate" "0"
"lfomodvol" "0"
"lfomodpitch" "0"
"health" "10"
"fadeoutsecs" "0"
"fadeinsecs" "0"
"cspinup" "0"
"volstart" "0"
"spinup" "0"
"spindown" "0"
"radius" "10000"
"preset" "0"
"pitchstart" "100"
"pitch" "100"
}