#Prop to holo export "dicks" on the 8th of February, 2015

#Put this chunk inside some place like if(first()) where it runs only once
@persist P2HI P2HOI P2HC P2HScale P2HBase:entity P2HTable:table
P2HC = 90
P2HTI = 0
P2HOI = 0
P2HBase = entity() #Change to whatever entity you wish
P2HScale = 1 #Change to whatever scale you'd like your export to be in
#Model, Material, Skin, Color, Position, and Angle (both position and angle are relative to base)
P2HTable[1, array] = array("models/sprops/rectangles/size_1_5/rect_6x24x3.mdl", "models/props_canal/canal_bridge_railing_01c", 0, vec4(255,255,255,255), vec(-11.5721,-14.3517,36.2295), ang(0,-5,0))
P2HTable[2, array] = array("models/sprops/triangles_thin/right/size_3/t_rtri_36x36.mdl", "phoenix_storms/glass", 0, vec4(255,255,255,255), vec(0.8489,-20.3217,10.8701), ang(45.0002,-170.0012,-175.0018))
P2HTable[3, array] = array("models/props_c17/oildrum001.mdl", "models/props_canal/canal_bridge_railing_01c", 0, vec4(255,255,255,255), vec(-33.8345,-6.3489,2.918), ang(75,0,175))
P2HTable[4, array] = array("models/props_c17/canister_propane01a.mdl", "models/props_canal/canal_bridge_railing_01c", 0, vec4(255,255,255,255), vec(38.0516,-19.1956,-3.957), ang(-80.0001,4.9926,10.0075))
P2HTable[5, array] = array("models/sprops/rectangles/size_3_5/rect_30x36x3.mdl", "models/props_canal/canal_bridge_railing_01c", 0, vec4(255,255,255,255), vec(-17.2161,0.1042,36.251), ang(0,0,0))
P2HTable[6, array] = array("models/combine_helicopter/helicopter_bomb01.mdl", "models/props_canal/canal_bridge_railing_01c", 0, vec4(255,255,255,255), vec(-33.8839,-1.3752,22.3916), ang(0,105,-5))
P2HTable[7, array] = array("models/xqm/rails/gumball_1.mdl", "models/props_canal/canal_bridge_railing_01c", 0, vec4(255,255,255,255), vec(-25.291,0.2591,-3.4062), ang(0,0,0))
P2HTable[8, array] = array("models/sprops/rectangles_thin/size_2_5/rect_18x36x1_5.mdl", "phoenix_storms/glass", 0, vec4(255,255,255,255), vec(-20.6761,-19.3349,26.4648), ang(0.0001,-5,70.0013))
P2HTable[9, array] = array("models/sprops/rectangles/size_1/rect_3x36x3.mdl", "models/props_canal/canal_bridge_railing_01c", 0, vec4(255,255,255,255), vec(-15.0162,16.4196,36.2666), ang(-0.0001,5,0.0013))
P2HTable[10, array] = array("models/props_phx/wheels/magnetic_medium.mdl", "models/props_canal/canal_bridge_railing_01c", 0, vec4(255,255,255,255), vec(-95.2305,-29.0635,14.0889), ang(10,5,-10))
P2HTable[11, array] = array("models/combine_helicopter/helicopter_bomb01.mdl", "models/props_canal/canal_bridge_railing_01c", 0, vec4(255,255,255,255), vec(-33.8839,1.372,22.3916), ang(0.0013,-105,4.9997))
P2HTable[12, array] = array("models/sprops/rectangles/size_3/rect_24x36x3.mdl", "models/props_canal/canal_bridge_railing_01c", 0, vec4(255,255,255,255), vec(-17.7489,-0.0454,12.5518), ang(0,-90,115))
P2HTable[13, array] = array("models/xqm/jettailpiece1medium.mdl", "models/props_canal/canal_bridge_railing_01c", 0, vec4(255,255,255,255), vec(-163.3107,36.9593,43.2305), ang(69.9989,124.9979,34.9978))
P2HTable[14, array] = array("models/xqm/jettailpiece1.mdl", "models/props_canal/canal_bridge_railing_01c", 0, vec4(255,255,255,255), vec(-177.2592,8.8607,51.3223), ang(29.9987,94.9999,-5.0001))
P2HTable[15, array] = array("models/props_c17/canister_propane01a.mdl", "models/props_canal/canal_bridge_railing_01c", 0, vec4(255,255,255,255), vec(14.0981,20.9138,-7.2305), ang(-50,85,-80))
P2HTable[16, array] = array("models/props_c17/oildrum001.mdl", "models/props_canal/canal_bridge_railing_01c", 0, vec4(255,255,255,255), vec(-100.7555,-9.6266,25.8535), ang(-65,-95,85))
P2HTable[17, array] = array("models/sprops/rectangles_thin/size_2_5/rect_18x36x1_5.mdl", "phoenix_storms/glass", 0, vec4(255,255,255,255), vec(-20.6761,19.3317,26.4648), ang(0,5,-70))
P2HTable[18, array] = array("models/xqm/afterburner1.mdl", "models/props_canal/canal_bridge_railing_01b", 0, vec4(255,255,255,255), vec(-93.2756,-25.2312,8.8691), ang(0,45,-180))
P2HTable[19, array] = array("models/sprops/rectangles/size_1_5/rect_6x24x3.mdl", "models/props_canal/canal_bridge_railing_01c", 0, vec4(255,255,255,255), vec(-11.5721,14.3482,36.2305), ang(-0.0001,5,0.0013))
P2HTable[20, array] = array("models/props_c17/oildrum001.mdl", "models/props_canal/canal_bridge_railing_01c", 0, vec4(255,255,255,255), vec(-75.1964,-11.6279,24.375), ang(89.9987,0,0))
P2HTable[21, array] = array("models/sprops/cuboids/height06/size_6/cube_36x60x6.mdl", "models/props_canal/canal_bridge_railing_01c", 0, vec4(255,255,255,255), vec(-30.1953,-0.0461,-6.9717), ang(-15,-180,0))
P2HTable[22, array] = array("models/props_c17/canister_propane01a.mdl", "models/props_canal/canal_bridge_railing_01c", 0, vec4(255,255,255,255), vec(14.0848,-21.0109,-7.3086), ang(-49.9987,-85.0001,80.0002))
P2HTable[23, array] = array("models/xqm/jettailpiece1medium.mdl", "models/props_canal/canal_bridge_railing_01c", 0, vec4(255,255,255,255), vec(-163.3106,-36.9627,43.2305), ang(-70,55,35))
P2HTable[24, array] = array("models/xqm/afterburner1.mdl", "models/props_canal/canal_bridge_railing_01b", 0, vec4(255,255,255,255), vec(-93.2725,25.2315,8.8701), ang(0.0009,-45,-179.9991))
P2HTable[25, array] = array("models/props_borealis/bluebarrel001.mdl", "models/props_canal/canal_bridge_railing_01c", 0, vec4(255,255,255,255), vec(-64.7052,-0.4954,27.9531), ang(-85.0003,14.9855,-14.9855))
P2HTable[26, array] = array("models/props_borealis/bluebarrel001.mdl", "models/props_canal/canal_bridge_railing_01c", 0, vec4(255,255,255,255), vec(-100.2319,-0.4017,30.2061), ang(-44.9987,-90,90))
P2HTable[27, array] = array("models/sprops/rectangles/size_1/rect_3x36x3.mdl", "models/props_canal/canal_bridge_railing_01c", 0, vec4(255,255,255,255), vec(-15.0162,-16.423,36.2666), ang(0,-5,0))
P2HTable[28, array] = array("models/props_c17/canister_propane01a.mdl", "models/props_canal/canal_bridge_railing_01c", 0, vec4(255,255,255,255), vec(-2.3459,-37.5499,1.165), ang(-59.9998,-10.0022,-24.9974))
P2HTable[29, array] = array("models/props_borealis/bluebarrel001.mdl", "models/props_canal/canal_bridge_railing_01c", 0, vec4(255,255,255,255), vec(-64.7052,0.4768,27.9531), ang(-85,-15,15))
P2HTable[30, array] = array("models/props_trainstation/trainstation_ornament002.mdl", "models/props_canal/canal_bridge_railing_01c", 0, vec4(255,255,255,255), vec(-93.828,20.8207,13.9189), ang(19.9987,85,0.0001))
P2HTable[31, array] = array("models/props_c17/canister_propane01a.mdl", "models/props_canal/canal_bridge_railing_01c", 0, vec4(255,255,255,255), vec(-23.0969,10.2116,8.8193), ang(-84.9998,-10.0147,10.0148))
P2HTable[32, array] = array("models/sprops/triangles_thin/right/size_3/t_rtri_36x36.mdl", "phoenix_storms/glass", 0, vec4(255,255,255,255), vec(0.8489,20.3188,10.8701), ang(45,170,175))
P2HTable[33, array] = array("models/props_borealis/bluebarrel001.mdl", "models/props_canal/canal_bridge_railing_01c", 0, vec4(255,255,255,255), vec(-98.2073,-7.9231,21.0059), ang(70,-140,45))
P2HTable[34, array] = array("models/combine_helicopter/helicopter_bomb01.mdl", "models/props_canal/canal_bridge_railing_01c", 0, vec4(255,255,255,255), vec(-146.3981,0.1656,27.4063), ang(0,-100,-5))
P2HTable[35, array] = array("models/props_c17/oildrum001.mdl", "models/props_canal/canal_bridge_railing_01c", 0, vec4(255,255,255,255), vec(-75.1964,11.6247,24.376), ang(90,0,0))
P2HTable[36, array] = array("models/props_borealis/bluebarrel001.mdl", "models/props_canal/canal_bridge_railing_01c", 0, vec4(255,255,255,255), vec(-100.2319,0.3875,30.2168), ang(-45,90,-90))
P2HTable[37, array] = array("models/props_c17/oildrum001.mdl", "models/props_canal/canal_bridge_railing_01c", 0, vec4(255,255,255,255), vec(-73.2309,11.6752,24.499), ang(-84.9993,-30.0129,35.013))
P2HTable[38, array] = array("models/props_borealis/bluebarrel001.mdl", "models/props_canal/canal_bridge_railing_01c", 0, vec4(255,255,255,255), vec(-98.2081,7.9348,21.0098), ang(69.9991,139.9972,-45.0029))
P2HTable[39, array] = array("models/props_phx/wheels/magnetic_medium.mdl", "models/props_canal/canal_bridge_railing_01c", 0, vec4(255,255,255,255), vec(-95.23,29.0655,14.0889), ang(10.0001,-4.9998,10.0013))
P2HTable[40, array] = array("models/props_trainstation/trainstation_ornament002.mdl", "models/props_canal/canal_bridge_railing_01c", 0, vec4(255,255,255,255), vec(-93.828,-20.8237,13.9189), ang(20,-85,0))
P2HTable[41, array] = array("models/props_c17/canister_propane01a.mdl", "models/props_canal/canal_bridge_railing_01c", 0, vec4(255,255,255,255), vec(-2.282,37.4449,1.1396), ang(-60,10,25))
P2HTable[42, array] = array("models/xqm/wingpiece2.mdl", "models/props_canal/canal_bridge_railing_01c", 0, vec4(255,255,255,255), vec(16.8531,57.7459,6.0322), ang(-0.0001,175,-0.0013))
P2HTable[43, array] = array("models/props_c17/oildrum001.mdl", "models/props_canal/canal_bridge_railing_01c", 0, vec4(255,255,255,255), vec(-33.8345,6.3462,2.918), ang(75,0.0049,-174.9949))
P2HTable[44, array] = array("models/props_c17/canister_propane01a.mdl", "models/props_canal/canal_bridge_railing_01c", 0, vec4(255,255,255,255), vec(38.02,19.0738,-3.9521), ang(-80,-5,-10))
P2HTable[45, array] = array("models/xqm/jettailpiece1.mdl", "models/props_canal/canal_bridge_railing_01c", 0, vec4(255,255,255,255), vec(-177.2592,-8.8646,51.3203), ang(-30,85,-5))
P2HTable[46, array] = array("models/props_c17/canister_propane01a.mdl", "models/props_canal/canal_bridge_railing_01c", 0, vec4(255,255,255,255), vec(-23.0969,-10.3379,8.8213), ang(-85,10,-10))
P2HTable[47, array] = array("models/props_c17/canister_propane01a.mdl", "models/props_canal/canal_bridge_railing_01c", 0, vec4(255,255,255,255), vec(-24.2556,22.9461,9.3643), ang(-85.0003,14.9855,-9.9854))
P2HTable[48, array] = array("models/props_c17/oildrum001.mdl", "models/props_canal/canal_bridge_railing_01c", 0, vec4(255,255,255,255), vec(-140.8572,-0.0685,34.7793), ang(90,180,0))
P2HTable[49, array] = array("models/props_c17/oildrum001.mdl", "models/props_canal/canal_bridge_railing_01c", 0, vec4(255,255,255,255), vec(-73.2309,-11.6784,24.499), ang(-85,29.9999,-34.9999))
P2HTable[50, array] = array("models/props_c17/canister_propane01a.mdl", "models/props_canal/canal_bridge_railing_01c", 0, vec4(255,255,255,255), vec(-24.2665,-23.0719,9.3623), ang(-85,-15,10))
P2HTable[51, array] = array("models/props_c17/oildrum001.mdl", "models/props_canal/canal_bridge_railing_01c", 0, vec4(255,255,255,255), vec(-100.7555,9.6234,25.8535), ang(-65.0013,95.0002,-85.0002))
P2HTable[52, array] = array("models/xqm/wingpiece2.mdl", "models/props_canal/canal_bridge_railing_01c", 0, vec4(255,255,255,255), vec(16.8511,-57.7488,6.0303), ang(0,5,0))
P2HTable[53, array] = array("models/sprops/rectangles/size_2_5/rect_18x30x3.mdl", "models/props_canal/canal_bridge_railing_01c", 0, vec4(255,255,255,255), vec(39.363,0.1381,-13.6035), ang(0,-90,-150))
P2HTable[54, array] = array("models/combine_helicopter/helicopter_bomb01.mdl", "models/props_canal/canal_bridge_railing_01c", 0, vec4(255,255,255,255), vec(34.8866,-11.7479,-3.5732), ang(0,5,0))
P2HTable[55, array] = array("models/props_junk/popcan01a.mdl", "models/props_canal/canal_bridge_railing_01c", 0, vec4(255,255,255,255), vec(34.1938,-73.648,7.9629), ang(55,170,115))
P2HTable[56, array] = array("models/sprops/cylinders/size_5/cylinder_12x18.mdl", "models/props_canal/canal_bridge_railing_01c", 0, vec4(255,255,255,255), vec(46.4839,0.0279,-5.415), ang(-90,90,0))
P2HTable[57, array] = array("models/props_junk/popcan01a.mdl", "models/props_canal/canal_bridge_railing_01c", 0, vec4(255,255,255,255), vec(34.2694,-74.468,5.0371), ang(-85,-60,125))
P2HTable[58, array] = array("models/sprops/rectangles/size_1_5/rect_6x24x3.mdl", "models/props_canal/canal_bridge_railing_01c", 0, vec4(255,255,255,255), vec(-0.4172,-0.4164,36.2998), ang(0,90,0))
P2HTable[59, array] = array("models/props_wasteland/light_spotlight01_lamp.mdl", "", 0, vec4(255,255,255,255), vec(47.9774,-15.8423,-1.3594), ang(0,0,10.0013))
P2HTable[60, array] = array("models/sprops/rectangles/size_1/rect_3x36x3.mdl", "models/props_canal/canal_bridge_railing_01c", 0, vec4(255,255,255,255), vec(14.624,-16.9576,24.0596), ang(45,5,0))
P2HTable[61, array] = array("models/sprops/rectangles/size_1/rect_3x30x3.mdl", "models/props_canal/canal_bridge_railing_01c", 0, vec4(255,255,255,255), vec(26.9576,-2.2972,10.9063), ang(0,90,0))
P2HTable[62, array] = array("models/sprops/cuboids/height06/size_5/cube_30x36x6.mdl", "models/props_canal/canal_bridge_railing_01c", 0, vec4(255,255,255,255), vec(14.627,-0.722,-14.377), ang(0,180,0))
P2HTable[63, array] = array("models/props_lab/citizenradio.mdl", "models/props_canal/canal_bridge_railing_01c", 0, vec4(255,255,255,255), vec(32.2843,-0.0767,-5.1787), ang(0,180,0))
P2HTable[64, array] = array("models/props_junk/popcan01a.mdl", "models/props_canal/canal_bridge_railing_01c", 0, vec4(255,255,255,255), vec(32.3188,-71.8045,7.7744), ang(-85,55,-5.0001))
P2HTable[65, array] = array("models/combine_helicopter/helicopter_bomb01.mdl", "models/props_canal/canal_bridge_railing_01c", 0, vec4(255,255,255,255), vec(34.8866,11.7454,-3.5732), ang(0.0001,-5,0.0013))
P2HTable[66, array] = array("models/props_phx/wheels/magnetic_medium.mdl", "models/props_canal/canal_bridge_railing_01c", 0, vec4(255,255,255,255), vec(17.386,-76.8977,3.0537), ang(-7.2861,-89.6148,0.2065))
P2HTable[67, array] = array("models/sprops/rectangles/size_1/rect_3x12x3.mdl", "models/props_canal/canal_bridge_railing_01c", 0, vec4(255,255,255,255), vec(3.434,0.011,36.3027), ang(0,90,0))
P2HTable[68, array] = array("models/sprops/rectangles/size_2/rect_12x24x3.mdl", "models/props_canal/canal_bridge_railing_01c", 0, vec4(255,255,255,255), vec(51.7407,0.0594,0.0322), ang(0,-90,-75))
P2HTable[69, array] = array("models/props_junk/popcan01a.mdl", "models/props_canal/canal_bridge_railing_01c", 0, vec4(255,255,255,255), vec(33.8728,-74.8243,6.4824), ang(-35,-20,80))
P2HTable[70, array] = array("models/props_trainstation/trainstation_ornament002.mdl", "models/props_canal/canal_bridge_railing_01c", 0, vec4(255,255,255,255), vec(16.8445,-77.3684,3.1338), ang(-0.0015,8.6254,0.0015))
P2HTable[71, array] = array("models/xqm/afterburner1.mdl", "models/props_canal/canal_bridge_railing_01b", 0, vec4(255,255,255,255), vec(17.3016,-77.2043,-1.6553), ang(0,-179.9999,179.998))
P2HTable[72, array] = array("models/sprops/rectangles/size_1/rect_3x12x3.mdl", "models/props_canal/canal_bridge_railing_01c", 0, vec4(255,255,255,255), vec(2.4233,10.4156,36.3037), ang(0.0013,-80,0.0002))
P2HTable[73, array] = array("models/sprops/rectangles/size_1/rect_3x36x3.mdl", "models/props_canal/canal_bridge_railing_01c", 0, vec4(255,255,255,255), vec(14.624,16.9544,24.0596), ang(45.0001,-4.9987,0.0019))
P2HTable[74, array] = array("models/sprops/rectangles/size_2/rect_12x36x3.mdl", "phoenix_storms/glass", 0, vec4(255,255,255,255), vec(17.4116,0.0703,22.9033), ang(45,0,0))
P2HTable[75, array] = array("models/sprops/rectangles/size_2/rect_12x36x3.mdl", "phoenix_storms/glass", 0, vec4(255,255,255,255), vec(16.6804,9.7357,22.7031), ang(45.0001,-4.9987,-9.9982))
P2HTable[76, array] = array("models/sprops/rectangles/size_2/rect_12x36x3.mdl", "phoenix_storms/glass", 0, vec4(255,255,255,255), vec(16.6804,-9.7389,22.7031), ang(45,5,10))
P2HTable[77, array] = array("models/props_junk/popcan01a.mdl", "models/props_canal/canal_bridge_railing_01c", 0, vec4(255,255,255,255), vec(34.0005,-69.9338,7.6064), ang(-70,-115,75))
P2HTable[78, array] = array("models/sprops/rectangles/size_2_5/rect_18x24x3.mdl", "models/props_canal/canal_bridge_railing_01c", 0, vec4(255,255,255,255), vec(39.6605,8.2944,7.8516), ang(-15,-179.9996,179.9986))
P2HTable[79, array] = array("models/sprops/rectangles/size_1/rect_3x12x3.mdl", "models/props_canal/canal_bridge_railing_01c", 0, vec4(255,255,255,255), vec(2.4233,-10.4191,36.3037), ang(0,80,0))
P2HTable[80, array] = array("models/sprops/rectangles/size_2_5/rect_18x24x3.mdl", "models/props_canal/canal_bridge_railing_01c", 0, vec4(255,255,255,255), vec(39.6605,-8.2972,7.8516), ang(-15,-180,-180))
P2HTable[81, array] = array("models/props_wasteland/light_spotlight01_lamp.mdl", "", 0, vec4(255,255,255,255), vec(47.9774,15.8958,-1.3691), ang(0,0,-10))
P2HTable[82, array] = array("models/sprops/rectangles/size_1/rect_3x30x3.mdl", "models/props_canal/canal_bridge_railing_01c", 0, vec4(255,255,255,255), vec(26.9576,2.2943,10.9063), ang(0.0013,-90,0))
P2HTable[83, array] = array("models/props_junk/popcan01a.mdl", "models/props_canal/canal_bridge_railing_01c", 0, vec4(255,255,255,255), vec(34.1977,73.6485,7.9619), ang(55.0002,-170.0019,-115.0023))
P2HTable[84, array] = array("models/props_junk/popcan01a.mdl", "models/props_canal/canal_bridge_railing_01c", 0, vec4(255,255,255,255), vec(33.8756,74.8236,6.4775), ang(-35.0005,19.9991,-79.9985))
P2HTable[85, array] = array("models/xqm/afterburner1.mdl", "models/props_canal/canal_bridge_railing_01b", 0, vec4(255,255,255,255), vec(17.3016,77.1974,-1.6523), ang(0,179.9999,-179.9993))
P2HTable[86, array] = array("models/props_phx/wheels/magnetic_medium.mdl", "models/props_canal/canal_bridge_railing_01c", 0, vec4(255,255,255,255), vec(17.3811,76.895,3.0566), ang(-7.2874,89.6148,-0.2065))
P2HTable[87, array] = array("models/props_trainstation/trainstation_ornament002.mdl", "models/props_canal/canal_bridge_railing_01c", 0, vec4(255,255,255,255), vec(16.8445,77.3656,3.1367), ang(-0.0013,-8.6254,-0.0002))
P2HTable[88, array] = array("models/props_junk/popcan01a.mdl", "models/props_canal/canal_bridge_railing_01c", 0, vec4(255,255,255,255), vec(32.3234,71.8055,7.7764), ang(-84.9989,-55.0086,5.0087))
P2HTable[89, array] = array("models/props_junk/popcan01a.mdl", "models/props_canal/canal_bridge_railing_01c", 0, vec4(255,255,255,255), vec(33.9968,69.9352,7.6045), ang(-70.0012,115.0015,-75.0016))
P2HTable[90, array] = array("models/props_junk/popcan01a.mdl", "models/props_canal/canal_bridge_railing_01c", 0, vec4(255,255,255,255), vec(34.2748,74.4677,5.0391), ang(-85.0011,59.9924,-124.9924))

#Put this in a place that runs on an interval (i.e interval, runOnTick, timers, etc.)
if(P2HI < P2HC)
{
    while(perf() & holoCanCreate() & P2HI < P2HC)
    {
        P2HI++
        local TA = P2HTable[P2HI, array]
        local TI = P2HI + P2HOI

        holoCreate(TI, P2HBase:toWorld(TA[5, vector] * P2HScale), vec(P2HScale), P2HBase:toWorld(TA[6, angle] * P2HScale))
        holoModel(TI, TA[1, string])
        holoMaterial(TI, TA[2, string])
        holoSkin(TI, TA[3, number])
        holoColor(TI, TA[4, vector4])
        holoParent(TI, P2HBase)
    }
}

#[
General tips:
-If you wanna make a group of holograms to change their material and/or colors all together,...
make your props you want to group a certain material and then you can put in the while loop to...
add the holo index (TI) to an array if the material is such and print out the array once all the...
holos are generated, and then you can use that to your liking

-If you want to use multiple prop to holo exports in 1 e2, which is the reason I had redesigned...
this e2, use the find menu's replace tab to replace "P2H" with "P2H<1, 2, 3, etc.>"...
without the < and >, of course, and then copy the exoprt over
]#