<commit_before>WireToolSetup.setCategory( "Advanced" )
WireToolSetup.open( "rom", "Memory - ROM", "gmod_wire_dhdd", nil, "Memory ROMs" )

if CLIENT then
	language.Add( "Tool.wire_rom.name", "ROM Tool (Wire)" )
	language.Add( "Tool.wire_rom.desc", "Spawns a ROM chip" )
	language.Add( "Tool.wire_rom.0", "Primary: Create ROM." )

	language.Add( "Tool.wire_rom.weld", "Weld the ROM." )
	language.Add( "Tool.wire_rom.weldtoworld", "Weld the ROM to the world." )
	language.Add( "Tool.wire_rom.note", "ROM size will depend on written data.\nThe maximum size is 256 KB." )

	TOOL.ClientConVar["model"] = "models/jaanus/wiretool/wiretool_gate.mdl"
	TOOL.ClientConVar["weld"] = 1
	TOOL.ClientConVar["weldtoworld"] = 0

	function TOOL.BuildCPanel( panel )
		ModelPlug_AddToCPanel(panel, "gate", "wire_rom", nil, 4)
		
		panel:CheckBox("#Tool.wire_rom.weld", "wire_rom_weld")
		panel:CheckBox("#Tool.wire_rom.weldtoworld", "wire_rom_weldtoworld")
		panel:Help("#Tool.wire_rom.note")
	end
end
TOOL.MaxLimitName = "wire_dhdds"

if SERVER then
	function TOOL:MakeEnt( ply, model, Ang, trace )
		local rom = MakeWireDHDD( ply, trace.HitPos, Ang, model, self:GetConVars() )
		if IsValid(rom) then
			rom.ROM = true
			rom:SetOverlayText("ROM")
		end
		return rom
	end
end<commit_msg>ROM stool: Switched to MakeWireEnt (old func was removed)<commit_after>WireToolSetup.setCategory( "Advanced" )
WireToolSetup.open( "rom", "Memory - ROM", "gmod_wire_dhdd", nil, "Memory ROMs" )

if CLIENT then
	language.Add( "Tool.wire_rom.name", "ROM Tool (Wire)" )
	language.Add( "Tool.wire_rom.desc", "Spawns a ROM chip" )
	language.Add( "Tool.wire_rom.0", "Primary: Create ROM." )

	language.Add( "Tool.wire_rom.weld", "Weld the ROM." )
	language.Add( "Tool.wire_rom.weldtoworld", "Weld the ROM to the world." )
	language.Add( "Tool.wire_rom.note", "ROM size will depend on written data.\nThe maximum size is 256 KB." )

	TOOL.ClientConVar["model"] = "models/jaanus/wiretool/wiretool_gate.mdl"
	TOOL.ClientConVar["weld"] = 1
	TOOL.ClientConVar["weldtoworld"] = 0

	function TOOL.BuildCPanel( panel )
		ModelPlug_AddToCPanel(panel, "gate", "wire_rom", nil, 4)
		
		panel:CheckBox("#Tool.wire_rom.weld", "wire_rom_weld")
		panel:CheckBox("#Tool.wire_rom.weldtoworld", "wire_rom_weldtoworld")
		panel:Help("#Tool.wire_rom.note")
	end
end
TOOL.MaxLimitName = "wire_dhdds"

if SERVER then
	function TOOL:MakeEnt( ply, model, Ang, trace )
		local rom = MakeWireEnt(ply, {Class = "gmod_wire_dhdd", Pos=trace.HitPos, Angle=Ang, Model=model}, self:GetConVars())
		if IsValid(rom) then
			rom.ROM = true
			rom:SetOverlayText("ROM")
		end
		return rom
	end
end
{'fraction_non_alphanumeric': 0.14956123616940098, 'fraction_numerical': 0.00534147272033575, 'mean_word_length': 5.069444444444445, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4191517', 'n_tokens_mistral': 1082, 'n_tokens_neox': 999, 'n_words': 222}