daily pastebin goal
64%
SHARE
TWEET

https://forum.ee2.eu/viewtopic.php?f=10&t=1873

a guest Sep 11th, 2017 18 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //
  2. // the most basic resource unit type (for both trees and non-trees)
  3. //
  4.  
  5. UnitType Resource
  6. {
  7.     OwnerType = WorldOnly
  8.     properties {
  9.         rps = LandNonCombat
  10.         FootprintType = kFootprintType_Rectangle
  11.         requiredOpenSides = kBuildingOpenSides_PosXPosYNegXNegY
  12.     }
  13. }
  14.  
  15.  
  16.  
  17.  
  18. //-----------------------------------------------------------------------------------------------
  19. // Shadow data
  20. //-----------------------------------------------------------------------------------------------
  21. ShadowData        TreeShadow
  22. {
  23.     FlatBillboard
  24.     {
  25.         TextureFilename = "TreeShadow.tga"
  26.         WidthScale = 0.75
  27.         LengthScale = 0.75
  28.         HeightScale = 0.1
  29.     }
  30. }
  31.  
  32. ShadowData  BambooTreeShadow
  33. {
  34.     UprightBillboard
  35.     {
  36.         TextureFilename = "BambooTreeShadow.tga"
  37.         RadiusScale = 0.75
  38.         HeightScale = 0.75
  39.     }
  40. }
  41.  
  42. ShadowData  FirTreeShadow
  43. {
  44.     UprightBillboard
  45.     {
  46.         TextureFilename = "FirTreeShadow.tga"
  47.         RadiusScale = 0.75
  48.         HeightScale = 0.75
  49.     }
  50. }
  51.  
  52. ShadowData  OakMapleTreeShadow
  53. {
  54.     UprightBillboard
  55.     {
  56.         TextureFilename = "OakMapleTreeShadow.tga"
  57.         RadiusScale = 0.75
  58.         HeightScale = 0.75
  59.     }
  60. }
  61.  
  62. ShadowData  PalmTreeShadow
  63. {
  64.     UprightBillboard
  65.     {
  66.         TextureFilename = "PalmTreeShadow.tga"
  67.         RadiusScale = 0.75
  68.         HeightScale = 0.75
  69.     }
  70. }
  71.  
  72. ShadowData  PalmettoTreeShadow
  73. {
  74.     UprightBillboard
  75.     {
  76.         TextureFilename = "PalmettoTreeShadow.tga"
  77.         RadiusScale = 0.75
  78.         HeightScale = 0.75
  79.     }
  80. }
  81.  
  82. ShadowData  RoyalPalmTreeShadow
  83. {
  84.     UprightBillboard
  85.     {
  86.         TextureFilename = "RoyalPalmTreeShadow.tga"
  87.         RadiusScale = 0.75
  88.         HeightScale = 0.75
  89.     }
  90. }
  91.  
  92. ShadowData  AfricanPalmTreeShadow
  93. {
  94.     UprightBillboard
  95.     {
  96.         TextureFilename = "AfricanPalmTreeShadow.tga"
  97.         RadiusScale = 0.75
  98.         HeightScale = 0.75
  99.     }
  100. }
  101.  
  102. ShadowData  BaobabTreeShadow
  103. {
  104.     UprightBillboard
  105.     {
  106.         TextureFilename = "BaobabTreeShadow.tga"
  107.         RadiusScale = 0.75
  108.         HeightScale = 0.75
  109.     }
  110. }
  111.  
  112. ShadowData  CypressTreeShadow
  113. {
  114.     UprightBillboard
  115.     {
  116.         TextureFilename = "CypressTreeShadow.tga"
  117.         RadiusScale = 0.75
  118.         HeightScale = 0.75
  119.     }
  120. }
  121.  
  122. ShadowData  DeadCypressShadow
  123. {
  124.     UprightBillboard
  125.     {
  126.         TextureFilename = "DeadCypressShadow.tga"
  127.         RadiusScale = 0.75
  128.         HeightScale = 0.75
  129.     }
  130. }
  131.  
  132. ShadowData  BirchTreeShadow
  133. {
  134.     UprightBillboard
  135.     {
  136.         TextureFilename = "BirchTreeShadow.tga"
  137.         RadiusScale = 0.75
  138.         HeightScale = 0.75
  139.     }
  140. }
  141.  
  142. ShadowData  DeadBirchShadow
  143. {
  144.     UprightBillboard
  145.     {
  146.         TextureFilename = "DeadBirchShadow.tga"
  147.         RadiusScale = 0.75
  148.         HeightScale = 0.75
  149.     }
  150. }
  151.  
  152. ShadowData  MapleTreeShadow
  153. {
  154.     UprightBillboard
  155.     {
  156.         TextureFilename = "MapleTreeShadow.tga"
  157.         RadiusScale = 0.75
  158.         HeightScale = 0.75
  159.     }
  160. }
  161.  
  162. ShadowData  TropicalSplitPalmShadow
  163. {
  164.     UprightBillboard
  165.     {
  166.         TextureFilename = "TropicalSplitPalmTreeShadow.tga"
  167.         RadiusScale = 0.75
  168.         HeightScale = 0.75
  169.     }
  170. }
  171.  
  172. //---------------------------------------------------------------------------
  173. //  Trees
  174. //---------------------------------------------------------------------------
  175.  
  176. UnitModel   BaseTreeModel
  177. {
  178. //  OutlineType = kOutlineReceive
  179.     ScaleType   = kScaleTree
  180.     DefaultState    = Idle
  181.     States = [
  182.         { StateName="Idle" }
  183.         ]
  184.     ChildNames = [ HemisphereLighting_Tree DynamicLighting_Tree ]
  185. }
  186.  
  187. UnitType Tree
  188. {
  189.     parent = Resource
  190.     properties {
  191.         SizeX = 0.55
  192.         SizeY = 0.55
  193.         mass = 1
  194.         hitpoints = 1000
  195.         mmColor = [0,64,0,255]
  196.         verboseTooltip = vtt_unit_Tree
  197.         inForest = 1
  198.     }
  199.     abilities [
  200.         // change alwaysExhaustible to make tree exhaustible
  201.         Resource { type = kResourceType_Wood; alwaysExhaustible = 1; amount = 1000; maxNumOfWorkers = 5}
  202.     ]
  203.     fullMapOverlay { sprite = spr_fullmap_tree scale = 2.0 ignoreOrientation = 1 }
  204. }
  205. //---------------------------------------------------------------------------
  206.  
  207. UnitModel TRE_PALM
  208. {
  209.     Parent      = BaseTreeModel
  210.     DefaultModel    = palmtree.nif
  211.     States = [
  212. //      { StateName="Idle" AnimName = palmtree_ani02.kf }
  213.         ]
  214.     ChildNames  = [PalmTreeShadow]
  215.    
  216. }
  217.  
  218. UnitType TRE_PALM
  219. {
  220.     parent Tree
  221.     properties { DisplayName = tx_utn_TreePalm_name }
  222. }
  223.  
  224.  
  225. //---------------------------------------------------------------------------
  226.  
  227.  
  228. UnitModel TRE_PALM_DARK
  229. {
  230.     Parent      = BaseTreeModel
  231.     DefaultModel    = Tre_palm_dark_01.nif
  232.     ChildNames  = [PalmTreeShadow]
  233. }
  234.  
  235. UnitType TRE_PALM_DARK
  236. {
  237.     parent Tree
  238.     properties {    DisplayName = tx_utn_TreePalmDark_name
  239.             DisplayNameScenEdit = tx_utn_TreePalmDark_sname }
  240. }
  241.  
  242. //---------------------------------------------------------------------------
  243.  
  244. UnitModel TRE_PALMETTO
  245. {  
  246.     Parent      = BaseTreeModel
  247.     DefaultModel    = Tre_palmetto_01.nif
  248.     ChildNames  = [PalmettoTreeShadow]
  249.  
  250. }
  251.  
  252. UnitType TRE_PALMETTO
  253. {
  254.     parent Tree
  255.     properties { DisplayName = tx_utn_TreePalmetto_name }
  256. }
  257. //---------------------------------------------------------------------------
  258.  
  259. UnitModel TRE_PALM_03
  260. {
  261.     Parent      = BaseTreeModel
  262.     DefaultModel    = Tre_palm_03.nif
  263.     ChildNames  = [RoyalPalmTreeShadow]
  264. }
  265.  
  266. UnitType TRE_PALM_03
  267. {
  268.     parent Tree
  269.     properties { DisplayName = tx_utn_TreePalm03_name }
  270. }
  271.  
  272. //---------------------------------------------------------------------------
  273.  
  274. UnitModel TRE_PALM_04
  275. {
  276.     Parent      = BaseTreeModel
  277.     DefaultModel    = Tre_palm_04.nif
  278.     ChildNames  = [AfricanPalmTreeShadow]
  279.     UIRenderingParams {
  280.         xOffset = 0.01
  281.         yOffset = 0.01
  282.         zOffset = -0.53
  283.         scale = 1.15
  284.         angle = 47.37
  285.         rotationSpeed = 0.00
  286.         pitch = 10.00
  287.         lightAngle = 30.00
  288.         lightPitch = 90.00
  289.         lightDiffuse = [50 50 45 255]
  290.         lightSpecular = [0 0 0 255]
  291.         lightAmbient = [40 40 40 255]
  292.     }
  293. }
  294.  
  295. UnitType TRE_PALM_04
  296. {
  297.     parent Tree
  298.     properties { DisplayName = tx_utn_TreePalm04_name }
  299. }
  300.  
  301.  
  302. //---------------------------------------------------------------------------
  303.  
  304. UnitModel TRE_MULTIPALM
  305. {
  306.     Parent      = BaseTreeModel
  307.     DefaultModel    = Tre_multipalm.nif
  308.     ChildNames  = [TropicalSplitPalmShadow]
  309. }
  310.  
  311. UnitType TRE_MULTIPALM
  312. {
  313.     parent Tree
  314.     properties { DisplayName = tx_utn_TreeMultiPalm_name }
  315. }
  316. //---------------------------------------------------------------------------
  317.  
  318. UnitModel TRE_BAOBAB
  319. {
  320.     Parent      = BaseTreeModel
  321.     DefaultModel    = Tre_baobab.nif
  322.     ChildNames  = [BaobabTreeShadow]
  323.     UIRenderingParams {
  324.         xOffset = 0.01
  325.         yOffset = 0.01
  326.         zOffset = 0.01
  327.         scale = 1.15
  328.         angle = 222.63
  329.         rotationSpeed = 0.00
  330.         pitch = 10.00
  331.         lightAngle = 30.00
  332.         lightPitch = 90.00
  333.         lightDiffuse = [50 50 45 255]
  334.         lightSpecular = [0 0 0 255]
  335.         lightAmbient = [40 40 40 255]
  336.     }
  337. }
  338.  
  339. UnitType TRE_BAOBAB
  340. {
  341.     parent Tree
  342.     properties { DisplayName = tx_utn_TreeBaobab_name }
  343. }
  344. //---------------------------------------------------------------------------
  345.  
  346.  
  347.  
  348.  
  349. // DECIDUOUS TREES:
  350. //
  351. // so the idea here is that since we have three distinct seasonal models for each
  352. // of certain tree types, these should all go to the same unit type (eg. tre_birch)
  353. // instead of having three separate unit types (like tre_birch_su, tre_birch_fa, etc)
  354. // which is how things used to be set up.
  355. //
  356. // there is also a _dead unit type (eg. tre_birch_dead) which will ONLY use the winter
  357. // model
  358.  
  359.  
  360. //---------------------------------------------------------------------------
  361. UnitModel TRE_BIRCH
  362. {
  363.     Parent          = BaseTreeModel
  364.     DefaultModel        = Tre_Birch1.nif
  365.     ChildNames  = [BirchTreeShadow]
  366.     UIRenderingParams {
  367.         xOffset = 0.01
  368.         yOffset = -0.16
  369.         zOffset = -0.16
  370.         scale = 1.15
  371.         angle = 45.00
  372.         rotationSpeed = 0.00
  373.         pitch = 10.00
  374.         lightAngle = 30.00
  375.         lightPitch = 90.00
  376.         lightDiffuse = [50 50 45 255]
  377.         lightSpecular = [0 0 0 255]
  378.         lightAmbient = [40 40 40 255]
  379.     }
  380. }
  381. UnitType TRE_BIRCH
  382. {
  383.     parent Tree
  384.     properties {    DisplayName = tx_utn_TreeBirch_name}
  385. }
  386.  
  387. UnitModel TRE_BIRCH_DEAD
  388. {
  389.     Parent          = BaseTreeModel
  390.     DefaultModel        = Tre_Birch1_wi.nif
  391.     ChildNames  = [DeadBirchShadow]
  392.     UIRenderingParams {
  393.         xOffset = 0.01
  394.         yOffset = -0.16
  395.         zOffset = -0.16
  396.         scale = 1.40
  397.         angle = 123.16
  398.         rotationSpeed = 0.00
  399.         pitch = 10.00
  400.         lightAngle = 0.00
  401.         lightPitch = 90.00
  402.         lightDiffuse = [50 50 45 255]
  403.         lightSpecular = [0 0 0 255]
  404.         lightAmbient = [52 52 52 255]
  405.     }
  406. }
  407. UnitType TRE_BIRCH_DEAD
  408. {
  409.     parent Tree
  410.     properties {    DisplayName = tx_utn_TreeBirchDead_name
  411.             DisplayNameScenEdit = tx_utn_TreeBirchDead_sname }
  412. }
  413.  
  414. //---------------------------------------------------------------------------
  415.  
  416. UnitModel TRE_CYPRESS
  417. {
  418.     Parent          = BaseTreeModel
  419.     DefaultModel        = Tre_cypress1.nif
  420.     ChildNames  = [CypressTreeShadow]
  421.     UIRenderingParams {
  422.         xOffset = 0.01
  423.         yOffset = 0.53
  424.         zOffset = -0.26
  425.         scale = 1.28
  426.         angle = 99.47
  427.         rotationSpeed = 0.00
  428.         pitch = 10.00
  429.         lightAngle = 30.00
  430.         lightPitch = 90.00
  431.         lightDiffuse = [50 50 45 255]
  432.         lightSpecular = [0 0 0 255]
  433.         lightAmbient = [40 40 40 255]
  434.     }
  435. }
  436.  
  437. UnitType TRE_CYPRESS
  438. {
  439.     parent Tree
  440.     properties {    DisplayName = tx_utn_TreeCypress_name }
  441. }
  442.  
  443. UnitModel TRE_CYPRESS_DEAD
  444. {
  445.     Parent          = TRE_CYPRESS
  446.     DefaultModel        = Tre_cypress1_wi.nif
  447.     ChildNames  = [DeadCypressShadow]
  448.     UIRenderingParams {
  449.         xOffset = 0.01
  450.         yOffset = 0.79
  451.         zOffset = 0.01
  452.         scale = 1.40
  453.         angle = 151.58
  454.         rotationSpeed = 0.00
  455.         pitch = 10.00
  456.         lightAngle = 30.00
  457.         lightPitch = 90.00
  458.         lightDiffuse = [50 50 45 255]
  459.         lightSpecular = [0 0 0 255]
  460.         lightAmbient = [60 62 60 255]
  461.     }
  462. }
  463.  
  464. UnitType TRE_CYPRESS_DEAD
  465. {
  466.     parent Tree
  467.     properties {    DisplayName = tx_utn_TreeCypressDd_name
  468.             DisplayNameScenEdit = tx_utn_TreeCypressDd_sname }
  469. }
  470.  
  471. //---------------------------------------------------------------------------
  472.  
  473. UnitModel TRE_OAK
  474. {
  475.     Parent      = BaseTreeModel
  476.     DefaultModel    = Tre_oak1.nif
  477.     DefaultState    = Idle
  478.     ChildNames  = [OakMapleTreeShadow]
  479.     UIRenderingParams {
  480.         xoffset = 0.01
  481.         yoffset = 0.01
  482.         zoffset = 0.01
  483.         scale = 1.00
  484.         angle = 45.00
  485.         rotationSpeed = 0.00
  486.         pitch = -2.37
  487.         lightAngle = 30.00
  488.         lightPitch = 90.00
  489.         lightDiffuse = [50 50 45 255]
  490.         lightSpecular = [0 0 0 255]
  491.         lightAmbient = [40 40 40 255]
  492.     }
  493. }
  494. UnitType TRE_OAK
  495. {
  496.     parent Tree
  497.     properties {    DisplayName = tx_utn_TreeOak_name }
  498. }
  499.  
  500. UnitModel TRE_OAK_DEAD
  501. {
  502.     Parent      = BaseTreeModel
  503.     DefaultModel    = Tre_oak_dead.nif
  504.     ChildNames  = [DeadBirchShadow]
  505.     UIRenderingParams {
  506.         xoffset = 0.01
  507.         yoffset = 0.01
  508.         zOffset = 0.26
  509.         scale = 1.28
  510.         angle = 52.11
  511.         rotationSpeed = 0.00
  512.         pitch = 0.01
  513.         lightAngle = 30.00
  514.         lightPitch = 90.00
  515.         lightDiffuse = [50 50 45 255]
  516.         lightSpecular = [0 0 0 255]
  517.         lightAmbient = [40 40 40 255]
  518.     }
  519. }
  520. UnitType TRE_OAK_DEAD
  521. {
  522.     parent Tree
  523.     properties {    DisplayName = tx_utn_TreeOakDead_name
  524.             DisplayNameScenEdit = tx_utn_TreeOakDead_sname }
  525. }
  526.  
  527. UnitModel TRE_OAK_SINGLE
  528. {
  529.     Parent      = TRE_OAK
  530.     DefaultModel    = Tre_oak1.nif
  531.     ChildNames =    [UnderOakTree OakMapleTreeShadow]
  532.     UIRenderingParams {
  533.         xOffset = -0.53
  534.         yoffset = 0.01
  535.         zoffset = 0.01
  536.         scale = 1.15
  537.         angle = 45.00
  538.         rotationSpeed = 0.00
  539.         pitch = 0.01
  540.         lightAngle = 30.00
  541.         lightPitch = 90.00
  542.         lightDiffuse = [50 50 45 255]
  543.         lightSpecular = [0 0 0 255]
  544.         lightAmbient = [40 40 40 255]
  545.     }
  546.  
  547. }
  548. UnitType TRE_OAK_SINGLE
  549. {
  550.     parent Tree
  551.     properties {    DisplayName = tx_utn_TreeOakSing_name }
  552. }
  553.  
  554. UnitModel TRE_OAK_SINGLE_DEAD
  555. {
  556.     Parent      = TRE_OAK_DEAD
  557.     DefaultModel    = Tre_oak_dead.nif
  558.     ChildNames  = [UnderOakTree DeadBirchShadow]
  559.     UIRenderingParams {
  560.         xOffset = -0.53
  561.         yoffset = 0.01
  562.         zoffset = 0.01
  563.         scale = 1.15
  564.         angle = 45.00
  565.         rotationSpeed = 0.00
  566.         pitch = 0.01
  567.         lightAngle = 30.00
  568.         lightPitch = 90.00
  569.         lightDiffuse = [50 50 45 255]
  570.         lightSpecular = [0 0 0 255]
  571.         lightAmbient = [40 40 40 255]
  572.     }
  573.  
  574. }
  575. UnitType TRE_OAK_SINGLE_DEAD
  576. {
  577.     parent Tree
  578.     properties {    DisplayName = tx_utn_TreeOakSDd_name
  579.             DisplayNameScenEdit = tx_utn_TreeOakSDd_sname }
  580. }
  581.  
  582. //---------------------------------------------------------------------------
  583.  
  584. UnitModel TRE_OAK2
  585. {
  586.     Parent      = BaseTreeModel
  587.     DefaultModel    = Tre_oak2.nif
  588.     ChildNames  = [OakMapleTreeShadow]
  589.     UIRenderingParams {
  590.         xoffset = 0.01
  591.         yOffset = 0.26
  592.         zoffset = 0.01
  593.         scale = 1.15
  594.         angle = 45.00
  595.         rotationSpeed = 0.00
  596.         pitch = 0.01
  597.         lightAngle = 30.00
  598.         lightPitch = 90.00
  599.         lightDiffuse = [50 50 45 255]
  600.         lightSpecular = [0 0 0 255]
  601.         lightAmbient = [40 40 40 255]
  602.     }
  603. }
  604. UnitType TRE_OAK2
  605. {
  606.     parent Tree
  607.     properties {    DisplayName = tx_utn_TreeOak2_name }
  608. }
  609.  
  610. //---------------------------------------------------------------------------
  611.  
  612. UnitModel TRE_OAK4
  613. {
  614.     Parent      = BaseTreeModel
  615.     DefaultModel    = Tre_oak4.nif
  616.     ChildNames  = [OakMapleTreeShadow]
  617.     UIRenderingParams {
  618.         xoffset = 0.01
  619.         yOffset = 0.14
  620.         zOffset = 0.20
  621.         scale = 1.02
  622.         angle = 45.00
  623.         rotationSpeed = 0.00
  624.         pitch = -10.00
  625.         lightAngle = 30.00
  626.         lightPitch = 90.00
  627.         lightDiffuse = [50 50 45 255]
  628.         lightSpecular = [0 0 0 255]
  629.         lightAmbient = [40 40 40 255]
  630.     }
  631. }
  632. UnitType TRE_OAK4
  633. {
  634.     parent Tree
  635.     properties {    DisplayName = tx_utn_TreeOak4_name }
  636. }
  637.  
  638. //---------------------------------------------------------------------------
  639.  
  640. UnitModel TRE_MAPLE_01
  641. {
  642.     Parent      = BaseTreeModel
  643.     DefaultModel    = Tre_maple_01.nif
  644.     ChildNames  = [MapleTreeShadow]
  645.     UIRenderingParams {
  646.         xoffset = 0.01
  647.         yoffset = 0.01
  648.         zoffset = 0.01
  649.         scale = 1.00
  650.         angle = 45.00
  651.         rotationSpeed = 0.00
  652.         pitch = 0.01
  653.         lightAngle = 30.00
  654.         lightPitch = 90.00
  655.         lightDiffuse = [50 50 45 255]
  656.         lightSpecular = [0 0 0 255]
  657.         lightAmbient = [40 40 40 255]
  658.     }
  659. }
  660. UnitType TRE_MAPLE_01
  661. {
  662.     parent Tree
  663.     properties {    DisplayName = tx_utn_TreeMaple_name }
  664. }
  665.  
  666. //---------------------------------------------------------------------------
  667.  
  668. UnitModel TRE_MAPLE_02
  669. {
  670.     Parent      = BaseTreeModel
  671.     DefaultModel    = Tre_maple_02.nif
  672.     ChildNames  = [MapleTreeShadow]
  673.     UIRenderingParams {
  674.         xOffset = -0.53
  675.         yoffset = 0.01
  676.         zoffset = 0.01
  677.         scale = 1.15
  678.         angle = 180.00
  679.         rotationSpeed = 0.00
  680.         pitch = 0.01
  681.         lightAngle = 30.00
  682.         lightPitch = 90.00
  683.         lightDiffuse = [50 50 45 255]
  684.         lightSpecular = [0 0 0 255]
  685.         lightAmbient = [40 40 40 255]
  686.     }
  687. }
  688. UnitType TRE_MAPLE_02
  689. {
  690.     parent Tree
  691.     properties {    DisplayName = tx_utn_TreeMaple2_name }
  692. }
  693.  
  694.  
  695. //---------------------------------------------------------------------------
  696.  
  697. UnitModel TRE_FIR
  698. {
  699.     Parent      = BaseTreeModel
  700.     DefaultModel    = tre_fir1.NIF
  701.     ChildNames  = [FirTreeShadow]
  702.     UIRenderingParams {
  703.         xoffset = 0.01
  704.         yOffset = 0.02
  705.         zOffset = -0.04
  706.         scale = 1.15
  707.         angle = 45.00
  708.         rotationSpeed = 0.00
  709.         pitch = 10.00
  710.         lightAngle = 30.00
  711.         lightPitch = 90.00
  712.         lightDiffuse = [50 50 45 255]
  713.         lightSpecular = [0 0 0 255]
  714.         lightAmbient = [40 40 40 255]
  715.     }
  716. }
  717. UnitType TRE_FIR
  718. {
  719.     parent Tree
  720.     properties { DisplayName = tx_utn_TreeFir_name }
  721. }
  722.  
  723. //---------------------------------------------------------------------------
  724.  
  725. UnitModel TRE_PINE
  726. {
  727.     Parent      = BaseTreeModel
  728.     DefaultModel    = tre_pine.NIF
  729.     ChildNames  = [FirTreeShadow]
  730.     UIRenderingParams {
  731.         xoffset = 0.01
  732.         yOffset = 0.62
  733.         zOffset = 0.62
  734.         scale = 1.28
  735.         angle = 45.00
  736.         rotationSpeed = 0.00
  737.         pitch = 0.01
  738.         lightAngle = 30.00
  739.         lightPitch = 90.00
  740.         lightDiffuse = [50 50 45 255]
  741.         lightSpecular = [0 0 0 255]
  742.         lightAmbient = [40 40 40 255]
  743.     }
  744. }
  745. UnitType TRE_PINE
  746. {
  747.     parent Tree
  748.     properties { DisplayName = tx_utn_TreePine_name }
  749. }
  750.  
  751. //---------------------------------------------------------------------------
  752. //  Bushes
  753. //---------------------------------------------------------------------------
  754.  
  755. UnitModel   BaseBushModel
  756. {
  757.     ScaleType   = kScaleTree
  758.     DefaultState    = Idle
  759.     States = [
  760.         { StateName="Idle" }
  761.         ]
  762. }
  763.  
  764. UnitType Bush
  765. {
  766.     parent = AmbientInForest
  767.     properties {
  768.         SizeX = 0.25
  769.         SizeY = 0.25
  770.         mass = 0
  771.         hitpoints = 1000
  772.         mmColor = [0,64,0,255]
  773.         verboseTooltip = vtt_unit_Tree
  774.     }
  775.     abilities []
  776.     fullMapOverlay { sprite = spr_fullmap_tree scale = 2.0 ignoreOrientation = 1 }
  777. }
  778.  
  779.  
  780. //---------------------------------------------------------------------------
  781.  
  782. UnitModel TRE_FERNTROP1
  783. {
  784.     Parent      = BaseBushModel
  785.     DefaultModel    = Tre_fern_trop01.nif
  786.     ChildNames  = [TreeShadow]
  787. }
  788.  
  789. UnitType TRE_FERNTROP1
  790. {
  791.     parent Bush
  792.     properties {    DisplayName = tx_utn_TreeFern1_name }
  793. }
  794.  
  795.  
  796. //---------------------------------------------------------------------------
  797.  
  798. UnitModel TRE_FERNTROP2
  799. {
  800.     Parent      = BaseBushModel
  801.     DefaultModel    = Tre_fern_trop02.nif
  802.     ChildNames  = [TreeShadow]
  803. }
  804.  
  805. UnitType TRE_FERNTROP2
  806. {
  807.     parent Bush
  808.     properties {    DisplayName = tx_utn_TreeFern2_name
  809.             DisplayNameScenEdit = tx_utn_TreeFern2_sname }
  810. }
  811.  
  812. //---------------------------------------------------------------------------
  813.  
  814. UnitModel TRE_FERNTROP3
  815. {
  816.     Parent      = BaseBushModel
  817.     DefaultModel    = Tre_fern_trop03.nif
  818.     ChildNames  = [TreeShadow]
  819. }
  820.  
  821. UnitType TRE_FERNTROP3
  822. {
  823.     parent Bush
  824.     properties {    DisplayName = tx_utn_TreeFern3_name }
  825. }
  826.  
  827. //---------------------------------------------------------------------------
  828.  
  829. UnitModel TRE_FERNTROP4
  830. {
  831.     Parent      = BaseBushModel
  832.     DefaultModel    = Tre_fern_trop04.nif
  833.     ChildNames  = [TreeShadow]
  834. }
  835.  
  836. UnitType TRE_FERNTROP4
  837. {
  838.     parent Bush
  839.     properties {    DisplayName = tx_utn_TreeFern4_name }
  840. }
  841.  
  842.  
  843. //---------------------------------------------------------------------------
  844.  
  845. UnitModel TRE_FERNTROP5
  846. {
  847.     Parent      = BaseBushModel
  848.     DefaultModel    = Tre_fern_trop05.nif
  849.     ChildNames  = [TreeShadow]
  850. }
  851.  
  852. UnitType TRE_FERNTROP5
  853. {
  854.     parent Bush
  855.     properties {    DisplayName = tx_utn_TreeFern5_name }
  856. }
  857.  
  858. //---------------------------------------------------------------------------
  859.  
  860. UnitModel TRE_DESERTFERN
  861. {
  862.     Parent      = BaseBushModel
  863.     DefaultModel    = tre_desertfern.nif
  864.     ChildNames  = [TreeShadow]
  865. }
  866.  
  867. UnitType TRE_DESERTFERN
  868. {
  869.     parent Bush
  870.     properties {    DisplayName = tx_utn_desertfern_name }
  871. }
  872.  
  873.  
  874.  
  875. //---------------------------------------------------------------------------
  876.  
  877. UnitModel TRE_BAMBOO1
  878. {
  879.     Parent      = BaseBushModel
  880.     DefaultModel    = Tre_bamboo01.nif
  881.     ChildNames  = [BambooTreeShadow]
  882. }
  883.  
  884. UnitType TRE_BAMBOO1
  885. {
  886.     parent Bush
  887.     properties {    DisplayName = tx_utn_bamboo1_name }
  888. }
  889.  
  890. //---------------------------------------------------------------------------
  891.  
  892. UnitModel TRE_BAMBOO2
  893. {
  894.     Parent      = BaseBushModel
  895.     DefaultModel    = Tre_bamboo02.nif
  896.     ChildNames  = [BambooTreeShadow]
  897. }
  898.  
  899. UnitType TRE_BAMBOO2
  900. {
  901.     parent Bush
  902.     properties {    DisplayName = tx_utn_bamboo2_name }
  903. }
  904.  
  905. //---------------------------------------------------------------------------
  906.  
  907. UnitModel TRE_BAMBOO3
  908. {
  909.     Parent      = BaseBushModel
  910.     DefaultModel    = Tre_bamboo03.nif
  911.     ChildNames  = [BambooTreeShadow]
  912. }
  913.  
  914. UnitType TRE_BAMBOO3
  915. {
  916.     parent Bush
  917.     properties {    DisplayName = tx_utn_bamboo3_name }
  918. }
  919.  
  920.  
  921. //---------------------------------------------------------------------------
  922.  
  923.  
  924.  
  925.  
  926. //---------------------------------------------------------------------------
  927. // Resources Harvestable Forage Trees
  928. //---------------------------------------------------------------------------
  929.  
  930. UnitType ForageTree
  931. {
  932.     parent = Resource
  933.     properties {
  934.         SizeX = 0.55
  935.         SizeY = 0.55
  936.         mass = 1
  937.         hitpoints = 1000
  938.         mmColor = [0,64,0,255]
  939.         verboseTooltip = vtt_unit_ForageTree
  940.     }
  941.     abilities [
  942.         // change alwaysExhaustible to make tree exhaustible
  943.         Resource { type = kResourceType_Food; amount = 1000; maxNumOfWorkers = 6}
  944.     ]
  945.     fullMapOverlay { sprite = spr_fullmap_tree scale = 2.0 ignoreOrientation = 1 }
  946. }
  947.  
  948. //---------------------------------------------------------------------------
  949. UnitModel TRE_BANANA
  950. {
  951.     Parent      = BaseTreeModel
  952.     DefaultModel    = res_banana_tree.nif
  953.     ChildNames  = [AfricanPalmTreeShadow UnderBananaTree]
  954.     UIRenderingParams {
  955.         xOffset = 0.01
  956.         yOffset = 0.01
  957.         zOffset = -1.05
  958.         scale = 1.66
  959.         angle = 45.00
  960.         rotationSpeed = 0.00
  961.         pitch = 0.01
  962.         lightAngle = 30.00
  963.         lightPitch = 90.00
  964.         lightDiffuse = [50 50 45 255]
  965.         lightSpecular = [0 0 0 255]
  966.         lightAmbient = [40 40 40 255]
  967.     }
  968. }
  969.  
  970. UnitType TRE_BANANA
  971. {
  972.     parent ForageTree
  973.     properties { DisplayName = tx_utn_TreeBananaTree_name  
  974.         UndertextureSizeX = 0.7
  975.         UndertextureSizeY = 0.7
  976.         UndertextureOffsetX = 0.12 }
  977. }
  978.  
  979.  
  980. //---------------------------------------------------------------------------
  981. UnitModel TRE_MANGO
  982. {
  983.     Parent      = BaseTreeModel
  984.     DefaultModel    = res_mango_tree.nif
  985.     ChildNames  = [OakMapleTreeShadow UnderMangoTree]
  986.     UIRenderingParams {
  987.         xOffset = -1.58
  988.         yOffset = 0.17
  989.         zOffset = -2.46
  990.         scale = 1.15
  991.         angle = 45.00
  992.         rotationSpeed = 0.00
  993.         pitch = 0.01
  994.         lightAngle = 30.00
  995.         lightPitch = 90.00
  996.         lightDiffuse = [50 50 45 255]
  997.         lightSpecular = [0 0 0 255]
  998.         lightAmbient = [40 40 40 255]
  999.     }
  1000. }
  1001.  
  1002. UnitType TRE_MANGO
  1003. {
  1004.     parent ForageTree
  1005.     properties {
  1006.         DisplayName = tx_utn_TreeMangoTree_name
  1007.         UndertextureSizeX = 0.7
  1008.         UndertextureSizeY = 0.7
  1009.         UndertextureOffsetX = 0.12 }
  1010. }
  1011.  
  1012. //---------------------------------------------------------------------------
  1013. UnitModel TRE_APPLE
  1014. {
  1015.     Parent      = BaseTreeModel
  1016.     DefaultModel    = res_apple_tree.nif
  1017.     ChildNames  = [OakMapleTreeShadow UnderAppleTree]
  1018.     UIRenderingParams {
  1019.         xOffset = 1.32
  1020.         yOffset = -0.18
  1021.         zOffset = -3.00
  1022.         scale = 1.92
  1023.         angle = 45.00
  1024.         rotationSpeed = 0.00
  1025.         pitch = 0.01
  1026.         lightAngle = 30.00
  1027.         lightPitch = 90.00
  1028.         lightDiffuse = [50 50 45 255]
  1029.         lightSpecular = [0 0 0 255]
  1030.         lightAmbient = [40 40 40 255]
  1031.     }  
  1032. }
  1033.  
  1034. UnitType TRE_APPLE
  1035. {
  1036.     parent ForageTree
  1037.     properties {
  1038.         DisplayName = tx_utn_TreeAppleTree_name
  1039.         UndertextureSizeX = 1.0
  1040.         UndertextureSizeY = 1.0
  1041.         UndertextureOffsetX = 0.12 }
  1042. }
  1043.  
  1044. //---------------------------------------------------------------------------
  1045. UnitModel TRE_ORANGE
  1046. {
  1047.     Parent      = BaseTreeModel
  1048.     DefaultModel    = res_orange_tree.nif
  1049.     ChildNames  = [OakMapleTreeShadow UnderOrangeTree]
  1050.     UIRenderingParams {
  1051.         xOffset = 0.01
  1052.         yOffset = 0.49
  1053.         zOffset = -0.33
  1054.         scale = 1.28
  1055.         angle = 33.16
  1056.         rotationSpeed = 0.00
  1057.         pitch = 0.01
  1058.         lightAngle = 30.00
  1059.         lightPitch = 90.00
  1060.         lightDiffuse = [50 50 45 255]
  1061.         lightSpecular = [0 0 0 255]
  1062.         lightAmbient = [40 40 40 255]
  1063.     }
  1064. }
  1065.  
  1066. UnitType TRE_ORANGE
  1067. {
  1068.     parent ForageTree
  1069.     properties { DisplayName = tx_utn_TreeOrangeTree_name
  1070.         UndertextureSizeX = 1.0
  1071.         UndertextureSizeY = 1.0
  1072.         UndertextureOffsetX = 0.12 }
  1073. }
  1074.  
  1075. //---------------------------------------------------------------------------
  1076. UnitModel TRE_POMEGRANATE
  1077. {
  1078.     Parent      = BaseTreeModel
  1079.     DefaultModel    = res_pomegranate_tree.nif
  1080.     ChildNames  = [OakMapleTreeShadow UnderPomegranateTree]
  1081.     UIRenderingParams {
  1082.         xOffset = -0.79
  1083.         yOffset = -0.32
  1084.         zOffset = 0.66
  1085.         scale = 1.53
  1086.         angle = 45.00
  1087.         rotationSpeed = 0.00
  1088.         pitch = 0.01
  1089.         lightAngle = 30.00
  1090.         lightPitch = 90.00
  1091.         lightDiffuse = [50 50 45 255]
  1092.         lightSpecular = [0 0 0 255]
  1093.         lightAmbient = [40 40 40 255]
  1094.     }
  1095. }
  1096.  
  1097. UnitType TRE_POMEGRANATE
  1098. {
  1099.     parent ForageTree
  1100.     properties { DisplayName = tx_utn_TreePomegranate_name
  1101.         UndertextureSizeX = 1.0
  1102.         UndertextureSizeY = 1.0
  1103.         UndertextureOffsetX = 0.12 }
  1104. }
  1105.  
  1106. //---------------------------------------------------------------------------
  1107. UnitModel TRE_DATE
  1108. {
  1109.     Parent      = BaseTreeModel
  1110.     DefaultModel    = res_date_tree.nif
  1111.     ChildNames  = [OakMapleTreeShadow UnderDateTree]
  1112.     UIRenderingParams {
  1113.         xOffset = 0.01
  1114.         yOffset = 0.05
  1115.         zOffset = 1.08
  1116.         scale = 1.66
  1117.         angle = 45.00
  1118.         rotationSpeed = 0.00
  1119.         pitch = 10.00
  1120.         lightAngle = 30.00
  1121.         lightPitch = 90.00
  1122.         lightDiffuse = [50 50 45 255]
  1123.         lightSpecular = [0 0 0 255]
  1124.         lightAmbient = [40 40 40 255]
  1125.     }
  1126. }
  1127.  
  1128. UnitType TRE_DATE
  1129. {
  1130.     parent ForageTree
  1131.     properties { DisplayName = tx_utn_TreeDateTree_name
  1132.         UndertextureSizeX = 1.0
  1133.         UndertextureSizeY = 1.0
  1134.         UndertextureOffsetX = 0.1 }
  1135. }
  1136.  
  1137.  
  1138.  
  1139. // -------------------------------------------------------------------------
  1140. // --------- non-tree resources ----------------------------------------
  1141. // ------------------------------------------------------------
  1142.  
  1143. UnitType ResourceNotTree
  1144. {
  1145.     parent = Resource
  1146.     placementType = Building
  1147.     properties {
  1148.         SizeX = 0.3
  1149.         SizeY = 0.3
  1150.         FootprintSizeX = 1.5
  1151.         FootprintSizeY = 1.5
  1152.         OffsetX = 0.6
  1153.         OffsetY = 0.6
  1154.         mass = 1    // so that it blocks pathing
  1155.         hitpoints = 1000
  1156.     }
  1157.     fullMapOverlay { sprite = spr_fullmap_resource }
  1158. }
  1159.  
  1160. UnitModel ResourceNotTreeBaseModel
  1161. {
  1162.     ScaleType = kScaleBuilding
  1163.     ChildNames = [ HemisphereLighting_Resource DynamicLighting_Resource ]
  1164. }
  1165.  
  1166.  
  1167. //---------------------------------------------------------------------------
  1168. // Resources Forage Patch
  1169. //---------------------------------------------------------------------------
  1170.  
  1171. UnitModel ResourceForagePatch
  1172. {
  1173.     Parent              = ResourceNotTreeBaseModel
  1174.     DefaultModel    = res_foragepatch.nif
  1175.     DefaultState    = Idle
  1176.     States = [
  1177.         { StateName="Idle" }
  1178.         { StateName = Death ModelName = NULL.nif }
  1179.         ]
  1180. }
  1181. UnitType ResourceForagePatch
  1182. {
  1183.     parent = ResourceNotTree
  1184.     properties {
  1185.         displayName = tx_utn_ForagePatch_name
  1186.         DisplayNameScenEdit = tx_utn_ForagePatch_sname
  1187.         VerboseTooltip = vtt_unit_ForagePatch
  1188.     }
  1189.     abilities [
  1190.         Resource { type = kResourceType_Food; alwaysExhaustible = 1; amount = 2000; maxNumOfWorkers = 6}
  1191.     ]
  1192. }
  1193.  
  1194. UnitModel ResourceForagePatch02
  1195. {
  1196.     Parent              = ResourceNotTreeBaseModel
  1197.     DefaultModel    = res_foragepatch02.nif
  1198.     DefaultState    = Idle
  1199.     States = [
  1200.         { StateName="Idle" }
  1201.         ]
  1202. }
  1203. UnitType ResourceForagePatch02
  1204. {
  1205.     parent = ResourceForagePatch
  1206.     properties {
  1207.         displayName = tx_utn_ForagePatch2_name
  1208.         DisplayNameScenEdit = tx_utn_ForagePatch2_sname
  1209.     }
  1210. }
  1211.  
  1212. UnitModel ResourceForagePatch03
  1213. {
  1214.     Parent              = ResourceNotTreeBaseModel
  1215.     DefaultModel    = res_foragepatch03.nif
  1216.     DefaultState    = Idle
  1217.     States = [
  1218.         { StateName="Idle" }
  1219.         ]
  1220. }
  1221. UnitType ResourceForagePatch03
  1222. {
  1223.     parent = ResourceForagePatch
  1224.     properties {
  1225.         displayName = tx_utn_ForagePatch3_name
  1226.         DisplayNameScenEdit = tx_utn_ForagePatch3_sname
  1227.     }
  1228. }
  1229.  
  1230. UnitModel ResourceForagePatch04
  1231. {
  1232.     Parent              = ResourceNotTreeBaseModel
  1233.     DefaultModel    = res_foragepatch04.nif
  1234.     DefaultState    = Idle
  1235.     States = [
  1236.         { StateName="Idle" }
  1237.         ]
  1238. }
  1239. UnitType ResourceForagePatch04
  1240. {
  1241.     parent = ResourceForagePatch
  1242.     properties {
  1243.         displayName = tx_utn_ForagePatch4_name
  1244.         DisplayNameScenEdit = tx_utn_ForagePatch4_sname
  1245.     }
  1246. }
  1247.  
  1248. UnitModel ResourceForagePatch05
  1249. {
  1250.     Parent              = ResourceNotTreeBaseModel
  1251.     DefaultModel    = res_foragepatch05.nif
  1252.     DefaultState    = Idle
  1253.     States = [
  1254.         { StateName="Idle" }
  1255.         ]
  1256. }
  1257. UnitType ResourceForagePatch05
  1258. {
  1259.     parent = ResourceForagePatch
  1260.     properties {
  1261.         displayName = tx_utn_ForagePatch5_name
  1262.         DisplayNameScenEdit = tx_utn_ForagePatch5_sname
  1263.     }
  1264. }
  1265.  
  1266. UnitModel ResourceForagePatch06
  1267. {
  1268.     Parent              = ResourceNotTreeBaseModel
  1269.     DefaultModel    = res_foragepatch06.nif
  1270.     DefaultState    = Idle
  1271.     States = [
  1272.         { StateName="Idle" }
  1273.         ]
  1274. }
  1275. UnitType ResourceForagePatch06
  1276. {
  1277.     parent = ResourceForagePatch
  1278.     properties {
  1279.         displayName = tx_utn_ForagePatch6_name
  1280.         DisplayNameScenEdit = tx_utn_ForagePatch6_sname
  1281.     }
  1282. }
  1283.  
  1284. //---------------------------------------------------------------------------
  1285. // Resources Gold
  1286. //---------------------------------------------------------------------------
  1287.  
  1288. UnitModel ResourceGold
  1289. {
  1290.     Parent              = ResourceNotTreeBaseModel
  1291.     ChildNames          = [BuildingShadow UnderGold]
  1292.     DefaultModel    = res_gold.nif
  1293.     DefaultState    = Idle
  1294.         States = [
  1295.         { StateName="Idle" }
  1296.         ]
  1297.     UIRenderingParams {
  1298.         xOffset = 0.01
  1299.         yOffset = -0.09
  1300.         zOffset = 1.29
  1301.         scale = 1.00
  1302.         angle = 45.00
  1303.         rotationSpeed = 0.00
  1304.         pitch = 60.00
  1305.         lightAngle = 30.00
  1306.         lightPitch = 90.00
  1307.         lightDiffuse = [50 50 45 255]
  1308.         lightSpecular = [0 0 0 255]
  1309.         lightAmbient = [40 40 40 255]
  1310.     }
  1311. }
  1312. UnitType ResourceGold
  1313. {
  1314.     parent = ResourceNotTree
  1315.    
  1316.     properties {
  1317.         displayName = tx_utn_Gold_name
  1318.         mmColor = [192,192,0,255]
  1319.         VerboseTooltip = vtt_unit_Gold
  1320.     }
  1321.     abilities [
  1322.         Resource { type = kResourceType_Gold; alwaysExhaustible = 1;amount = 1000; maxNumOfWorkers = 6}
  1323.     ]
  1324. }
  1325.  
  1326. //---------------------------------------------------------------------------
  1327. // Resources Stone
  1328. //---------------------------------------------------------------------------
  1329.  
  1330. UnitModel ResourceStone
  1331. {
  1332.     Parent              = ResourceNotTreeBaseModel
  1333.     ChildNames          = [BuildingShadow UnderStone]
  1334.     DefaultModel    = res_stone.nif
  1335.     DefaultState    = Idle
  1336.     States = [
  1337.         { StateName="Idle" }
  1338.         ]
  1339.     UIRenderingParams {
  1340.         xOffset = 0.01
  1341.         yOffset = -0.11
  1342.         zOffset = 1.26
  1343.         scale = 1.02
  1344.         angle = 45.00
  1345.         rotationSpeed = 0.00
  1346.         pitch = 30.00
  1347.         lightAngle = 30.00
  1348.         lightPitch = 90.00
  1349.         lightDiffuse = [50 50 45 255]
  1350.         lightSpecular = [0 0 0 255]
  1351.         lightAmbient = [40 40 40 255]
  1352.     }
  1353. }
  1354. UnitType ResourceStone
  1355. {
  1356.     parent = ResourceNotTree
  1357.     properties {
  1358.         DisplayName = tx_utn_stone_name
  1359.         mmColor = [192,192,192,255]
  1360.         VerboseTooltip = vtt_unit_Stone
  1361.     }
  1362.     abilities [
  1363.         Resource { type = kResourceType_Stone; amount = 1000; maxNumOfWorkers = 6}
  1364.     ]
  1365. }
  1366.  
  1367. //---------------------------------------------------------------------------
  1368. // Resources Tin
  1369. //---------------------------------------------------------------------------
  1370.  
  1371. UnitModel ResourceTin
  1372. {
  1373.     Parent              = ResourceNotTreeBaseModel
  1374.     ChildNames          = [BuildingShadow UnderTin]
  1375.     DefaultModel    = res_tin.nif
  1376.     DefaultState    = Idle
  1377.     States = [
  1378.         { StateName="Idle" }
  1379.         ]
  1380.     UIRenderingParams {
  1381.         xOffset = 0.01
  1382.         yOffset = 0.01
  1383.         zOffset = 0.79
  1384.         scale = 1.15
  1385.         angle = 142.11
  1386.         rotationSpeed = 0.00
  1387.         pitch = 20.00
  1388.         lightAngle = 30.00
  1389.         lightPitch = 90.00
  1390.         lightDiffuse = [50 50 45 255]
  1391.         lightSpecular = [0 0 0 255]
  1392.         lightAmbient = [40 40 40 255]
  1393.     }
  1394.  
  1395. }
  1396. UnitType ResourceTin
  1397. {
  1398.     parent = ResourceNotTree
  1399.     properties {
  1400.         DisplayName = tx_utn_tin_name
  1401.         mmColor = [192,192,192,255]
  1402.         VerboseTooltip = vtt_unit_Tin
  1403.     }
  1404.     abilities [
  1405.         Resource { type = kResourceType_Tin; amount = 1000; maxNumOfWorkers = 6}
  1406.     ]
  1407. }
  1408.  
  1409. //---------------------------------------------------------------------------
  1410. // Resources Iron
  1411. //---------------------------------------------------------------------------
  1412. UnitModel ResourceIronUnrevealed
  1413. {
  1414.     Parent              = ResourceNotTreeBaseModel
  1415.     DefaultModelList = [res_rock_1.nif res_rock_2.nif res_rock_3.nif]
  1416.     DefaultState    = Idle
  1417.     States = [
  1418.         { StateName="Idle" }
  1419.         ]
  1420.     UIRenderingParams {
  1421.         xoffset = 0.01
  1422.         yOffset = -0.17
  1423.         zOffset = 0.41
  1424.         scale = 1.00
  1425.         angle = 45.00
  1426.         rotationSpeed = 0.00
  1427.         pitch = 40.00
  1428.         lightAngle = 30.00
  1429.         lightPitch = 90.00
  1430.         lightDiffuse = [50 50 45 255]
  1431.         lightSpecular = [0 0 0 255]
  1432.         lightAmbient = [40 40 40 255]
  1433.     }
  1434. }
  1435.  
  1436. UnitModel ResourceIronRevealed
  1437. {
  1438.     Parent              = ResourceNotTreeBaseModel
  1439.     ChildNames          = [BuildingShadow UnderIron]
  1440.     DefaultModel    = res_iron.nif
  1441.     DefaultState    = Idle
  1442.     States = [
  1443.         { StateName="Idle" }
  1444.         ]
  1445.     UIRenderingParams {
  1446.         xOffset = 0.01
  1447.         yOffset = -0.21
  1448.         zOffset = 2.04
  1449.         scale = 1.00
  1450.         angle = 165.79
  1451.         rotationSpeed = 0.00
  1452.         pitch = 50.00
  1453.         lightAngle = 30.00
  1454.         lightPitch = 90.00
  1455.         lightDiffuse = [50 50 45 255]
  1456.         lightSpecular = [0 0 0 255]
  1457.         lightAmbient = [40 40 40 255]
  1458.     }
  1459. }
  1460.  
  1461. UnitType ResourceIron
  1462. {
  1463.     parent = ResourceNotTree
  1464.     visualName = ResourceIronUnrevealed
  1465.     properties {
  1466.         DisplayName = tx_utn_UnknownResource_name
  1467.         DisplayNameScenEdit = tx_utn_iron_name
  1468.         mmColor = [192,192,192,255]
  1469.         VerboseTooltip = vtt_unit_UnknownResource
  1470.     }
  1471.     abilities [
  1472.         Resource { type = kResourceType_Iron; amount = 1000; maxNumOfWorkers = 6}
  1473.     ]
  1474. }
  1475.  
  1476. UpgradeUnitTypeUpgrade ResourceIronUnitTypeUpgrade
  1477. {
  1478.     unitType = ResourceIron
  1479.     name = tx_utn_iron_name
  1480.     newVisual = ResourceIronRevealed
  1481.     ttIndex = vtt_unit_Iron
  1482. }
  1483.  
  1484. UpgradeResources ResourceIronUpgradeEpoch04
  1485. {
  1486.     ResourceUnitTypeUpgrades = ResourceIronUnitTypeUpgrade
  1487. }
  1488.  
  1489. //---------------------------------------------------------------------------
  1490. // Resources Salt Peter
  1491. //---------------------------------------------------------------------------
  1492. UnitModel ResourceSaltpeterUnrevealed
  1493. {
  1494.     Parent              = ResourceNotTreeBaseModel
  1495.     DefaultModelList = [res_rock_1.nif res_rock_2.nif res_rock_3.nif]
  1496.     DefaultState    = Idle
  1497.     States = [
  1498.         { StateName="Idle" }
  1499.         ]
  1500.     UIRenderingParams {
  1501.         xoffset = 0.01
  1502.         yOffset = -0.39
  1503.         zOffset = 1.43
  1504.         scale = 1.00
  1505.         angle = 45.00
  1506.         rotationSpeed = 0.00
  1507.         pitch = 50.00
  1508.         lightAngle = 30.00
  1509.         lightPitch = 90.00
  1510.         lightDiffuse = [50 50 45 255]
  1511.         lightSpecular = [0 0 0 255]
  1512.         lightAmbient = [40 40 40 255]
  1513.     }
  1514. }
  1515.  
  1516. UnitModel ResourceSaltPeterRevealed
  1517. {
  1518.     Parent              = ResourceNotTreeBaseModel
  1519.     ChildNames          = [BuildingShadow UnderSaltpeter]
  1520.     DefaultModel    = res_saltpeter.nif
  1521.     DefaultState    = Idle
  1522.     States = [
  1523.         { StateName="Idle" }
  1524.         ]
  1525.     UIRenderingParams {
  1526.         xOffset = 0.01
  1527.         yOffset = 0.01
  1528.         zOffset = 0.01
  1529.         scale = 1.00
  1530.         angle = 45.00
  1531.         rotationSpeed = 0.00
  1532.         pitch = 50.00
  1533.         lightAngle = 30.00
  1534.         lightPitch = 90.00
  1535.         lightDiffuse = [50 50 45 255]
  1536.         lightSpecular = [0 0 0 255]
  1537.         lightAmbient = [40 40 40 255]
  1538.     }
  1539. }
  1540. UnitType ResourceSaltPeter
  1541. {
  1542.     parent = ResourceNotTree
  1543.     visualName = ResourceSaltpeterUnrevealed
  1544.     properties {
  1545.         DisplayName = tx_utn_UnknownResource_name
  1546.         DisplayNameScenEdit = tx_utn_saltpeter_name
  1547.         mmColor = [192,192,192,255]
  1548.         VerboseTooltip = vtt_unit_UnknownResource
  1549.     }
  1550.     abilities [
  1551.         Resource { type = kResourceType_Saltpeter; amount = 1000; maxNumOfWorkers = 6}
  1552.     ]
  1553. }
  1554.  
  1555. UpgradeUnitTypeUpgrade ResSaltpeterUnitTypeUpgrade
  1556. {
  1557.     unitType = ResourceSaltPeter
  1558.     name = tx_utn_saltpeter_name
  1559.     newVisual = ResourceSaltPeterRevealed
  1560.     ttIndex = vtt_unit_SaltPeter
  1561. }
  1562.  
  1563. UpgradeResources ResSaltpeterUpgradeEpoch07
  1564. {
  1565.     ResourceUnitTypeUpgrades = ResSaltpeterUnitTypeUpgrade
  1566. }
  1567.  
  1568. //---------------------------------------------------------------------------
  1569. // Resources Oil
  1570. //---------------------------------------------------------------------------
  1571. UnitModel ResourceOilUnrevealed
  1572. {
  1573.     Parent              = ResourceNotTreeBaseModel
  1574.     DefaultModelList = [res_rock_1.nif res_rock_2.nif res_rock_3.nif]
  1575.     DefaultState    = Idle
  1576.     States = [
  1577.         { StateName="Idle" }
  1578.         ]
  1579.     UIRenderingParams {
  1580.         xoffset = 0.01
  1581.         yOffset = 0.26
  1582.         zOffset = 1.61
  1583.         scale = 1.00
  1584.         angle = 45.00
  1585.         rotationSpeed = 0.00
  1586.         pitch = 50.00
  1587.         lightAngle = 30.00
  1588.         lightPitch = 90.00
  1589.         lightDiffuse = [50 50 45 255]
  1590.         lightSpecular = [0 0 0 255]
  1591.         lightAmbient = [40 40 40 255]
  1592.     }
  1593. }
  1594.  
  1595. UnitModel ResourceOilRevealed
  1596. {
  1597.     Parent              = ResourceNotTreeBaseModel
  1598.     DefaultModelList    = [res_oil_1.nif res_oil_2.nif res_oil_3.nif]
  1599.     DefaultState        = Idle
  1600.     States = [
  1601.         { StateName="Idle" }
  1602.         ]
  1603.     UIRenderingParams {
  1604.         xOffset = 0.01
  1605.         yOffset = 0.31
  1606.         zOffset = 0.70
  1607.         scale = 1.00
  1608.         angle = 45.00
  1609.         rotationSpeed = 0.00
  1610.         pitch = 70.00
  1611.         lightAngle = 30.00
  1612.         lightPitch = 90.00
  1613.         lightDiffuse = [50 50 45 255]
  1614.         lightSpecular = [0 0 0 255]
  1615.         lightAmbient = [40 40 40 255]
  1616.     }
  1617. }
  1618.  
  1619. UnitType ResourceOil
  1620. {
  1621.     parent = ResourceNotTree
  1622.     visualName = ResourceOilUnrevealed
  1623.     properties {
  1624.         DisplayName = tx_utn_UnknownResource_name
  1625.         DisplayNameScenEdit = tx_utn_oil_name
  1626.         mmColor = [64,64,64,255]
  1627.         VerboseTooltip = vtt_unit_UnknownResource
  1628.     }
  1629.     abilities [
  1630.         Resource { type = kResourceType_Oil; amount = 1000; maxNumOfWorkers = 0}
  1631.     ]
  1632. }
  1633.  
  1634. UpgradeUnitTypeUpgrade ResourceOilUnitTypeUpgrade
  1635. {
  1636.     unitType = ResourceOil
  1637.     name = tx_utn_oil_name
  1638.     newVisual = ResourceOilRevealed
  1639.     ttIndex = vtt_unit_oil
  1640. }
  1641.  
  1642. UpgradeResources ResourceOilUpgradeEpoch10
  1643. {
  1644.     ResourceUnitTypeUpgrades = ResourceOilUnitTypeUpgrade
  1645. }
  1646.  
  1647. //---------------------------------------------------------------------------
  1648. // Resources Uranium
  1649. //---------------------------------------------------------------------------
  1650. UnitModel ResourceUraniumUnrevealed
  1651. {
  1652.     Parent              = ResourceNotTreeBaseModel
  1653.     DefaultModelList    = [res_rock_1.nif res_rock_2.nif res_rock_3.nif]
  1654.     DefaultState        = Idle
  1655.     States = [
  1656.         { StateName="Idle" }
  1657.         ]
  1658.     UIRenderingParams {
  1659.         xoffset = 0.01
  1660.         yOffset = 0.26
  1661.         zOffset = 1.58
  1662.         scale = 1.00
  1663.         angle = 45.00
  1664.         rotationSpeed = 0.00
  1665.         pitch = 50.00
  1666.         lightAngle = 30.00
  1667.         lightPitch = 90.00
  1668.         lightDiffuse = [50 50 45 255]
  1669.         lightSpecular = [0 0 0 255]
  1670.         lightAmbient = [40 40 40 255]
  1671.     }
  1672. }
  1673.  
  1674. UnitModel ResourceUraniumRevealed
  1675. {
  1676.     Parent              = ResourceNotTreeBaseModel
  1677.     DefaultModelList    = [res_uranium_1.nif res_uranium_2.nif res_uranium_3.nif]
  1678.     DefaultState        = Idle
  1679.     States = [
  1680.         { StateName="Idle" }
  1681.         ]
  1682.     UIRenderingParams {
  1683.         xOffset = 0.01
  1684.         yOffset = 0.01
  1685.         zOffset = 0.01
  1686.         scale = 1.00
  1687.         angle = 45.00
  1688.         rotationSpeed = 0.00
  1689.         pitch = 60.00
  1690.         lightAngle = 30.00
  1691.         lightPitch = 90.00
  1692.         lightDiffuse = [50 50 45 255]
  1693.         lightSpecular = [0 0 0 255]
  1694.         lightAmbient = [40 40 40 255]
  1695.     }
  1696. }
  1697.  
  1698. UnitType ResourceUranium
  1699. {
  1700.     parent = ResourceNotTree
  1701.     visualName = ResourceUraniumUnrevealed
  1702.     properties {
  1703.         DisplayName = tx_utn_UnknownResource_name
  1704.         DisplayNameScenEdit = tx_utn_uranium_name
  1705.         mmColor = [224,224,224,255]
  1706.         VerboseTooltip = vtt_unit_UnknownResource
  1707.     }
  1708.     abilities [
  1709.         Resource { type = kResourceType_Uranium; amount = 1000; maxNumOfWorkers = 0}
  1710.     ]
  1711. }
  1712.  
  1713. UpgradeUnitTypeUpgrade ResourceUraniumUnitTypeUpgrade
  1714. {
  1715.     unitType = ResourceUranium
  1716.     name = tx_utn_uranium_name
  1717.     newVisual = ResourceUraniumRevealed
  1718.     ttIndex = vtt_unit_Uranium
  1719. }
  1720.  
  1721. UpgradeResources ResourceUraniumUpgradeEpoch13
  1722. {
  1723.     ResourceUnitTypeUpgrades = ResourceUraniumUnitTypeUpgrade
  1724. }
  1725.  
  1726. //---------------------------------------------------------------------------
  1727. // Dummy resource that will not turn into a real resource.
  1728. //---------------------------------------------------------------------------
  1729. UnitModel ResourceDummy
  1730. {
  1731.     Parent              = ResourceNotTreeBaseModel
  1732.     DefaultModelList    = [res_rock_1.nif res_rock_2.nif res_rock_3.nif]
  1733.     DefaultState        = Idle
  1734.     States = [
  1735.         { StateName="Idle" }
  1736.         ]
  1737. }
  1738.  
  1739.  
  1740. UnitType ResourceDummy
  1741. {
  1742.     parent = ResourceNotTree
  1743.     properties {
  1744.         DisplayName = tx_utn_UnknownResource_name
  1745.         VerboseTooltip = vtt_unit_UnknownResource
  1746.     }
  1747.     abilities [
  1748.     ]
  1749. }
  1750.  
  1751. //---------------------------------------------------------------------------
  1752. // Resources Fish
  1753. //---------------------------------------------------------------------------
  1754. UnitModel ResourceFish
  1755. {
  1756.     DefaultModel    = faufish.nif
  1757.     OutlineType = kOutlineReceive
  1758.     ScaleType   = kScaleBuilding
  1759.     DefaultState    = Idle
  1760.     States      = [
  1761.             {   StateName = Idle AnimName = sh_faufish_idle01.kf
  1762.                 AnimVariants = [ sh_faufish_idle02.kf sh_faufish_idle03.kf]
  1763.                 AnimVariantsWeights = [ 0.4 0.6 ]
  1764.                 }
  1765.             {   StateName = Death   ModelName = NULL.nif }
  1766.             ]
  1767.     ChildNames = [ HemisphereLighting_Unit DynamicLighting_Unit ]
  1768. }  
  1769. UnitType ResourceFish
  1770. {
  1771.     parent = Resource
  1772.     placementType = DeepWater
  1773.     properties {
  1774.         DisplayName = tx_utn_fish_name
  1775.         mmColor = [224,224,224,255]
  1776.         VerboseToolTip = vtt_unit_Fish
  1777.         SizeX = 1.0
  1778.         SizeY = 1.0
  1779.         // Give fish a larger footprint to accomodate the model.  Otherwise,
  1780.         // it was possible for the fish to swim off the map.  It looks like
  1781.         // this doesn't cause any problems placing fish... there's plenty of
  1782.         // water.  If it turns out there are cases where there's not enough
  1783.         // room to place fish, then maybe we'll need to shrink the model, instead.
  1784.         // MRC 10/13/2004
  1785.         FootprintSizeX = 2.0
  1786.         FootprintSizeY = 2.0
  1787.         hitpoints = 1000
  1788.     }
  1789.     abilities [
  1790.         Resource { type = kResourceType_Food; alwaysExhaustible = 1; amount = 2000; maxNumOfWorkers = 6}
  1791.     ]
  1792.     fullMapOverlay { sprite = spr_fullmap_fish }
  1793. }
  1794.  
  1795.  
  1796. //------------------------------------------------
  1797. //  OIL RIG
  1798. //------------------------------------------------
  1799. UnitType OilRig
  1800. {
  1801.     parent = NoProduceBuilding
  1802.     placementType = OnResource
  1803.     placementTargetType = ResourceOil
  1804.     icon = icon_unit_oilRig
  1805.     citizenManagerCursorSprite = spr_citmanager_cursor_oilrig
  1806.     properties {
  1807.         SizeX = 1.5
  1808.         SizeY = 1.5
  1809.         displayName = tx_utn_OilRig_name
  1810.         displayNamePlural = tx_utn_OilRig_pname
  1811.         VerboseTooltip = vtt_unit_OilRig
  1812.         HitPoints = 1000
  1813.         Mass = 1
  1814.     }
  1815.     abilities = [
  1816.         Garrison {
  1817.             garrisonType = UniWarehouseOilDerrickCityCenter;
  1818.             numOfSlots = 6;
  1819.             gatherRate = 0.75;  // 1 tech point every second for each garrisoned UnitType
  1820.             gatherType = Oil;
  1821.             rightClickToGarrison = 1;
  1822.             GarrisonedVisualState = "Garrisoned"
  1823.         }
  1824.         LOS { range = 4 }
  1825.    
  1826.     ]
  1827. }
  1828.  
  1829. UnitModel OilRig
  1830. {
  1831.     Parent      = BaseBuilding
  1832.     DefaultModel    = bld_OilRig.NIF
  1833.     ChildNames          = [TheAmbientPlacer LargeGlow]  //UnderTemple
  1834.     States = [
  1835.         { StateName="Idle" AnimName = Bld_oilrig_idle.kf}
  1836.         { StateName="Garrisoned"   AnimName = bld_OilRig_walk.kf
  1837.                 TextKeys = [{ Name = START_SOUND Data = Resource_oil KeyTime = 0}]}
  1838.          ]
  1839. }
  1840.  
  1841.  
  1842. //------------------------------------------------
  1843. //  URANIUM MINE       
  1844. //------------------------------------------------
  1845. UnitType UraniumMine
  1846. {
  1847.     parent = NoProduceBuilding
  1848.     placementType = OnResource
  1849.     placementTargetType = ResourceUranium
  1850.     icon = icon_unit_uraniumMine
  1851.     citizenManagerCursorSprite = spr_citmanager_cursor_uranmine
  1852.     properties {
  1853.         SizeX = 1.5
  1854.         SizeY = 1.5
  1855.         displayName = tx_utn_UraniumMine_name
  1856.         displayNamePlural = tx_utn_UraniumMine_pname
  1857.         VerboseTooltip = vtt_unit_UraniumMine
  1858.         HitPoints = 1000
  1859.         Mass = 1
  1860.     }
  1861.     abilities = [
  1862.         Garrison {
  1863.             garrisonType = UniWarehouseOilDerrickCityCenter;
  1864.             numOfSlots = 6;
  1865.             gatherRate = 0.75;  // 1 tech point every second for each garrisoned UnitType
  1866.             gatherType = Uranium;
  1867.             rightClickToGarrison = 1;
  1868.             GarrisonFlagModelName = "GarrisonFlag"
  1869.         }
  1870.         LOS { range = 4 }
  1871.     ]
  1872. }
  1873.  
  1874. UnitModel UraniumMine
  1875. {
  1876.     Parent      = BaseBuilding
  1877.     DefaultModel    = res_uranium_mine.NIF
  1878.     ChildNames          = [BuildingShadow TheAmbientPlacer LargeGlow]  
  1879.     States = [
  1880.         { StateName="Idle"
  1881.             TextKeys = [{ Name = START_SOUND Data = Resource_uranium KeyTime = 0}]}
  1882.    
  1883.          ]
  1884. }
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