Advertisement
Mjjstral

C&C3KW scripts.lua

Nov 7th, 2017
278
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 27.61 KB | None | 0 0
  1. --- define lua functions
  2. function NoOp(self, source)
  3. end
  4.  
  5.  
  6. function kill(self) -- Kill unit self.
  7.     ExecuteAction("NAMED_KILL", self);
  8. end
  9.  
  10. function RadiateUncontrollableFear( self )
  11.     ObjectBroadcastEventToEnemies( self, "BeUncontrollablyAfraid", 350 )
  12. end
  13.  
  14. function RadiateGateDamageFear(self)
  15.     ObjectBroadcastEventToAllies(self, "BeAfraidOfGateDamaged", 200)
  16. end
  17.  
  18. function OnNeutralGarrisonableBuildingCreated(self)
  19.     ObjectHideSubObjectPermanently( self, "ARMOR", true )
  20. end
  21.  
  22. function OnGDITechCenterCreated(self)
  23.     ObjectHideSubObjectPermanently( self, "UG_Boost", true )
  24.     ObjectHideSubObjectPermanently( self, "UG_Mortar", true )
  25.     ObjectHideSubObjectPermanently( self, "B_MortarRound_1", true )
  26.     ObjectHideSubObjectPermanently( self, "UG_Rail", true )
  27.     ObjectHideSubObjectPermanently( self, "UG_Scan", true )
  28.     ObjectHideSubObjectPermanently( self, "UG_Adaptive", true )
  29.     ObjectHideSubObjectPermanently( self, "UG_Adaptive01", true )
  30.     ObjectHideSubObjectPermanently( self, "UG_Adaptive02", true )
  31.     ObjectHideSubObjectPermanently( self, "UG_Adaptive04", true )  
  32. end
  33.  
  34. function OnGDIMedicalBayCreated(self)
  35.     ObjectHideSubObjectPermanently( self, "UG_CompositeArmor", true )
  36.     ObjectHideSubObjectPermanently( self, "UG_CompositeArmor02", true )
  37.     ObjectHideSubObjectPermanently( self, "UG_GrenadeEMP", true )
  38.     ObjectHideSubObjectPermanently( self, "UG_GrenadeEMP01", true )
  39.     ObjectHideSubObjectPermanently( self, "UG_StealthDetector", true )
  40.     ObjectHideSubObjectPermanently( self, "UG_StealthDetector01", true )
  41.     ObjectHideSubObjectPermanently( self, "UG_Injector", true )
  42.     ObjectHideSubObjectPermanently( self, "UG_Armor", true )
  43. end
  44.  
  45. function OnGDIAirfieldCreated(self)
  46.     ObjectHideSubObjectPermanently( self, "UG_Boost", true )
  47.     ObjectHideSubObjectPermanently( self, "UG_Ceramic", true )
  48.     ObjectHideSubObjectPermanently( self, "UG_Ceramic01", true )
  49.     ObjectHideSubObjectPermanently( self, "UG_Hardpoints", true )
  50.     ObjectHideSubObjectPermanently( self, "UG_Hardpoints01", true )
  51.     ObjectHideSubObjectPermanently( self, "UG_Hardpoints02", true )
  52.     ObjectHideSubObjectPermanently( self, "UG_Hardpoints03", true )
  53. end
  54.  
  55.  
  56. function OnGDIPowerPlantCreated(self)
  57.     ObjectHideSubObjectPermanently( self, "Turbines", true )
  58.     ObjectHideSubObjectPermanently( self, "TurbineGlows", true )
  59. end
  60.  
  61. function OnGDICommandPostCreated(self)
  62.     ObjectHideSubObjectPermanently( self, "UG_StealthDetector", true )
  63.     ObjectHideSubObjectPermanently( self, "UG_StealthDetector01", true )
  64.     ObjectHideSubObjectPermanently( self, "UG_StealthDetector02", true )
  65.     ObjectHideSubObjectPermanently( self, "UG_StealthDetector03", true )
  66.     ObjectHideSubObjectPermanently( self, "UG_Scan", true )
  67.     ObjectHideSubObjectPermanently( self, "UG_Scan01", true )
  68.     ObjectHideSubObjectPermanently( self, "UG_Scan02", true )
  69.     ObjectHideSubObjectPermanently( self, "UG_APAmmo", true )
  70.     ObjectHideSubObjectPermanently( self, "UG_APAmmo01", true )
  71.     ObjectHideSubObjectPermanently( self, "UG_APAmmo02", true )
  72. end
  73.  
  74. function OnGDIZoneTrooperCreated(self)
  75.     ObjectHideSubObjectPermanently( self, "UGSCANNER", true )
  76.     ObjectHideSubObjectPermanently( self, "UGJUMP", true )
  77.     ObjectHideSubObjectPermanently( self, "UGINJECTOR", true )
  78. end
  79.  
  80. function OnGDIPredatorCreated(self)
  81.     ObjectHideSubObjectPermanently( self, "UGRAIL_01", true )
  82. end
  83.  
  84. function OnGDIMammothCreated(self)
  85.     ObjectHideSubObjectPermanently( self, "UGRAIL_01", true )
  86.     ObjectHideSubObjectPermanently( self, "UGRAIL_02", true )
  87.     ObjectHideSubObjectPermanently( self, "MuzzleFlash_01", true )
  88.     ObjectHideSubObjectPermanently( self, "MuzzleFlash_02", true )
  89. end
  90.  
  91. function OnSteelTalonsMammothCreated(self)
  92.     ObjectHideSubObjectPermanently( self, "UGRAIL_01", true )
  93.     ObjectHideSubObjectPermanently( self, "UGRAIL_02", true )
  94.     ObjectHideSubObjectPermanently( self, "UGRAILACCELERATOR_01", true )
  95.     ObjectHideSubObjectPermanently( self, "UGRAILACCELERATOR_02", true )
  96.     ObjectHideSubObjectPermanently( self, "MuzzleFlash_01", true )
  97.     ObjectHideSubObjectPermanently( self, "MuzzleFlash_02", true )
  98. end
  99.  
  100. function OnGDIJuggernaughtCreated(self)
  101.     ObjectHideSubObjectPermanently( self, "MuzzleFlash_01", true )
  102.     ObjectHideSubObjectPermanently( self, "MuzzleFlash_02", true )
  103.     ObjectHideSubObjectPermanently( self, "MuzzleFlash_03", true )
  104.    
  105. end
  106.  
  107. function OnGDIWatchTowerCreated(self)
  108.     ObjectHideSubObjectPermanently( self, "MuzzleFlash_01", true )
  109.     ObjectHideSubObjectPermanently( self, "MuzzleFlash_02", true )
  110.     ObjectHideSubObjectPermanently( self, "UG_BASE", true )
  111.     ObjectHideSubObjectPermanently( self, "B_UG_TURRET", true )
  112. end
  113.  
  114. function OnGDIFirehawkCreated(self)
  115.     -- bomb load by default.
  116.     -- comment out to fix harpoint subobject issue ObjectGrantUpgrade( self, "Upgrade_SelectLoad_02" )
  117.     -- commented out because this is done through animation scripts ObjectHideSubObjectPermanently( self, "Plane04", true )
  118.     ObjectHideSubObjectPermanently( self, "UG_Hardpoints", true )
  119. end
  120.  
  121. function OnGDIPitbullCreated(self)
  122.     ObjectHideSubObjectPermanently( self, "MortorTube", true )
  123. end
  124.  
  125. function OnGDIOrcaCreated(self)
  126.     ObjectHideSubObjectPermanently( self, "UG_PROBE", true )
  127.     ObjectHideSubObjectPermanently( self, "UG_HARDPOINTS", true )
  128.     ObjectHideSubObjectPermanently( self, "UG_EC", true )
  129. end
  130.  
  131. function OnGDISniperSquadCreated(self)
  132.     ObjectSetObjectStatus( self, "CAN_SPOT_FOR_BOMBARD" )
  133. end
  134.  
  135. function OnGDIOrcaClipEmpty(self)
  136.     ObjectHideSubObjectPermanently( self, "MISSILE01", true )
  137. end
  138.  
  139. function OnGDIOrcaClipFull(self)
  140.     ObjectHideSubObjectPermanently( self, "MISSILE01", false )
  141. end
  142.  
  143. function OnGDIV35Ox_SummonedForVehicleCreated(self)
  144.     ObjectHideSubObjectPermanently( self, "LOADREF", true )
  145. end
  146.  
  147. function OnNODShredderCreated(self)
  148.  
  149. end
  150.  
  151. function OnNODRaiderTankCreated(self)
  152.     ObjectHideSubObjectPermanently( self, "Gun_Upgrade", true )
  153.     ObjectHideSubObjectPermanently( self, "Turret2_Gun", true )
  154.     ObjectHideSubObjectPermanently( self, "Turret2", true )
  155.     ObjectHideSubObjectPermanently( self, "MuzzleFlash_01", true )
  156.     ObjectHideSubObjectPermanently( self, "DOZERBLADE", true )
  157. end
  158.  
  159. function OnNODAvatarCreated(self)
  160.     ObjectHideSubObjectPermanently( self, "NUBEAM", true )
  161.     ObjectHideSubObjectPermanently( self, "FLAMETANK", true )
  162.     ObjectHideSubObjectPermanently( self, "S_DETECTOR", true )
  163.     ObjectHideSubObjectPermanently( self, "S_GENERATOR", true )
  164. end
  165.  
  166. function OnNODAvatarGenericEvent(self, data)
  167.  
  168.     local str = tostring( data )
  169.  
  170.     if str == "upgrades_copied" then
  171.         ObjectRemoveUpgrade( self, "Upgrade_Veterancy_VETERAN" );
  172.         ObjectRemoveUpgrade( self, "Upgrade_Veterancy_ELITE" );
  173.         ObjectRemoveUpgrade( self, "Upgrade_Veterancy_HEROIC" );
  174.     end
  175. end
  176.  
  177. function OnNODScorpionBuggyCreated(self)
  178.     ObjectHideSubObjectPermanently( self, "EMP", true )
  179. end
  180.  
  181. function OnNODVenomCreated(self)
  182.     ObjectHideSubObjectPermanently( self, "SigGen", true )
  183. end
  184.  
  185. function OnNODTechAssembleyPlantCreated(self)
  186.     ObjectHideSubObjectPermanently( self, "UG_EMP", true )
  187.     ObjectHideSubObjectPermanently( self, "UG_Lasers", true )
  188.     ObjectHideSubObjectPermanently( self, "UG_SigGen", true )
  189.     ObjectHideSubObjectPermanently( self, "UG_DozerBlades", true )
  190.     ObjectHideSubObjectPermanently( self, "SUPERCHARGEDPARTICALBEAM", true )
  191.     ObjectHideSubObjectPermanently( self, "CHARGEDPARTICALBEAM_01", true )
  192.     ObjectHideSubObjectPermanently( self, "CHARGEDPARTICALBEAM_02", true )
  193.     ObjectHideSubObjectPermanently( self, "CHARGEDPARTICALBEAM_03", true )
  194.     ObjectHideSubObjectPermanently( self, "TIBCOREMISSILER02", true )
  195.     ObjectHideSubObjectPermanently( self, "TIBCOREMISSILER", true )
  196. end
  197.  
  198. function OnNODSecretShrineCreated(self)
  199.     ObjectHideSubObjectPermanently( self, "GLOWS", true )  
  200.     ObjectHideSubObjectPermanently( self, "ConfUpgrd", true )
  201.     ObjectHideSubObjectPermanently( self, "CYBERNETICLEGS_01", true )
  202.     ObjectHideSubObjectPermanently( self, "CYBERNETICLEGS_02", true )
  203.     ObjectHideSubObjectPermanently( self, "CYBERNETICLEGS_03", true )
  204.     ObjectHideSubObjectPermanently( self, "CYBERNETICLEGS_04", true )
  205.     ObjectHideSubObjectPermanently( self, "CYBERNETICLEGS_05", true )
  206.     ObjectHideSubObjectPermanently( self, "CYBERNETICLEGS_06", true )
  207.     ObjectHideSubObjectPermanently( self, "CYBERNETICLEGS_07", true )
  208.     ObjectHideSubObjectPermanently( self, "CYBERNETICLEGS_08", true )
  209.     ObjectHideSubObjectPermanently( self, "BLACKDISCIPLES_GLOWS", true )
  210.     ObjectHideSubObjectPermanently( self, "BLACKDISCIPLESUPGRD", true )
  211.     ObjectHideSubObjectPermanently( self, "PURIFYINGFLAME01", true )
  212.     ObjectHideSubObjectPermanently( self, "PURIFYINGFLAME02", true )
  213. end
  214.  
  215. function OnNODHangarCreated(self)
  216.     ObjectHideSubObjectPermanently( self, "DISRUPTIONPODS", true )
  217.     ObjectHideSubObjectPermanently( self, "UG_SIGGEN", true )
  218.     ObjectHideSubObjectPermanently( self, "UG_SIGGEN_02", true )
  219. end
  220.  
  221. function OnNODOperationsCenterCreated(self)
  222.     ObjectHideSubObjectPermanently( self, "UG_DOZERBLADES", true )
  223.     ObjectHideSubObjectPermanently( self, "UG_QUADTURRETS", true )
  224.     ObjectHideSubObjectPermanently( self, "UG_SIGGEN", true )
  225. end
  226.  
  227. function OnNODSecretShrinePowerOutage(self)
  228.     if ObjectHasUpgrade( self, "Upgrade_NODConfessorUpgrade" ) == 1 then
  229.         ObjectHideSubObjectPermanently( self, "GLOWS", true )  
  230.     end
  231. end
  232.  
  233. function OnNODSecretShrinePowerRestored(self)        
  234.     if ObjectHasUpgrade( self, "Upgrade_NODConfessorUpgrade" ) == 1 then
  235.         ObjectHideSubObjectPermanently( self, "GLOWS", false ) 
  236.     end
  237. end
  238.  
  239. function onCreatedControlPointFunctions(self)
  240.     ObjectHideSubObjectPermanently( self, "TB_CP_ALN", true )
  241.     ObjectHideSubObjectPermanently( self, "TB_CP_GDI", true )
  242.     ObjectHideSubObjectPermanently( self, "TB_CP_NOD", true )
  243.     ObjectHideSubObjectPermanently( self, "LIGHTSF01", true )
  244.     ObjectHideSubObjectPermanently( self, "100", false)
  245.     ObjectHideSubObjectPermanently( self, "75", false)
  246.     ObjectHideSubObjectPermanently( self, "50", false)
  247.     ObjectHideSubObjectPermanently( self, "25", false )
  248. end
  249.  
  250. function onBuildingPowerOutage(self)
  251.     ObjectHideSubObjectPermanently( self, "LIGHTS", true )
  252.     ObjectHideSubObjectPermanently( self, "FXLIGHTS05", true )
  253.     ObjectHideSubObjectPermanently( self, "FXLIGHTS", true )
  254.     ObjectHideSubObjectPermanently( self, "FXGLOWS", true )
  255.     ObjectHideSubObjectPermanently( self, "FLASHINGLIGHTS", true )
  256.     ObjectHideSubObjectPermanently( self, "MESH01", true )
  257.     ObjectHideSubObjectPermanently( self, "POWERPLANTGLOWS", true )
  258.     ObjectHideSubObjectPermanently( self, "LIGHTL", true )
  259.     ObjectHideSubObjectPermanently( self, "LIGHTR", true )
  260.     ObjectHideSubObjectPermanently( self, "LIGHTS1", true )
  261.     ObjectHideSubObjectPermanently( self, "NBCHEMICALPTE1", true )
  262.     ObjectHideSubObjectPermanently( self, "LINKS", true )
  263.     ObjectHideSubObjectPermanently( self, "MESH28", true )
  264.     ObjectHideSubObjectPermanently( self, "TURBINEGLOWS", true )
  265.     ObjectHideSubObjectPermanently( self, "GLOWS", true )
  266. end
  267.  
  268. function onBuildingPowerRestored(self)
  269.     ObjectHideSubObjectPermanently( self, "LIGHTS", false )
  270.     ObjectHideSubObjectPermanently( self, "FXLIGHTS05", false )
  271.     ObjectHideSubObjectPermanently( self, "FXLIGHTS", false )
  272.     ObjectHideSubObjectPermanently( self, "FXGLOWS", false )
  273.     ObjectHideSubObjectPermanently( self, "FLASHINGLIGHTS", false )
  274.     ObjectHideSubObjectPermanently( self, "MESH01", false )
  275.     ObjectHideSubObjectPermanently( self, "POWERPLANTGLOWS", false )
  276.     ObjectHideSubObjectPermanently( self, "LIGHTL", false )
  277.     ObjectHideSubObjectPermanently( self, "LIGHTR", false )
  278.     ObjectHideSubObjectPermanently( self, "LIGHTS1", false )
  279.     ObjectHideSubObjectPermanently( self, "NBCHEMICALPTE1", false )
  280.     ObjectHideSubObjectPermanently( self, "LINKS", false )
  281.     ObjectHideSubObjectPermanently( self, "MESH28", false )
  282.     ObjectHideSubObjectPermanently( self, "TURBINEGLOWS", false )
  283.     ObjectHideSubObjectPermanently( self, "GLOWS", false )
  284. end
  285.  
  286.  
  287.  
  288.  
  289.  
  290.  
  291.  
  292. function OnNeutralGarrisonableBuildingGenericEvent(self,data)
  293. end
  294.  
  295. function onCreatedGDIOrcaAirstrike(self)
  296.     ObjectForbidPlayerCommands( self, true )
  297. end
  298.  
  299. function onCreatedAlienMCVUnpacking(self)
  300.     ObjectForbidPlayerCommands( self, true )
  301. end
  302.  
  303. function GoIntoRampage(self)
  304.     ObjectEnterRampageState(self)
  305.        
  306.     --Broadcast fear to surrounding unit(if we actually rampaged)
  307.     if ObjectTestModelCondition(self, "WEAPONSET_RAMPAGE") then
  308.         ObjectBroadcastEventToUnits(self, "BeAfraidOfRampage", 250)
  309.     end
  310. end
  311.  
  312. function MakeMeAlert(self)
  313.     ObjectEnterAlertState(self)
  314. end
  315.  
  316. function BecomeUncontrollablyAfraid(self, other)
  317.     if not ObjectTestCanSufferFear(self) then
  318.         return
  319.     end
  320.  
  321.     ObjectEnterUncontrollableCowerState(self, other)
  322. end
  323.  
  324. function BecomeAfraidOfRampage(self, other)
  325.     if not ObjectTestCanSufferFear(self) then
  326.         return
  327.     end
  328.  
  329.     ObjectEnterCowerState(self, other)
  330. end
  331.  
  332. function RadiateTerror(self, other)
  333.     ObjectBroadcastEventToEnemies(self, "BeTerrified", 180)
  334. end
  335.    
  336. function RadiateTerrorEx(self, other, terrorRange)
  337.     ObjectBroadcastEventToEnemies(self, "BeTerrified", terrorRange)
  338. end
  339.    
  340.  
  341. function BecomeTerrified(self, other)
  342.     ObjectEnterRunAwayPanicState(self, other)
  343. end
  344.  
  345. function BecomeAfraidOfGateDamaged(self, other)
  346.     if not ObjectTestCanSufferFear(self) then
  347.         return
  348.     end
  349.  
  350.     ObjectEnterCowerState(self,other)
  351. end
  352.  
  353.  
  354. function ChantForUnit(self) -- Used by units to broadcast the chant event to their own side.
  355.     ObjectBroadcastEventToAllies(self, "BeginChanting", 9999)
  356. end
  357.  
  358. function StopChantForUnit(self) -- Used by units to stop the chant event to their own side.
  359.     ObjectBroadcastEventToAllies(self, "StopChanting", 9999)
  360. end
  361.  
  362. function SpyMoving(self, other)
  363.     print(ObjectDescription(self).." spying movement of "..ObjectDescription(other));
  364. end
  365.  
  366. function OnGarrisonableCreated(self)
  367.     ObjectHideSubObjectPermanently( self, "GARRISON01", true )
  368.     ObjectHideSubObjectPermanently( self, "GARRISON02", true )
  369. end
  370.  
  371. function OnRubbleDropshipCreated(self)
  372.     ObjectHideSubObjectPermanently( self, "Loadref", true )
  373. end
  374.  
  375. -- XPACK LUA FUNCTION DEFINITIONS
  376.  
  377. function OnTitanCreated(self)
  378.     ObjectHideSubObjectPermanently( self, "UGRail_01", true )
  379.     ObjectHideSubObjectPermanently( self, "UGRail_Barrel", true )
  380.     ObjectHideSubObjectPermanently( self, "MUZZLEFLASH_01", true )
  381.     ObjectHideSubObjectPermanently( self, "UGRAILACCELERATOR_01", true )
  382.     ObjectHideSubObjectPermanently( self, "UGRAILACCELERATOR_BARREL", true )
  383. end
  384.  
  385. function OnAlienHexapodCreated(self)
  386.     ObjectHideSubObjectPermanently( self, "AUTELEPORT_LR", true )
  387.     ObjectHideSubObjectPermanently( self, "AUTELEPORT_LM", true )
  388.     ObjectHideSubObjectPermanently( self, "AUTELEPORT_LF", true )  
  389.  
  390.     ObjectHideSubObjectPermanently( self, "AUSHOCKBASE_LR", true )
  391.     ObjectHideSubObjectPermanently( self, "AUSHOCKBASE_LM", true )
  392.     ObjectHideSubObjectPermanently( self, "AUSHOCKBASE_LF", true )
  393.     ObjectHideSubObjectPermanently( self, "AUSHOCKTURRET_LR", true )
  394.     ObjectHideSubObjectPermanently( self, "AUSHOCKTURRET_LM", true )
  395.     ObjectHideSubObjectPermanently( self, "AUSHOCKTURRET_LF", true )
  396.  
  397.     ObjectHideSubObjectPermanently( self, "AUSTALKBASE_LR", true )
  398.     ObjectHideSubObjectPermanently( self, "AUSTALKBASE_LM", true )
  399.     ObjectHideSubObjectPermanently( self, "AUSTALKBASE_LF", true )
  400.     ObjectHideSubObjectPermanently( self, "AUSTALKTURRET_LR", true )
  401.     ObjectHideSubObjectPermanently( self, "AUSTALKTURRET_LM", true )
  402.     ObjectHideSubObjectPermanently( self, "AUSTALKTURRET_LF", true )   
  403.  
  404.     ObjectHideSubObjectPermanently( self, "AUPLASMABASE_LR", true )
  405.     ObjectHideSubObjectPermanently( self, "AUPLASMABASE_LM", true )
  406.     ObjectHideSubObjectPermanently( self, "AUPLASMABASE_LF", true )
  407.     ObjectHideSubObjectPermanently( self, "AUPLASMAGUN_LR", true )
  408.     ObjectHideSubObjectPermanently( self, "AUPLASMAGUN_LM", true )
  409.     ObjectHideSubObjectPermanently( self, "AUPLASMAGUN_LF", true ) 
  410.    
  411.     ObjectHideSubObjectPermanently( self, "AUHEALTHBASE_LR", true )
  412.     ObjectHideSubObjectPermanently( self, "AUHEALTHBASE_LM", true )
  413.     ObjectHideSubObjectPermanently( self, "AUHEALTHBASE_LF", true )
  414.     ObjectHideSubObjectPermanently( self, "AUHEALTHTURRET_LR", true )
  415.     ObjectHideSubObjectPermanently( self, "AUHEALTHTURRET_LM", true )
  416.     ObjectHideSubObjectPermanently( self, "AUHEALTHTURRET_LF", true )  
  417.     ObjectHideSubObjectPermanently( self, "FX_HEALTHRINGS_LR", true )
  418.     ObjectHideSubObjectPermanently( self, "FX_HEALTHRINGS_LM", true )
  419.     ObjectHideSubObjectPermanently( self, "FX_HEALTHRINGS_LF", true )  
  420.  
  421.     ObjectHideSubObjectPermanently( self, "AUTELEPORT_RR", true )
  422.     ObjectHideSubObjectPermanently( self, "AUTELEPORT_RM", true )
  423.     ObjectHideSubObjectPermanently( self, "AUTELEPORT_RF", true )  
  424.  
  425.     ObjectHideSubObjectPermanently( self, "AUSHOCKBASE_RR", true )
  426.     ObjectHideSubObjectPermanently( self, "AUSHOCKBASE_RM", true )
  427.     ObjectHideSubObjectPermanently( self, "AUSHOCKBASE_RF", true )
  428.     ObjectHideSubObjectPermanently( self, "AUSHOCKTURRET_RR", true )
  429.     ObjectHideSubObjectPermanently( self, "AUSHOCKTURRET_RM", true )
  430.     ObjectHideSubObjectPermanently( self, "AUSHOCKTURRET_RF", true )
  431.    
  432.     ObjectHideSubObjectPermanently( self, "AUSTALKBASE_RR", true )
  433.     ObjectHideSubObjectPermanently( self, "AUSTALKBASE_RM", true )
  434.     ObjectHideSubObjectPermanently( self, "AUSTALKBASE_RF", true )
  435.     ObjectHideSubObjectPermanently( self, "AUSTALKTURRET_RR", true )
  436.     ObjectHideSubObjectPermanently( self, "AUSTALKTURRET_RM", true )
  437.     ObjectHideSubObjectPermanently( self, "AUSTALKTURRET_RF", true )   
  438.  
  439.     ObjectHideSubObjectPermanently( self, "AUPLASMABASE_RR", true )
  440.     ObjectHideSubObjectPermanently( self, "AUPLASMABASE_RM", true )
  441.     ObjectHideSubObjectPermanently( self, "AUPLASMABASE_RF", true )
  442.     ObjectHideSubObjectPermanently( self, "AUPLASMAGUN_RR", true )
  443.     ObjectHideSubObjectPermanently( self, "AUPLASMAGUN_RM", true )
  444.     ObjectHideSubObjectPermanently( self, "AUPLASMAGUN_RF", true ) 
  445.    
  446.     ObjectHideSubObjectPermanently( self, "AUHEALTHBASE_RR", true )
  447.     ObjectHideSubObjectPermanently( self, "AUHEALTHBASE_RM", true )
  448.     ObjectHideSubObjectPermanently( self, "AUHEALTHBASE_RF", true )
  449.     ObjectHideSubObjectPermanently( self, "AUHEALTHTURRET_RR", true )
  450.     ObjectHideSubObjectPermanently( self, "AUHEALTHTURRET_RM", true )
  451.     ObjectHideSubObjectPermanently( self, "AUHEALTHTURRET_RF", true )  
  452.     ObjectHideSubObjectPermanently( self, "FX_HEALTHRINGS_RR", true )
  453.     ObjectHideSubObjectPermanently( self, "FX_HEALTHRINGS_RM", true )
  454.     ObjectHideSubObjectPermanently( self, "FX_HEALTHRINGS_RF", true )  
  455. end
  456.  
  457. function OnGDIMARVCreated(self)
  458.     ObjectHideSubObjectPermanently( self, "GN_Base_TreadLR", true )
  459.     ObjectHideSubObjectPermanently( self, "GN_Base_TreadLF", true )
  460.     ObjectHideSubObjectPermanently( self, "GN_Base_TreadRR", true )
  461.     ObjectHideSubObjectPermanently( self, "GN_Base_TreadRF", true )
  462.     ObjectHideSubObjectPermanently( self, "GN_Turret_TreadLR", true )  
  463.     ObjectHideSubObjectPermanently( self, "GN_Turret_TreadLF", true )  
  464.     ObjectHideSubObjectPermanently( self, "GN_Turret_TreadRR", true )  
  465.     ObjectHideSubObjectPermanently( self, "GN_Turret_TreadRF", true )  
  466.    
  467.     ObjectHideSubObjectPermanently( self, "EN_Base_TreadLR", true )
  468.     ObjectHideSubObjectPermanently( self, "EN_Base_TreadLF", true )
  469.     ObjectHideSubObjectPermanently( self, "EN_Base_TreadRR", true )
  470.     ObjectHideSubObjectPermanently( self, "EN_Base_TreadRF", true )
  471.     ObjectHideSubObjectPermanently( self, "EN_Turret_TreadLR", true )  
  472.     ObjectHideSubObjectPermanently( self, "EN_Turret_TreadLF", true )  
  473.     ObjectHideSubObjectPermanently( self, "EN_Turret_TreadRR", true )  
  474.     ObjectHideSubObjectPermanently( self, "EN_Turret_TreadRF", true )  
  475.    
  476.     ObjectHideSubObjectPermanently( self, "ZT_Base_TreadLR", true )
  477.     ObjectHideSubObjectPermanently( self, "ZT_Base_TreadLF", true )
  478.     ObjectHideSubObjectPermanently( self, "ZT_Base_TreadRR", true )
  479.     ObjectHideSubObjectPermanently( self, "ZT_Base_TreadRF", true )
  480.     ObjectHideSubObjectPermanently( self, "ZT_Turret_TreadLR", true )  
  481.     ObjectHideSubObjectPermanently( self, "ZT_Turret_TreadLF", true )  
  482.     ObjectHideSubObjectPermanently( self, "ZT_TURRETRR", true )
  483.     ObjectHideSubObjectPermanently( self, "ZT_Turret_TreadRF", true )  
  484.    
  485.     ObjectHideSubObjectPermanently( self, "MS_Base_TreadLR", true )
  486.     ObjectHideSubObjectPermanently( self, "MS_Base_TreadLF", true )
  487.     ObjectHideSubObjectPermanently( self, "MS_Base_TreadRR", true )
  488.     ObjectHideSubObjectPermanently( self, "MS_Base_TreadRF", true )
  489.     ObjectHideSubObjectPermanently( self, "MS_Turret_TreadLR", true )  
  490.     ObjectHideSubObjectPermanently( self, "MS_Turret_TreadLF", true )  
  491.     ObjectHideSubObjectPermanently( self, "MS_Turret_TreadRR", true )  
  492.     ObjectHideSubObjectPermanently( self, "MS_Turret_TreadRF", true )  
  493.    
  494.     ObjectHideSubObjectPermanently( self, "RM_Base_TreadLR", true )
  495.     ObjectHideSubObjectPermanently( self, "RM_Base_TreadLF", true )
  496.     ObjectHideSubObjectPermanently( self, "RM_Base_TreadRR", true )
  497.     ObjectHideSubObjectPermanently( self, "RM_Base_TreadRF", true )
  498.     ObjectHideSubObjectPermanently( self, "RM_Turret_TreadLR", true )  
  499.     ObjectHideSubObjectPermanently( self, "RM_Turret_TreadLF", true )  
  500.     ObjectHideSubObjectPermanently( self, "RM_Turret_TreadRR", true )  
  501.     ObjectHideSubObjectPermanently( self, "RM_Turret_TreadRF", true )
  502.    
  503.     ObjectHideSubObjectPermanently( self, "ST_Base_TreadLR", true )
  504.     ObjectHideSubObjectPermanently( self, "ST_Base_TreadLF", true )
  505.     ObjectHideSubObjectPermanently( self, "ST_Base_TreadRR", true )
  506.     ObjectHideSubObjectPermanently( self, "ST_Base_TreadRF", true )
  507.     ObjectHideSubObjectPermanently( self, "ST_Turret_TreadLR", true )  
  508.     ObjectHideSubObjectPermanently( self, "ST_Turret_TreadLF", true )  
  509.     ObjectHideSubObjectPermanently( self, "ST_Turret_TreadRR", true )  
  510.     ObjectHideSubObjectPermanently( self, "ST_Turret_TreadRF", true )
  511.     ObjectHideSubObjectPermanently( self, "ST_LASERLR", true ) 
  512.     ObjectHideSubObjectPermanently( self, "ST_LASERLF", true )     
  513.     ObjectHideSubObjectPermanently( self, "ST_LASERRR", true )     
  514.     ObjectHideSubObjectPermanently( self, "ST_LASERRF", true )     
  515.    
  516. end
  517.  
  518. function OnNODMetaUnitCreated(self)
  519.     ObjectHideSubObjectPermanently( self, "B_FTR", true )
  520.     ObjectHideSubObjectPermanently( self, "FTR", true )
  521.     ObjectHideSubObjectPermanently( self, "FX_FTpilotflameR", true )
  522.     ObjectHideSubObjectPermanently( self, "B_FTL", true )
  523.     ObjectHideSubObjectPermanently( self, "FTL", true )
  524.     ObjectHideSubObjectPermanently( self, "FX_FTpilotflameL", true )   
  525.     ObjectHideSubObjectPermanently( self, "HvyMGL", true )
  526.     ObjectHideSubObjectPermanently( self, "HvyMGBarrelL", true )
  527.     ObjectHideSubObjectPermanently( self, "MuzzleFlash_01", true ) 
  528.     ObjectHideSubObjectPermanently( self, "HvyMGR", true )
  529.     ObjectHideSubObjectPermanently( self, "HvyMGBarrelR", true )
  530.     ObjectHideSubObjectPermanently( self, "MuzzleFlash_02", true ) 
  531.     ObjectHideSubObjectPermanently( self, "RocketPodL", true )
  532.     ObjectHideSubObjectPermanently( self, "RocketPodR", true ) 
  533.     ObjectHideSubObjectPermanently( self, "ModuleR", true )
  534.     ObjectHideSubObjectPermanently( self, "ModuleBeacontR", true )
  535.     ObjectHideSubObjectPermanently( self, "ModuleLightR", true )   
  536.     ObjectHideSubObjectPermanently( self, "ModuleL", true )
  537.     ObjectHideSubObjectPermanently( self, "ModuleBeaconL", true )
  538.     ObjectHideSubObjectPermanently( self, "ModuleLightL", true )   
  539. end
  540.  
  541. function OnAlienMechapedeCreated(self)
  542.     ObjectHideSubObjectPermanently( self, "TIBERIUM_SPRAY_MODULE", true )
  543.     ObjectHideSubObjectPermanently( self, "SHARD_MODULE", true )
  544.     ObjectHideSubObjectPermanently( self, "PLASMA_DISC_MODULE", true )
  545.     ObjectHideSubObjectPermanently( self, "DISINTEGRATOR_MODULE", true )   
  546. end
  547.  
  548. function OnAlienPACCreated(self)
  549.     ObjectHideSubObjectPermanently( self, "TravEng01", true )
  550.     ObjectHideSubObjectPermanently( self, "TravEng02", true )
  551. end
  552.  
  553. function OnAlienDevastatorCreated(self)
  554.     ObjectHideSubObjectPermanently( self, "TravEng01", true )
  555.     ObjectHideSubObjectPermanently( self, "TravEng02", true )
  556. end
  557.  
  558. function OnGDIGrenadeSoldierCreated(self)
  559.     ObjectHideSubObjectPermanently( self, "UG_STRAPS", true )
  560.     ObjectHideSubObjectPermanently( self, "UG_GRENADEEMP_PROJECTILE", true )
  561. end
  562.  
  563. function OnGDIGuardianCannonCreated(self)
  564.     ObjectHideSubObjectPermanently( self, "UGRAILMAIN", true )
  565.     ObjectHideSubObjectPermanently( self, "UG_RAILBARREL2", true )
  566.     ObjectHideSubObjectPermanently( self, "UG_RAILBARREL1", true )
  567. end
  568.  
  569. function OnAlienPhotonCannonCreated(self)
  570.     ObjectHideSubObjectPermanently( self, "UG_SHARD", true )
  571.     ObjectHideSubObjectPermanently( self, "UG_SHARDWEAPON", true )
  572. end
  573.  
  574. function OnAlienPMBatteryCreated(self)
  575.     ObjectHideSubObjectPermanently( self, "UG_SHARD", true )
  576.     ObjectHideSubObjectPermanently( self, "UG_SHARDWEAPON", true )
  577. end
  578.  
  579. function OnNODShadowSquadBeaconCreated(self)
  580.     ObjectSetObjectStatus( self, "CAN_SPOT_FOR_BOMBARD" )
  581. end
  582.  
  583. function OnAlienSeekerTankCreated(self)
  584.     ObjectHideSubObjectPermanently( self, "AUSHARDWEAPON_C_G", true )
  585.     ObjectHideSubObjectPermanently( self, "UG_SHARDWEAPON", true )
  586. end
  587.  
  588.  
  589. --function OnImprovedCyborgCreated(self)
  590. --  ObjectHideSubObjectPermanently( self, "WEAPON_PARTICLEBM_UPGRADED", true )
  591. --end
  592.  
  593. function OnBunkerTruckCreated(self)
  594.     ObjectHideSubObjectPermanently( self, "DOZERBLADE", true )
  595. end
  596.  
  597. function OnCyborgCreated(self)
  598.     ObjectHideSubObjectPermanently( self, "WEAPON_PARTICLEBM", true )
  599. end
  600.  
  601.  
  602. function OnWolverineCreated(self)
  603.     ObjectHideSubObjectPermanently( self, "UG_Weapon01", true )
  604.     ObjectHideSubObjectPermanently( self, "UG_Weapon02", true )
  605.     ObjectHideSubObjectPermanently( self, "UG_Ammo", true )
  606. end
  607.  
  608. function OnStalkerCreated(self)
  609.     ObjectHideSubObjectPermanently( self, "AUStalker_C_B", true )
  610.     ObjectHideSubObjectPermanently( self, "AUStalker_Gun", true )
  611. end
  612.  
  613. function OnGunshipCreated(self)
  614.     ObjectHideSubObjectPermanently( self, "FXWEAPON01", true )
  615.     ObjectHideSubObjectPermanently( self, "FXWEAPON02", true )
  616.     ObjectHideSubObjectPermanently( self, "FXWEAPON03", true )
  617.     ObjectHideSubObjectPermanently( self, "FXWEAPON04", true )
  618. end
  619.  
  620.  
  621. function OnAAScoutCreated(self)
  622.     ObjectHideSubObjectPermanently( self, "FXMUZZLEFLASH01", true )
  623.     ObjectHideSubObjectPermanently( self, "FXMUZZLEFLASH02", true )
  624.     ObjectHideSubObjectPermanently( self, "FXMUZZLEFLASH03", true )
  625.     ObjectHideSubObjectPermanently( self, "FXMUZZLEFLASH04", true )
  626. end
  627.  
  628. function OnMobileArtilleryCreated(self)
  629.     ObjectHideSubObjectPermanently( self, "MUZZLEFLASH_01", true )
  630.     --ObjectHideSubObjectPermanently( self, "TREDS", true )
  631. end
  632.  
  633. function OnAABatteryCreated(self)
  634.     ObjectHideSubObjectPermanently( self, "UG_TUNGSTENBASE", true )
  635.     ObjectHideSubObjectPermanently( self, "UG_TUNGSTENAMMO", true )
  636.     ObjectHideSubObjectPermanently( self, "UG_TUNGSTENGUN", true )
  637.     ObjectHideSubObjectPermanently( self, "UGTAmNewSkin", true )
  638.     ObjectHideSubObjectPermanently( self, "UGTungNewSkin", true )
  639. end
  640.  
  641. function OnNODRocketBunkerSpawnCreated(self)
  642.     ObjectHideSubObjectPermanently( self, "TIBCOREMISSILE", true )
  643.     ObjectHideSubObjectPermanently( self, "HOSE", true )
  644. end
  645.  
  646. function OnCombatEngineerCreated(self)
  647.     ObjectHideSubObjectPermanently( self, "MUZZLEFLASH", true )
  648.     ObjectHideSubObjectPermanently( self, "LASER", true )
  649. end
  650.  
  651. function OnZOCOMOrcaCreated(self)
  652.     ObjectHideSubObjectPermanently( self, "UG_PROBE", true )
  653.     ObjectHideSubObjectPermanently( self, "UG_HARDPOINTS", true )
  654.     ObjectHideSubObjectPermanently( self, "MISSILE01", true )
  655.     --ObjectHideSubObjectPermanently( self, "UG_EC", true )
  656. end
  657.  
  658. function OnGDIAPCCreated(self)
  659.     ObjectHideSubObjectPermanently( self, "APC_UGAB", true )
  660.     ObjectHideSubObjectPermanently( self, "APC_UGTURRET", true )
  661.     ObjectHideSubObjectPermanently( self, "TURRET_PITCH", false )
  662. end
  663.  
  664. function OnReaperTripodCreated(self)
  665.     ObjectHideSubObjectPermanently( self, "AU_RPRTRIPOD_UPGR01", true )
  666. end
  667.  
  668. function OnReaper17DevourerCreated(self)
  669.     ObjectHideSubObjectPermanently( self, "AU_DEVOURER_UPGR01", true )
  670. end
  671.  
  672. function OnAlienMotherShipCreated(self)
  673.     ObjectSetObjectStatus( self, "AIRBORNE_TARGET" )
  674. end
  675.  
  676. function OnBlackHandCustomWarmechCreated(self)
  677.     ObjectHideSubObjectPermanently( self, "NUBEAM", true )
  678.     ObjectHideSubObjectPermanently( self, "S_DETECTOR", true )
  679.     ObjectHideSubObjectPermanently( self, "S_GENERATOR", true )
  680. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement