mirror of
				https://github.com/mt-mods/homedecor_modpack.git
				synced 2025-11-04 14:25:32 +01:00 
			
		
		
		
	add white and plain wood "half doors" (registred as gates)
This commit is contained in:
		@@ -293,10 +293,12 @@ end
 | 
				
			|||||||
-- Gates
 | 
					-- Gates
 | 
				
			||||||
 | 
					
 | 
				
			||||||
local gate_list = {
 | 
					local gate_list = {
 | 
				
			||||||
	{ "picket",         S("Unpainted Picket Fence Gate") },
 | 
						{ "picket",          S("Unpainted Picket Fence Gate") },
 | 
				
			||||||
	{ "picket_white",   S("White Picket Fence Gate")     },
 | 
						{ "picket_white",    S("White Picket Fence Gate")     },
 | 
				
			||||||
	{ "barbed_wire",    S("Barbed Wire Fence Gate")      },
 | 
						{ "barbed_wire",     S("Barbed Wire Fence Gate")      },
 | 
				
			||||||
	{ "chainlink",      S("Chainlink Fence Gate")        },
 | 
						{ "chainlink",       S("Chainlink Fence Gate")        },
 | 
				
			||||||
 | 
						{ "half_door",       S("\"Half\" Door")               },
 | 
				
			||||||
 | 
						{ "half_door_white", S("\"Half\" Door (white)")       }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
local gate_models_closed = {
 | 
					local gate_models_closed = {
 | 
				
			||||||
@@ -315,7 +317,12 @@ local gate_models_closed = {
 | 
				
			|||||||
	 { -8/16,  7/16, 13/32,  8/16,  8/16, 15/32 },	-- top piece
 | 
						 { -8/16,  7/16, 13/32,  8/16,  8/16, 15/32 },	-- top piece
 | 
				
			||||||
	 { -8/16, -8/16, 13/32,  8/16, -7/16, 15/32 },	-- bottom piece
 | 
						 { -8/16, -8/16, 13/32,  8/16, -7/16, 15/32 },	-- bottom piece
 | 
				
			||||||
	 { -8/16, -8/16,  7/16,  8/16,  8/16,  7/16 },	-- the chainlink itself
 | 
						 { -8/16, -8/16,  7/16,  8/16,  8/16,  7/16 },	-- the chainlink itself
 | 
				
			||||||
	 { -8/16, -3/16,  6/16, -6/16,  3/16,  8/16 }}	-- the lump representing the lock
 | 
						 { -8/16, -3/16,  6/16, -6/16,  3/16,  8/16 }},	-- the lump representing the lock
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						{{ -8/16, -8/16, 6/16, 8/16, 8/16, 8/16 }}, -- the whole door :P
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						{{ -8/16, -8/16, 6/16, 8/16, 8/16, 8/16 }}, -- the whole door :P
 | 
				
			||||||
 | 
					
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
local gate_models_open = {
 | 
					local gate_models_open = {
 | 
				
			||||||
@@ -334,7 +341,11 @@ local gate_models_open = {
 | 
				
			|||||||
	 { 13/32,  7/16, -8/16, 15/32,  8/16,  8/16 },	-- top piece
 | 
						 { 13/32,  7/16, -8/16, 15/32,  8/16,  8/16 },	-- top piece
 | 
				
			||||||
	 { 13/32, -8/16, -8/16, 15/32, -7/16,  8/16 },	-- bottom piece
 | 
						 { 13/32, -8/16, -8/16, 15/32, -7/16,  8/16 },	-- bottom piece
 | 
				
			||||||
	 {  7/16, -8/16, -8/16,  7/16,  8/16,  8/16 },	-- the chainlink itself
 | 
						 {  7/16, -8/16, -8/16,  7/16,  8/16,  8/16 },	-- the chainlink itself
 | 
				
			||||||
	 {  6/16, -3/16, -8/16,  8/16,  3/16, -6/16 }}	-- the lump representing the lock
 | 
						 {  6/16, -3/16, -8/16,  8/16,  3/16, -6/16 }},	-- the lump representing the lock
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						{{ 6/16, -8/16, -8/16, 8/16, 8/16, 8/16 }}, -- the whole door :P
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						{{ 6/16, -8/16, -8/16, 8/16, 8/16, 8/16 }}, -- the whole door :P
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
for i, g in ipairs(gate_list) do
 | 
					for i, g in ipairs(gate_list) do
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										
											BIN
										
									
								
								homedecor/textures/homedecor_gate_half_door_fb.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								homedecor/textures/homedecor_gate_half_door_fb.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 2.0 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								homedecor/textures/homedecor_gate_half_door_lr.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								homedecor/textures/homedecor_gate_half_door_lr.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 684 B  | 
							
								
								
									
										
											BIN
										
									
								
								homedecor/textures/homedecor_gate_half_door_tb.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								homedecor/textures/homedecor_gate_half_door_tb.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 421 B  | 
							
								
								
									
										
											BIN
										
									
								
								homedecor/textures/homedecor_gate_half_door_white_fb.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								homedecor/textures/homedecor_gate_half_door_white_fb.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 1.1 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								homedecor/textures/homedecor_gate_half_door_white_lr.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								homedecor/textures/homedecor_gate_half_door_white_lr.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 384 B  | 
							
								
								
									
										
											BIN
										
									
								
								homedecor/textures/homedecor_gate_half_door_white_tb.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								homedecor/textures/homedecor_gate_half_door_white_tb.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 310 B  | 
		Reference in New Issue
	
	Block a user