SHARE
TWEET

mlo ytyp

Dekurwinator Jan 30th, 2019 334 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  2. <CMapTypes>
  3.   <extensions/>
  4.   <archetypes>
  5.     <Item type="CBaseArchetypeDef"><!-- you define here all custom objects, dont put here vanilla
  6. props names cuz they already exist inn their own ytyp -->
  7.       <lodDist value="117.24800000"/>
  8.       <flags value="0"/>
  9.       <specialAttribute value="0"/>
  10.       <bbMin x="-5.34940000" y="-10.00400000" z="-1.87535000"/>
  11.       <bbMax x="5.34940000" y="10.00400000" z="1.87535000"/>
  12.       <bsCentre x="0.00000024" y="0.00000048" z="-0.00000095"/>
  13.       <bsRadius value="11.49840000"/>
  14.       <hdTextureDist value="87.93570000"/>
  15.       <name>name_of_shell_here</name>
  16.       <textureDictionary>name_of_ytd_here</textureDictionary> <!-- if this object got embedded textures
  17.       leave <textureDictionary/> but if it got external or mixed put name of ytd -->
  18.       <clipDictionary/>
  19.       <drawableDictionary/>
  20.       <physicsDictionary/><!-- if this object got embedded collision put here name of it.
  21.       This object is shell so no collision-->
  22.       <assetType>ASSET_TYPE_DRAWABLE</assetType>
  23.       <assetName>name_of_shell_here</assetName>
  24.       <extensions/>
  25.     </Item>
  26.     <Item type="CMloArchetypeDef"><!-- this is defined collision to which will be attached
  27.     other props -->
  28.       <lodDist value="117.24800000"/>
  29.       <flags value="0"/>
  30.       <specialAttribute value="0"/>
  31.       <bbMin x="0.00000000" y="0.00000000" z="0.00000000"/>
  32.       <bbMax x="0.00000000" y="0.00000000" z="0.00000000"/>
  33.       <bsCentre x="0.00000000" y="0.00000000" z="0.00000000"/>
  34.       <bsRadius value="0.00000000"/>
  35.       <hdTextureDist value="5.00000000"/>
  36.       <name>interior_collision_name_here</name>
  37.       <textureDictionary/>
  38.       <clipDictionary/>
  39.       <drawableDictionary/>
  40.       <physicsDictionary>interior_collision_name_here</physicsDictionary>
  41.       <assetType>ASSET_TYPE_ASSETLESS</assetType>
  42.       <assetName>interior_collision_name_here</assetName>
  43.       <extensions/>
  44.       <mloFlags value="0"/>
  45.       <entities><!-- here will be defined all attached objects which everyone got own index which
  46.       starts from 0-->
  47.         <Item type="CEntityDef"><!-- this object is first of attached list so its index is 0 -->
  48.           <archetypeName>name_of_shell_here</archetypeName>
  49.           <flags value="1572864"/>
  50.           <guid value="0"/>
  51.           <position x="0.00000000" y="0.00000000" z="0.00000000"/>
  52.           <rotation x="0.00000000" y="0.00000000" z="0.00000000" w="1.00000000"/>
  53.           <scaleXY value="1.00000000"/>
  54.           <scaleZ value="1.00000000"/>
  55.           <parentIndex value="-1"/>
  56.           <lodDist value="200.00000000"/>
  57.           <childLodDist value="0.00000000"/>
  58.           <lodLevel>LODTYPES_DEPTH_ORPHANHD</lodLevel>
  59.           <numChildren value="0"/>
  60.           <priorityLevel>PRI_REQUIRED</priorityLevel>
  61.           <extensions/>
  62.           <ambientOcclusionMultiplier value="255"/>
  63.           <artificialAmbientOcclusion value="255"/>
  64.           <tintValue value="0"/>
  65.         </Item>
  66.         <Item type="CEntityDef"><!-- this object is second of attached list so its index is 1 -->
  67.           <archetypeName>name_of_attached_object</archetypeName>
  68.           <flags value="1572864"/>
  69.           <guid value="0"/>
  70.           <position x="0" y="0" z="0"/><!-- important thing about
  71.           position of attached objects - these coords are calculated from center of interior pivot,
  72.           not from centre of gtav map like for normal props -->
  73.           <rotation x="0.00000000" y="0.00000000" z="-0.95138620" w="-0.30800040"/>
  74.           <scaleXY value="1.00000000"/>
  75.           <scaleZ value="1.00000000"/>
  76.           <parentIndex value="-1"/>
  77.           <lodDist value="-1.00000000"/>
  78.           <childLodDist value="0.00000000"/>
  79.           <lodLevel>LODTYPES_DEPTH_ORPHANHD</lodLevel>
  80.           <numChildren value="0"/>
  81.           <priorityLevel>PRI_REQUIRED</priorityLevel>
  82.           <extensions/>
  83.           <ambientOcclusionMultiplier value="255"/>
  84.           <artificialAmbientOcclusion value="255"/>
  85.           <tintValue value="0"/>
  86.         </Item>
  87.         <Item type="CEntityDef"><!-- this object is third of attached list so its index is 2 -->
  88.           <archetypeName>name_of_attached_object</archetypeName>
  89.           <flags value="1572864"/>
  90.           <guid value="0"/>
  91.           <position x="0" y="0" z="0"/>
  92.           <rotation x="-0.00132733" y="-0.00043073" z="0.95102910" w="0.30909820"/>
  93.           <scaleXY value="1.00000000"/>
  94.           <scaleZ value="1.00000000"/>
  95.           <parentIndex value="-1"/>
  96.           <lodDist value="-1.00000000"/>
  97.           <childLodDist value="0.00000000"/>
  98.           <lodLevel>LODTYPES_DEPTH_ORPHANHD</lodLevel>
  99.           <numChildren value="0"/>
  100.           <priorityLevel>PRI_REQUIRED</priorityLevel>
  101.           <extensions/>
  102.           <ambientOcclusionMultiplier value="255"/>
  103.           <artificialAmbientOcclusion value="255"/>
  104.           <tintValue value="0"/>
  105.         </Item>
  106.         <!-- if you put here more objects to be attached it will have index +1, so next one
  107.         will have 3, next 4, next 5, 6,7,8,9,10,11, (...) ect ect -->
  108.       </entities>
  109.       <rooms>
  110.         <Item>
  111.           <name>limbo</name><!-- first is always limbo which is some kind boundary of MLO instance
  112.           inside which is visible interior but not exterior and to make it visible need to define
  113.           exit portal-->
  114.           <bbMin x="-6.34940000" y="-11.00400000" z="-2.87535000"/>
  115.           <bbMax x="6.34940000" y="11.00400000" z="2.87535000"/><!-- if interior is with only one room
  116.           im put boundaries of shell here -->
  117.           <blend value="1.00000000"/>
  118.           <timecycleName/>
  119.           <secondaryTimecycleName/>
  120.           <flags value="96"/>
  121.           <portalCount value="3"/><!-- here is number of all exit portals and this number you need
  122.           to put inside ymap -->
  123.           <floorId value="0"/>
  124.           <exteriorVisibiltyDepth value="-1"/>
  125.           <attachedObjects content="int_array">
  126.             0 <!-- for limbo first attached object is shell so you search for shell index and put here
  127.             in this example shell is on the first place so there is 0 but if shell was been on third place
  128.             then you should put here 2-->
  129.           </attachedObjects>
  130.         </Item>
  131.         <Item>
  132.           <name>name_of_interior_room_here</name><!-- define your room name here -->
  133.           <bbMin x="-7.34940000" y="-12.00400000" z="-3.87535000"/>
  134.           <bbMax x="7.34940000" y="12.00400000" z="3.87535000"/>
  135.           <blend value="1.00000000"/>
  136.           <timecycleName/>
  137.           <secondaryTimecycleName/>
  138.           <flags value="96"/>
  139.           <portalCount value="3"/>
  140.           <floorId value="0"/>
  141.           <exteriorVisibiltyDepth value="-1"/>
  142.           <attachedObjects content="int_array">
  143.             1
  144.             2 <!-- here are attached two object with index 1 (second of the attached list) and 2 (third of the
  145.             attached list -->
  146.           </attachedObjects>
  147.         </Item>
  148.       </rooms>
  149.       <portals><!-- here you define exit portals, mirror portals or floor portals -->
  150.         <Item>
  151.           <roomFrom value="1"/><!-- you define portal from room to outside room not other way,
  152.           room id you define in static collision in 3dsmax and for rooms ids are from 1 to above,
  153.           not 0 cuz 0 responds to limbo - outside of interior -->
  154.           <roomTo value="0"/>
  155.           <flags value="8256"/> <!-- im using 8256 for doors and 9 for windows -->
  156.           <mirrorPriority value="0"/>
  157.           <opacity value="0"/>
  158.           <audioOcclusion value="0"/>
  159.           <corners content="vector3_array"> <!-- its definied four corners of portal (looking from outside
  160.           room - RightDown, RightUp, LeftUP and LeftDown) (looking inside room (LeftDown, LeftUp, RightUp
  161.           and RightDown) -->
  162.             -5.25100000 5.51100000  -1.80600000
  163.             -5.25100000 5.49700000  0.89400000
  164.             -5.25100000 9.00400000  0.90500000
  165.             -5.25100000 9.01700000  -1.79500000
  166.           </corners>
  167.           <attachedObjects/>
  168.         </Item>
  169.         <Item>
  170.           <roomFrom value="1"/>
  171.           <roomTo value="0"/>
  172.           <flags value="9"/>
  173.           <mirrorPriority value="0"/>
  174.           <opacity value="0"/>
  175.           <audioOcclusion value="0"/>
  176.           <corners content="vector3_array">
  177.             5.25100000  1.88000000  -1.81700000
  178.             5.25100000  1.86900000  0.52600000
  179.             5.25100000  0.43400000  0.52200000
  180.             5.25100000  0.45500000  -1.82100000
  181.           </corners>
  182.           <attachedObjects/>
  183.         </Item>
  184.         <Item>
  185.           <roomFrom value="1"/>
  186.           <roomTo value="0"/>
  187.           <flags value="9"/>
  188.           <mirrorPriority value="0"/>
  189.           <opacity value="0"/>
  190.           <audioOcclusion value="0"/>
  191.           <corners content="vector3_array">
  192.             15.25100000 1.88000000  -1.81700000
  193.             15.25100000 1.86900000  0.52600000
  194.             15.25100000 0.43400000  0.52200000
  195.             15.25100000 0.45500000  -1.82100000
  196.           </corners>
  197.           <attachedObjects/>
  198.         </Item>
  199.       </portals>
  200.       <entitySets/>
  201.       <timeCycleModifiers/>
  202.     </Item>
  203.   </archetypes>
  204.   <name>ytyp_name_here</name>
  205.   <dependencies/>
  206.   <compositeEntityTypes/>
  207. </CMapTypes>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top