;************************************************
; Ze_bulhufas_a1_1_s STRIPPER #4 CFG By Rix :V
;************************************************

modify:
{
	match:
	{
		"classname" "logic_auto"
		"hammerid" "16426"
	}
	insert:
	{
		"OnMapSpawn" "commands,Command,say ||strp #4||,5,-1"
	}
}


;**************************
; Increase Boss Hp Level 1 
;**************************

modify:
{
	match:
	{
		"targetname" "monark_hp_add"
	}
	delete:
	{
		"OnStartTouch" "boss_hp,Add,1200,0,-1"
	}
	insert:
	{
		"OnStartTouch" "boss_hp,Add,3600,0,-1"
	}
}

;**************************
; Increase Boss Hp Level 2 
;**************************

modify:
{
	match:
	{
		"targetname" "bola_add_hp"
	}
	delete:
	{
		"OnStartTouch" "boss_hp,Add,1300,0,-1"
	}
	insert:
	{
		"OnStartTouch" "boss_hp,Add,4600,0,-1"
	}
}

;**************************
; Increase Boss Hp Level 3 
;**************************

modify:
{
	match:
	{
		"targetname" "coomer_add_hp"
	}
	delete:
	{
		"OnStartTouch" "boss_hp,Add,900,0,-1"
	}
	insert:
	{
		"OnStartTouch" "boss_hp,Add,4200,0,-1"
	}
}

;**********************************************************
; Give some time for opening Vent at Elevator paper stage
;**********************************************************

modify:
{
	match:
	{
		"targetname" "door_second_ele_paper"
	}
	delete:
	{
		"OnFullyOpen" "break_vents,Break,,0,-1"
	}
	insert:
	{
		"OnFullyOpen" "break_vents,Break,,3,-1"
	}
}

;********************************************
; Fix ronaldo item freeze output not correct
;********************************************

modify:
{
	match:
	{
		"targetname" "ronaldo_freeze"
	}
	delete:
	{
		"OnStartTouch" "speed,ModifySpeed,1.00,3,-1"
	}
	insert:
	{
		"OnStartTouch" "speed,ModifySpeed,0.00,3,-1"
		"OnStartTouch" "speed,ModifySpeed,0.00,4,-1"
		"OnStartTouch" "speed,ModifySpeed,0.00,5,-1"
		"OnStartTouch" "speed,ModifySpeed,1.00,6,-1"
	}
}

;************************
; Fix Teleport Lego stage
;************************

modify:
{
	match:
	{
		"targetname" "break_glass_lvl3"
	}
	insert:
	{
		"OnBreak" "break_glass_lvl3,Kill,,0,-1"
		"OnBreak" "commands,Command,say *** TELEPORTING REST OF APE TEAM IN 15 SECONDS ***,0.01,-1"
	}
}

;************************************
; Fix Push after teleport lego stage
;************************************

modify:
{
	match:
	{
		"targetname" "push_alien_lvl3"
	}
	replace:
	{
		"speed" "400"
	}
}


;****************
; correction
;****************

modify:
{
	match:
	{
		"targetname" "lvl1_relay"
	}
	delete:
	{
		"OnTrigger" "cc_normal,Enable,,0,-1"
	}
}

modify:
{
	match:
	{
		"targetname" "lvl2_relay"
	}
	delete:
	{
		"OnTrigger" "cc_normal,Enable,,0,-1"
	}
}

modify:
{
	match:
	{
		"targetname" "lvl3_relay"
	}
	delete:
	{
		"OnTrigger" "cc_last_level,Enable,,0,-1"
	}
}

;*********************************
; Port CS:GO VScripts Moving NPCs
;*********************************
modify:
{
	match:
	{
		"hammerid" "449373"
		"targetname" "coomer_p2_move"
		"classname" "func_physbox"
	}
	insert:
	{
		"vscripts" "ze_bulhufas/bulhufasmoving_npc.nut"
	}
}

modify:
{
	match:
	{
		"hammerid" "199436"
		"targetname" "carroca_move"
		"classname" "func_physbox"
	}
	insert:
	{
		"vscripts" "ze_bulhufas/bulhufasmoving_npc.nut"
	}
}

modify:
{
	match:
	{
		"hammerid" "201721"
		"targetname" "dilma_move"
		"classname" "func_physbox"
	}
	insert:
	{
		"vscripts" "ze_bulhufas/bulhufasmoving_npc.nut"
	}
}

modify:
{
	match:
	{
		"hammerid" "196851"
		"targetname" "makonho_move"
		"classname" "func_physbox"
	}
	insert:
	{
		"vscripts" "ze_bulhufas/bulhufasmoving_npc.nut"
	}
}

modify:
{
	match:
	{
		"targetname" "coomer_p2_npc_start"
	}
	insert:
	{
		"OnSpawn" "coomer_p2_move,RunScriptCode,Start();,1,1"
		"OnSpawn" "coomer_p2_move,RunScriptCode,SetSpeedForw(0.70);,0.05,1"
	}
}

modify:
{
	match:
	{
		"targetname" "dilma_npc_start"
	}
	insert:
	{
		"OnSpawn" "dilma_move,RunScriptCode,Start();,1,1"
		"OnSpawn" "dilma_move,RunScriptCode,SetSpeedForw(0.75);,0.05,1"
	}
}

modify:
{
	match:
	{
		"targetname" "makonho_npc_start"
	}
	insert:
	{
		"OnSpawn" "makonho_move,RunScriptCode,Start();,1,1"
		"OnSpawn" "makonho_move,RunScriptCode,SetSpeedForw(0.75);,0.05,1"
	}
}

modify:
{
	match:
	{
		"targetname" "carroca_npc_start"
	}
	insert:
	{
		"OnSpawn" "carroca_move,RunScriptCode,Start();,1,1"
		"OnSpawn" "carroca_move,RunScriptCode,SetSpeedForw(0.75);,0.05,1"
	}
}

modify:
{
	match:
	{
		"targetname" "coomer_phase2_dead"
	}
	insert:
	{
		"OnTrigger" "coomer_p2_move,RunScriptCode,Stop();,0,-1"
	}
}

modify:
{
	match:
	{
		"targetname" "coomer_p2_thruster_forward"
	}
	delete:
	{
		"OnUser1" "coomer_p2_move,FireUser1,,0,1"
	}
	insert:
	{
		"OnUser1" "coomer_p2_move,RunScriptCode,SetThruster(true);,0,1"
	}
}

modify:
{
	match:
	{
		"targetname" "coomer_p2_thruster_side"
	}
	delete:
	{
		"OnUser1" "coomer_p2_move,FireUser1,,0,1"
	}
	insert:
	{
		"OnUser1" "coomer_p2_move,RunScriptCode,SetThruster(false);,0,1"
	}
}

modify:
{
	match:
	{
		"targetname" "dilma_thruster_side"
	}
	delete:
	{
		"OnUser1" "dilma_move,FireUser1,,0,1"
	}
	insert:
	{
		"OnUser1" "dilma_move,RunScriptCode,SetThruster(false);,0,1"
	}
}

modify:
{
	match:
	{
		"targetname" "dilma_thruster_forward"
	}
	delete:
	{
		"OnUser1" "dilma_move,FireUser1,,0,1"
	}
	insert:
	{
		"OnUser1" "dilma_move,RunScriptCode,SetThruster(true);,0,1"
	}
}

modify:
{
	match:
	{
		"targetname" "makonho_thruster_side"
	}
	delete:
	{
		"OnUser1" "makonho_move,FireUser1,,0,1"
	}
	insert:
	{
		"OnUser1" "makonho_move,RunScriptCode,SetThruster(false);,0,1"
	}
}

modify:
{
	match:
	{
		"targetname" "makonho_thruster_forward"
	}
	delete:
	{
		"OnUser1" "makonho_move,FireUser1,,0,1"
	}
	insert:
	{
		"OnUser1" "makonho_move,RunScriptCode,SetThruster(true);,0,1"
	}
}

modify:
{
	match:
	{
		"targetname" "carroca_thruster_side"
	}
	delete:
	{
		"OnUser1" "carroca_move,FireUser1,,0,1"
	}
	insert:
	{
		"OnUser1" "carroca_move,RunScriptCode,SetThruster(false);,0,1"
	}
}

modify:
{
	match:
	{
		"targetname" "carroca_thruster_forward"
	}
	delete:
	{
		"OnUser1" "carroca_move,FireUser1,,0,1"
	}
	insert:
	{
		"OnUser1" "carroca_move,RunScriptCode,SetThruster(true);,0,1"
	}
}

;*****************************
; Import CS:GO Stripper fixes
;*****************************
;makonho npc hurt fix
add:
{
	"classname" "logic_measure_movement"
	"MeasureReference" "makonho_spr"
	"MeasureTarget" "makonho_spr"
	"MeasureType" "0"
	"Target" "makonho_hurt"
	"targetname" "makonho_caohurtfix"
	"TargetReference" "makonho_spr"
	"TargetScale" "1"
	"origin" "-4352 -448 -660"
}

modify:
{
	match:
	{
		"targetname" "makonho_hurt"
		"classname" "trigger_hurt"
	}
	delete:
	{
		"parentname" "makonho_spr"
	}
}

;carroca npc hurt fix
add:
{
	"classname" "logic_measure_movement"
	"MeasureReference" "carroca_spr"
	"MeasureTarget" "carroca_spr"
	"MeasureType" "0"
	"Target" "carroca_hurt"
	"targetname" "carroca_machehurtfix"
	"TargetReference" "carroca_spr"
	"TargetScale" "1"
	"origin" "-4352 -448 -726"
}

modify:
{
	match:
	{
		"targetname" "carroca_hurt"
		"classname" "trigger_hurt"
	}
	delete:
	{
		"parentname" "carroca_spr"
	}
}

;dilma npc hurt fix
add:
{
	"classname" "logic_measure_movement"
	"MeasureReference" "dilma_spr"
	"MeasureTarget" "dilma_spr"
	"MeasureType" "0"
	"Target" "dilma_hurt"
	"targetname" "dilma_xiaohaihurtfix"
	"TargetReference" "dilma_spr"
	"TargetScale" "1"
	"origin" "-4352 -448 -792"
}

modify:
{
	match:
	{
		"targetname" "dilma_hurt"
		"classname" "trigger_hurt"
	}
	delete:
	{
		"parentname" "dilma_spr"
	}
}

;coomer laser dmg fix (stage3)
add:
{
	"origin" "-10832 13104 -294"
	"targetname" "fixcoomerlaserdmg"
	"Negated" "Allow entities that match criteria"
	"damagetype" "262144"
	"classname" "filter_damage_type"
	"OnUser1" "!activator,SetDamageFilter,fixcoomerlaserdmg,0,-1"
	"OnUser1" "!activator,SetDamageFilter,,0.4,-1"
}

modify:
{
	match:
	{
		"targetname" "coomer_p1_fire_hurt"
		"classname" "trigger_hurt"
	}
	insert:
	{
		"OnHurtPlayer" "fixcoomerlaserdmg,FireUser1,0,-1"
	}
}

;coomer boss move hurt fix (stage3)
add:
{
	"classname" "logic_measure_movement"
	"MeasureReference" "dashu_hurt_parent_refernce"
	"MeasureTarget" "coomer_p2_spr"
	"MeasureType" "0"
	"Target" "coomer_p2_touch_dmg"
	"targetname" "dashuhurtfix"
	"TargetReference" "dashu_hurt_reference"
	"TargetScale" "1"
	"origin" "-10832 13104 -140"
}

add:
{
	"classname" "logic_relay"
	"spawnflags" "0"
	"StartDisabled" "0"
	"targetname" "dashu_hurt_reference"
	"origin" "-10832 13104 -120"
}

add:
{
	"classname" "logic_relay"
	"spawnflags" "0"
	"StartDisabled" "0"
	"targetname" "dashu_hurt_parent_refernce"
	"origin" "-10832 13104 -128"
}

modify:
{
	match:
	{
		"targetname" "coomer_p2_tpt_cumjar"
		"classname" "point_template"
	}
	insert:
	{
		"Template04" "dashu_hurt_parent_refernce"
		"Template05" "dashu_hurt_reference"
		"Template06" "dashuhurtfix"
	}
}

modify:
{
	match:
	{
		"targetname" "coomer_phase2_dead"
		"classname" "logic_relay"
	}
	insert:
	{
		"OnTrigger" "dashuhurtfix,Kill,,2,-1"
		"OnTrigger" "dashu_hurt_parent_refernce,Kill,,2,-1"
		"OnTrigger" "dashu_hurt_reference,Kill,,2,-1"
	}
}

