// Script by Zippy_Zolton. Contact me on Discord - Zolton#4312

freeslot("sfx_nulltr")

addHook("BossThinker", function(mo)
if not (mo.valid and mo.health != 0) return end
// Null PinchMusic :3
	if mo.type == MT_CYBRAKDEMON
	and (mo.health == 3 and mo.info.damage == 1)
	and mo.pinchmusic != true
		S_StartSound(nil, sfx_bedie2)
		P_LinedefExecute(-10)
		mo.pinchmusic = true
	end
	
	if (mo.state == S_CYBRAKDEMON_DASH_ATTACK2)
		if leveltime % 2 < 2 / 2 //flash
			mo.translation = "AllWhite"
		else
			mo.translation = nil
		end	
	end
	
end,MT_CYBRAKDEMON)