;----------------------
; VScripts - Parachute(plugin)
; /!\ DO NOT EDIT OR VSCRIPTS MAY BREAK /!\
;-------------------------------------------
; Add trigger for know when human jumped from plane
add:
{
	"model" "*25"
	"classname" "trigger_multiple"
	"targetname" "plane_player_drop"
	"parentname" "player_drop_train"
	"wait" "0"
	"StartDisabled" "1"
	"spawnflags" "1"
	"origin" "-12096 -14248 3708"
	"filtername" "filter_human"
	"hammerid" "999990"
	"OnStartTouch" "servercommand,Command,say Hold [E] to activate parachute ,6.0,1"
}

; Hook it in the template
modify:
{
	match:
	{
		"targetname" "player_drop"
		"classname" "point_template"
	}
	insert:
	{
		"Template09" "plane_player_drop"
	}
}

; Enable trigger when player are in plane
modify:
{
	match:
	{
		"targetname" "teleport_spawn_ct"
		"classname" "trigger_teleport"
	}
	insert:
	{
		"OnUser1" "plane_player_drop,Enable,,0.35,-1"
	}
}

; Kill the trigger when plane exploded
modify:
{
	match:
	{
		"targetname" "player_drop_explode"
		"classname" "trigger_hurt"
	}
	insert:
	{
		"OnUser1" "plane_player_drop,Kill,,0.05,1"
	}
}

; -- End of VScripts compat --
; -- Stripper fixes starts here --


;Fix bad teleport for cream
modify:
{
	match:
	{
		"targetname" "cream_use_stand"
		"classname" "logic_relay"
	}
	detele:
	{
		"OnUser1" "cream_use_E_pre,SetValue,0,25,-1"
	}
	insert:
	{
		"OnUser1" "cream_use_E,Disable,,20,-1"
	}
}

;Fix bad origin for plane
modify:
{
	match:
	{
		"targetname" "player_drop_spawn_case"
		"classname" "logic_case"
	}
	detele:
	{
		"OnCase07" "player_drop,AddOutput,origin 0 13500 3553,0,1"
	}
	insert:
	{
		"OnCase07" "player_drop,AddOutput,origin 0 12500 3553,0,1"
	}
}



;; _

;; fix nuke

modify:
{
	match:
	{
		"origin" "-15264 -12384 -7152"
		"classname" "trigger_hurt"
		"hammerid" "32612"
	}
	replace:
	{
		"damagetype" "0"
	}
}

;; fix playerequip

modify:
{
	match:
	{
		"targetname" "player_ammogive"
		"classname" "game_player_equip"
	}
	replace:
	{
		"spawnflags" "1"
	}
}