;bola laser and fire dmg fix
modify:
{
	match:
	{
		"targetname" "bola_laser_pulo_hurt"
		"classname" "trigger_hurt"
	}
	insert:
	{
		"OnHurtPlayer" "fixcoomerlaserdmg,FireUser1,0,-1"
	}
}

modify:
{
	match:
	{
		"targetname" "bola_fire_hurt"
		"classname" "trigger_hurt"
	}
	insert:
	{
		"OnHurtPlayer" "fixcoomerlaserdmg,FireUser1,0,-1"
	}
}

;fix boss damage
modify:
{
	match:
	{
		"classname" "math_counter"
		"targetname" "boss_hp"
	}
	replace:
	{
		"startvalue" "999999"
		"max" "999999"
	}
}

;fix flamegun long fire
modify:
{
	match:
	{
		"classname" "trigger_hurt"
		"targetname" "flamegun_hurt"
	}
	delete:
	{
		"OnStartTouch" "!activator,IgniteLifetime,40,0,-1"
		"OnEndTouchAll" "!activator,IgniteLifetime,2,0,-1"
	}
	insert:
	{
		"OnHurtPlayer" "!activator,IgniteLifetime,2,0,-1"
	}
}

;fix churrasqueira (bbq)
modify:
{
	match:
	{
		"classname" "trigger_hurt"
		"targetname" "churrasqueira_hurt"
	}
	replace:
	{
		"StartDisabled" "1"
	}
}

modify:
{
	match:
	{
		"classname" "logic_relay"
		"targetname" "churrasqueira_exp_relay"
	}
	insert:
	{
		"OnTrigger" "churrasqueira_hurt,Enable,,0,-1"
	}
}

modify:
{
	match:
	{
		"classname" "trigger_once"
		"targetname" "churrasqueira_trigger"
	}
	delete:
	{
		"OnTrigger" "churrasqueira_exp_relay,Trigger,,0,-1"
	}
	insert:
	{
		"OnTrigger" "churrasqueira_exp_relay,Trigger,,0,1"
	}
}

modify:
{
	match:
	{
		"classname" "trigger_once"
		"targetname" "trigger_npc_lvl2"
	}
	delete:
	{
		"OnTrigger" "npc_location_counter,GetValue,,1,-1"
		"OnTrigger" "npc_location_counter,SetValue,2,0,-1"
	}
	insert:
	{
		"OnTrigger" "npc_location_counter,GetValue,,1,1"
		"OnTrigger" "npc_location_counter,SetValue,2,0,1"
	}
}

modify:
{
	match:
	{
		"classname" "trigger_once"
		"targetname" "trigger_ele_lvl3"
	}
	delete:
	{
		"OnTrigger" "commands,Command,say *** ELEVATOR WILL UNDER-ELEVATE IN 15 SECEONDS ***,0,-1"
		"OnTrigger" "door_ele,Open,,0,-1"
		"OnTrigger" "door_ele,Close,,15,-1"
		"OnTrigger" "npc_cleaner,Trigger,,0,-1"
		"OnTrigger" "npc_location_counter,SetValue,3,0,-1"
		"OnTrigger" "npc_location_counter,GetValue,,1,-1"
		"OnTrigger" "npc_location_counter,GetValue,,2,-1"
	}
	insert:
	{
		"OnTrigger" "commands,Command,say *** ELEVATOR WILL UNDER-ELEVATE IN 15 SECEONDS ***,0,1"
		"OnTrigger" "door_ele,Open,,0,1"
		"OnTrigger" "door_ele,Close,,15,1"
		"OnTrigger" "npc_cleaner,Trigger,,0,1"
		"OnTrigger" "npc_location_counter,SetValue,3,0,1"
		"OnTrigger" "npc_location_counter,GetValue,,1,1"
		"OnTrigger" "npc_location_counter,GetValue,,2,1"
	}
}

;fix shit ass laser idk wtf was i thinking sorry
modify:
{
	match:
	{
		"classname" "func_movelinear"
		"targetname" "cancer_laser_lvl3"
	}
	replace:
	{
		"speed" "2500"
		"movedistance" "2100"
	}
}