Advertisement
Guest User

Untitled

a guest
May 7th, 2010
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 16.44 KB | None | 0 0
  1. function proplist()
  2.         print ("List Opening")
  3.         local props = {}
  4.  
  5.         props[1] = "models/Combine_Helicopter/helicopter_bomb01.mdl"
  6.         props[2] = "models/Cranes/crane_frame.mdl"
  7.         props[3] = "models/props_borealis/mooring_cleat01.mdl"
  8.         props[4] = "models/props_borealis/door_wheel001a.mdl"
  9.         props[5] = "models/props_borealis/borealis_door001a.mdl"
  10.         props[7] = "models/props_borealis/bluebarrel001.mdl"
  11.         props[8] = "models/props_building_details/Storefront_Template001a_Bars.mdl"
  12.         props[9] = "models/props_c17/canister01a.mdl"
  13.         props[10] = "models/props_c17/canister02a.mdl"
  14.         props[11] = "models/props_c17/canister_propane01a.mdl"
  15.         props[12] = "models/props_c17/bench01a.mdl"
  16.         props[13] = "models/props_c17/chair02a.mdl"
  17.         props[14] = "models/props_c17/column02a.mdl"
  18.         props[15] = "models/props_c17/concrete_barrier001a.mdl"
  19.         props[16] = "models/props_c17/display_cooler01a.mdl"
  20.         props[17] = "models/props_c17/door01_left.mdl"
  21.         props[18] = "models/props_c17/door02_double.mdl"
  22.         props[19] = "models/props_c17/fence01a.mdl"
  23.         props[20] = "models/props_c17/fence01b.mdl"
  24.         props[21] = "models/props_c17/fence02a.mdl"
  25.         props[22] = "models/props_c17/fence02b.mdl"
  26.         props[23] = "models/props_c17/fence03a.mdl"
  27.         props[24] = "models/props_c17/fence04a.mdl"
  28.         props[25] = "models/props_c17/fountain_01.mdl"
  29.         props[26] = "models/props_c17/FurnitureBathtub001a.mdl"
  30.         props[27] = "models/props_c17/FurnitureBed001a.mdl"
  31.         props[28] = "models/props_c17/FurnitureBoiler001a.mdl"
  32.         props[29] = "models/props_c17/FurnitureChair001a.mdl"
  33.         props[30] = "models/props_c17/FurnitureCouch001a.mdl"
  34.         props[31] = "models/props_c17/FurnitureCouch002a.mdl"
  35.         props[32] = "models/props_c17/FurnitureCupboard001a.mdl"
  36.         props[33] = "models/props_c17/FurnitureDrawer001a.mdl"
  37.         props[34] = "models/props_c17/FurnitureDrawer001a_Chunk01.mdl"
  38.         props[35] = "models/props_c17/FurnitureDrawer001a_Chunk02.mdl"
  39.         props[36] = "models/props_c17/FurnitureDrawer001a_Chunk03.mdl"
  40.         props[37] = "models/props_c17/FurnitureDrawer001a_Chunk04.mdl"
  41.         props[38] = "models/props_c17/FurnitureDrawer001a_Chunk05.mdl"
  42.         props[39] = "models/props_c17/FurnitureDrawer001a_Chunk06.mdl"
  43.         props[40] = "models/props_c17/FurnitureDrawer001a_Shard01.mdl"
  44.         props[41] = "models/props_c17/FurnitureDrawer002a.mdl"
  45.         props[42] = "models/props_c17/FurnitureDrawer003a.mdl"
  46.         props[43] = "models/props_c17/FurnitureDresser001a.mdl"
  47.         props[44] = "models/props_c17/FurnitureFireplace001a.mdl"
  48.         props[45] = "models/props_c17/FurnitureFridge001a.mdl"
  49.         props[46] = "models/props_c17/FurnitureMattress001a.mdl"
  50.         props[47] = "models/props_c17/FurnitureRadiator001a.mdl"
  51.         props[48] = "models/props_c17/FurnitureShelf001a.mdl"
  52.         props[49] = "models/props_c17/FurnitureShelf001b.mdl"
  53.         props[50] = "models/props_c17/FurnitureShelf002a.mdl"
  54.         props[51] = "models/props_c17/FurnitureSink001a.mdl"
  55.         props[52] = "models/props_c17/furnitureStove001a.mdl"
  56.         props[53] = "models/props_c17/FurnitureTable001a.mdl"
  57.         props[54] = "models/props_c17/FurnitureTable002a.mdl"
  58.         props[55] = "models/props_c17/FurnitureTable003a.mdl"
  59.         props[56] = "models/props_c17/FurnitureToilet001a.mdl"
  60.         props[57] = "models/props_c17/FurnitureWashingmachine001a.mdl"
  61.         props[58] = "models/props_c17/GasPipes006a.mdl"
  62.         props[59] = "models/props_c17/gate_door01a.mdl"
  63.         props[60] = "models/props_c17/gate_door02a.mdl"
  64.         props[61] = "models/props_c17/gravestone001a.mdl"
  65.         props[62] = "models/props_c17/gravestone002a.mdl"
  66.         props[63] = "models/props_c17/gravestone003a.mdl"
  67.         props[64] = "models/props_c17/gravestone004a.mdl"
  68.         props[65] = "models/props_c17/gravestone_coffinpiece001a.mdl"
  69.         props[67] = "models/props_c17/gravestone_coffinpiece002a.mdl"
  70.         props[68] = "models/props_c17/gravestone_cross001a.mdl"
  71.         props[69] = "models/props_c17/gravestone_cross001b.mdl"
  72.         props[70] = "models/props_c17/gravestone_statue001a.mdl"
  73.         props[71] = "models/props_c17/lampShade001a.mdl"
  74.         props[72] = "models/props_c17/Lockers001a.mdl"
  75.         props[73] = "models/props_c17/metalladder001.mdl"
  76.         props[74] = "models/props_c17/metalladder002.mdl"
  77.         props[75] = "models/props_c17/metalladder002b.mdl"
  78.         props[76] = "models/props_c17/metalladder003.mdl"
  79.         props[77] = "models/props_c17/oildrum001.mdl"
  80.         props[78] = "models/props_c17/oildrum001_explosive.mdl"
  81.         props[79] = "models/props_c17/pulleyhook01.mdl"
  82.         props[80] = "models/props_c17/pulleywheels_small01.mdl"
  83.         props[81] = "models/props_c17/pulleywheels_large01.mdl"
  84.         props[82] = "models/props_c17/shelfunit01a.mdl"
  85.         props[83] = "models/props_c17/signpole001.mdl"
  86.         props[84] = "models/props_c17/TrapPropeller_Blade.mdl"
  87.         props[85] = "models/props_c17/utilitypole01a.mdl"
  88.         props[86] = "models/props_c17/utilitypole01b.mdl"
  89.         props[87] = "models/props_c17/utilitypole01d.mdl"
  90.         props[88] = "models/props_c17/utilitypole02b.mdl"
  91.         props[89] = "models/props_c17/utilitypole03a.mdl"
  92.         props[90] = "models/props_c17/elevator01.mdl"
  93.         props[91] = "models/props_canal/bridge_pillar02.mdl"
  94.         props[92] = "models/props_canal/canal_bridge01.mdl"
  95.         props[93] = "models/props_canal/canal_bridge02.mdl"
  96.         props[94] = "models/props_canal/canal_bridge03a.mdl"
  97.         props[95] = "models/props_canal/canal_bridge03b.mdl"
  98.         props[96] = "models/props_canal/canal_bridge04.mdl"
  99.         props[97] = "models/props_canal/canal_cap001.mdl"
  100.         props[98] = "models/props_citizen_tech/windmill_blade002a.mdl"
  101.         props[99] = "models/props_citizen_tech/windmill_blade004a.mdl"
  102.         props[100] = "models/props_combine/breenchair.mdl"
  103.         props[101] = "models/props_combine/breendesk.mdl"
  104.         props[102] = "models/props_combine/breenglobe.mdl"
  105.         props[103] = "models/props_combine/combine_barricade_short02a.mdl"
  106.         props[104] = "models/props_combine/combine_bridge_b.mdl"
  107.         props[105] = "models/props_combine/combine_fence01a.mdl"
  108.         props[106] = "models/props_combine/combine_fence01b.mdl"
  109.         props[107] = "models/props_combine/combine_window001.mdl"
  110.         props[108] = "models/props_combine/headcrabcannister01a.mdl"
  111.         props[109] = "models/props_combine/weaponstripper.mdl"
  112.         props[110] = "models/props_debris/metal_panel01a.mdl"
  113.         props[111] = "models/props_debris/metal_panel02a.mdl"
  114.         props[112] = "models/props_docks/channelmarker_gib01.mdl"
  115.         props[113] = "models/props_docks/channelmarker_gib02.mdl"
  116.         props[114] = "models/props_docks/channelmarker_gib03.mdl"
  117.         props[115] = "models/props_docks/channelmarker_gib04.mdl"
  118.         props[116] = "models/props_docks/dock01_cleat01a.mdl"
  119.         props[117] = "models/props_docks/dock01_pole01a_128.mdl"
  120.         props[118] = "models/props_docks/dock01_pole01a_256.mdl"
  121.         props[119] = "models/props_docks/dock02_pole02a.mdl"
  122.         props[120] = "models/props_docks/dock02_pole02a_256.mdl"
  123.         props[121] = "models/props_docks/dock03_pole01a.mdl"
  124.         props[122] = "models/props_docks/dock03_pole01a_256.mdl"
  125.         props[123] = "models/props_doors/door03_slotted_left.mdl"
  126.         props[124] = "models/props_foliage/tree_poplar_01.mdl"
  127.         props[125] = "models/props_interiors/BathTub01a.mdl"
  128.         props[126] = "models/props_interiors/ElevatorShaft_Door01a.mdl"
  129.         props[127] = "models/props_interiors/Furniture_chair01a.mdl"
  130.         props[128] = "models/props_interiors/Furniture_chair03a.mdl"
  131.         props[129] = "models/props_interiors/Furniture_Couch01a.mdl"
  132.         props[130] = "models/props_interiors/Furniture_Couch02a.mdl"
  133.         props[131] = "models/props_interiors/Furniture_Desk01a.mdl"
  134.         props[132] = "models/props_interiors/Furniture_Lamp01a.mdl"
  135.         props[133] = "models/props_interiors/Furniture_shelf01a.mdl"
  136.         props[134] = "models/props_interiors/Furniture_Vanity01a.mdl"
  137.         props[135] = "models/props_interiors/pot01a.mdl"
  138.         props[136] = "models/props_interiors/pot02a.mdl"
  139.         props[137] = "models/props_interiors/Radiator01a.mdl"
  140.         props[138] = "models/props_interiors/refrigerator01a.mdl"
  141.         props[139] = "models/props_interiors/refrigeratorDoor01a.mdl"
  142.         props[140] = "models/props_interiors/refrigeratorDoor02a.mdl"
  143.         props[141] = "models/props_interiors/SinkKitchen01a.mdl"
  144.         props[142] = "models/props_interiors/VendingMachineSoda01a.mdl"
  145.         props[143] = "models/props_interiors/VendingMachineSoda01a_door.mdl"
  146.         props[144] = "models/props_junk/cardboard_box001a.mdl"
  147.         props[145] = "models/props_junk/cardboard_box001a_gib01.mdl"
  148.         props[146] = "models/props_junk/cardboard_box001b.mdl"
  149.         props[147] = "models/props_junk/cardboard_box002a.mdl"
  150.         props[148] = "models/props_junk/cardboard_box002a_gib01.mdl"
  151.         props[149] = "models/props_junk/cardboard_box002b.mdl"
  152.         props[150] = "models/props_junk/cardboard_box003a.mdl"
  153.         props[151] = "models/props_junk/cardboard_box003a_gib01.mdl"
  154.         props[152] = "models/props_junk/cardboard_box003b.mdl"
  155.         props[153] = "models/props_junk/cardboard_box003b_gib01.mdl"
  156.         props[154] = "models/props_junk/cardboard_box004a.mdl"
  157.         props[155] = "models/props_junk/cardboard_box004a_gib01.mdl"
  158.         props[156] = "models/props_junk/CinderBlock01a.mdl"
  159.         props[157] = "models/props_junk/gascan001a.mdl"
  160.         props[158] = "models/props_junk/harpoon002a.mdl"
  161.         props[159] = "models/props_junk/iBeam01a_cluster01.mdl"
  162.         props[160] = "models/props_junk/iBeam01a.mdl"
  163.         props[161] = "models/props_junk/meathook001a.mdl"
  164.         props[162] = "models/props_junk/metal_paintcan001a.mdl"
  165.         props[163] = "models/props_junk/MetalBucket01a.mdl"
  166.         props[164] = "models/props_junk/MetalBucket02a.mdl"
  167.         props[165] = "models/props_junk/metalgascan.mdl"
  168.         props[166] = "models/props_junk/plasticbucket001a.mdl"
  169.         props[167] = "models/props_junk/PlasticCrate01a.mdl"
  170.         props[168] = "models/props_junk/PopCan01a.mdl"
  171.         props[169] = "models/props_junk/propane_tank001a.mdl"
  172.         props[170] = "models/props_junk/PropaneCanister001a.mdl"
  173.         props[171] = "models/props_junk/PushCart01a.mdl"
  174.         props[172] = "models/props_junk/ravenholmsign.mdl"
  175.         props[173] = "models/props_junk/sawblade001a.mdl"
  176.         props[174] = "models/props_junk/TrashBin01a.mdl"
  177.         props[175] = "models/props_junk/TrafficCone001a.mdl"
  178.         props[176] = "models/props_junk/TrashDumpster02b.mdl"
  179.         props[177] = "models/props_junk/TrashDumpster01a.mdl"
  180.         props[178] = "models/props_junk/TrashDumpster02.mdl"
  181.         props[179] = "models/props_junk/wood_crate001a.mdl"
  182.         props[180] = "models/props_junk/wood_crate002a.mdl"
  183.         props[181] = "models/props_junk/wood_pallet001a.mdl"
  184.         props[182] = "models/props_lab/blastdoor001a.mdl"
  185.         props[183] = "models/props_lab/blastdoor001b.mdl"
  186.         props[184] = "models/props_lab/blastdoor001c.mdl"
  187.         props[185] = "models/props_lab/filecabinet02.mdl"
  188.         props[186] = "models/props_lab/kennel_physics.mdl"
  189.         props[187] = "models/props_lab/lockerdoorleft.mdl"
  190.         props[188] = "models/props_trainstation/BenchOutdoor01a.mdl"
  191.         props[189] = "models/props_trainstation/bench_indoor001a.mdl"
  192.         props[190] = "models/props_trainstation/Ceiling_Arch001a.mdl"
  193.         props[191] = "models/props_trainstation/clock01.mdl"
  194.         props[192] = "models/props_trainstation/Column_Arch001a.mdl"
  195.         props[193] = "models/props_trainstation/mount_connection001a.mdl"
  196.         props[194] = "models/props_trainstation/pole_448Connection001a.mdl"
  197.         props[195] = "models/props_trainstation/pole_448Connection002b.mdl"
  198.         props[196] = "models/props_trainstation/TrackSign01.mdl"
  199.         props[197] = "models/props_trainstation/TrackSign02.mdl"
  200.         props[198] = "models/props_trainstation/TrackSign03.mdl"
  201.         props[199] = "models/props_trainstation/TrackSign07.mdl"
  202.         props[200] = "models/props_trainstation/TrackSign08.mdl"
  203.         props[201] = "models/props_trainstation/TrackSign09.mdl"
  204.         props[202] = "models/props_trainstation/TrackSign10.mdl"
  205.         props[203] = "models/props_trainstation/traincar_rack001.mdl"
  206.         props[204] = "models/props_trainstation/trainstation_arch001.mdl"
  207.         props[205] = "models/props_trainstation/trainstation_clock001.mdl"
  208.         props[206] = "models/props_trainstation/trainstation_column001.mdl"
  209.         props[207] = "models/props_trainstation/trainstation_ornament001.mdl"
  210.         props[208] = "models/props_trainstation/trainstation_ornament002.mdl"
  211.         props[209] = "models/props_trainstation/trainstation_post001.mdl"
  212.         props[210] = "models/props_trainstation/trashcan_indoor001a.mdl"
  213.         props[211] = "models/props_trainstation/trashcan_indoor001b.mdl"
  214.         props[212] = "models/props_trainstation/trainstation_roofdebris02.mdl"
  215.         props[213] = "models/props_vehicles/tire001a_tractor.mdl"
  216.         props[214] = "models/props_vehicles/tire001b_truck.mdl"
  217.         props[215] = "models/props_vehicles/tire001c_car.mdl"
  218.         props[216] = "models/props_vehicles/apc_tire001.mdl"
  219.         props[217] = "models/props_wasteland/barricade001a.mdl"
  220.         props[218] = "models/props_wasteland/barricade002a.mdl"
  221.         props[219] = "models/props_wasteland/buoy01.mdl"
  222.         props[220] = "models/props_wasteland/cafeteria_bench001a.mdl"
  223.         props[221] = "models/props_wasteland/cafeteria_table001a.mdl"
  224.         props[222] = "models/props_wasteland/controlroom_desk001a.mdl"
  225.         props[223] = "models/props_wasteland/controlroom_filecabinet001a.mdl"
  226.         props[224] = "models/props_wasteland/controlroom_chair001a.mdl"
  227.         props[225] = "models/props_wasteland/controlroom_desk001b.mdl"
  228.         props[226] = "models/props_wasteland/controlroom_filecabinet002a.mdl"
  229.         props[227] = "models/props_wasteland/controlroom_storagecloset001a.mdl"
  230.         props[228] = "models/props_wasteland/controlroom_storagecloset001b.mdl"
  231.         props[229] = "models/props_wasteland/coolingtank02.mdl"
  232.         props[230] = "models/props_wasteland/cranemagnet01a.mdl"
  233.         props[231] = "models/props_wasteland/dockplank01a.mdl"
  234.         props[232] = "models/props_wasteland/dockplank01b.mdl"
  235.         props[233] = "models/props_wasteland/gaspump001a.mdl"
  236.         props[234] = "models/props_wasteland/horizontalcoolingtank04.mdl"
  237.         props[235] = "models/props_wasteland/interior_fence001g.mdl"
  238.         props[236] = "models/props_wasteland/interior_fence002d.mdl"
  239.         props[237] = "models/props_wasteland/interior_fence002e.mdl"
  240.         props[238] = "models/props_wasteland/kitchen_counter001b.mdl"
  241.         props[239] = "models/props_wasteland/kitchen_counter001d.mdl"
  242.         props[240] = "models/props_wasteland/kitchen_shelf002a.mdl"
  243.         props[241] = "models/props_wasteland/kitchen_shelf001a.mdl"
  244.         props[242] = "models/props_wasteland/kitchen_fridge001a.mdl"
  245.         props[243] = "models/props_wasteland/kitchen_counter001c.mdl"
  246.         props[244] = "models/props_wasteland/kitchen_counter001a.mdl"
  247.         props[245] = "models/props_wasteland/kitchen_stove001a.mdl"
  248.         props[246] = "models/props_wasteland/kitchen_stove002a.mdl"
  249.         props[247] = "models/props_wasteland/laundry_basket001.mdl"
  250.         props[248] = "models/props_wasteland/laundry_cart001.mdl"
  251.         props[249] = "models/props_wasteland/laundry_cart002.mdl"
  252.         props[250] = "models/props_wasteland/laundry_dryer001.mdl"
  253.         props[251] = "models/props_wasteland/laundry_dryer002.mdl"
  254.         props[252] = "models/props_wasteland/laundry_washer001a.mdl"
  255.         props[253] = "models/props_wasteland/laundry_washer003.mdl"
  256.         props[254] = "models/props_wasteland/light_spotlight01_lamp.mdl"
  257.         props[255] = "models/props_wasteland/medbridge_base01.mdl"
  258.         props[256] = "models/props_wasteland/medbridge_post01.mdl"
  259.         props[257] = "models/props_wasteland/medbridge_strut01.mdl"
  260.         props[258] = "models/props_wasteland/panel_leverHandle001a.mdl"
  261.         props[259] = "models/props_wasteland/prison_bedframe001b.mdl"
  262.         props[260] = "models/props_wasteland/prison_celldoor001b.mdl"
  263.         props[261] = "models/props_wasteland/prison_heater001a.mdl"
  264.         props[262] = "models/props_wasteland/prison_lamp001c.mdl"
  265.         props[263] = "models/props_wasteland/prison_shelf002a.mdl"
  266.         props[264] = "models/props_wasteland/wheel01.mdl"
  267.         props[265] = "models/props_wasteland/wheel01a.mdl"
  268.         props[266] = "models/props_wasteland/wheel02a.mdl"
  269.         props[267] = "models/props_wasteland/wheel02b.mdl"
  270.         props[268] = "models/props_wasteland/wheel03a.mdl"
  271.        
  272.         local MenuFrame = vgui.Create("DFrame")
  273.         local IconList = vgui.Create("DPanelList", MenuFrame)
  274.         local UnderNote = vgui.Create("DLabel", MenuFrame)
  275.        
  276.                 MenuFrame:Center()
  277.                 MenuFrame:SetSize(506,410)
  278.                 MenuFrame:SetTitle("Prop Catalog")
  279.                 MenuFrame:MakePopup()
  280.              
  281.                 IconList:EnableVerticalScrollbar( true )
  282.                 IconList:EnableHorizontal( true )
  283.                 IconList:SetPadding( 4 )
  284.                 IconList:SetPos(3,25)
  285.                 IconList:SetSize(500,350)
  286.                
  287.                 UnderNote:SetText( "Use the menu above to spawn the props of your choice." )
  288.                 UnderNote:SetPos(3, 377.5)
  289.                 UnderNote:SetSize(500, 30)
  290.              
  291.                 for k,v in pairs(props) do
  292.                 local icon = vgui.Create( "SpawnIcon", IconList )
  293.                 icon:SetModel( v )
  294.                 IconList:AddItem( icon )
  295.                 icon.DoClick = function( icon ) surface.PlaySound( "ui/buttonclickrelease.wav" ) LocalPlayer():ConCommand("gm_spawn", v) end
  296.                                                 end
  297. end
  298. concommand.Add("slist", proplist)
  299.                  
  300. function GM:OnSpawnMenuOpen( ply )
  301. LocalPlayer():ConCommand("slist")
  302. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement