tanksarevictory
5 years ago
I've seen this code used, specifically cargo planes, and now I've wondered what it really did. The comment above the code didn't help:


  ;SCRIPTED SUPPORT: These special powers are triggered directly 
  ;from the transport without creating a transport. This is done 
  ;via new code support and CreateLocation USE_OWNER_OBJECT -- 
  ;which also prevents creating the payload transport.
  Behavior    = OCLSpecialPower ModuleTag_05
    SpecialPowerTemplate = SuperweaponDaisyCutter ;@@KRIS@@
    OCL                  = SUPERWEAPON_DaisyCutter
    CreateLocation       = USE_OWNER_OBJECT
    ScriptedSpecialPowerOnly = Yes
  End
  Behavior    = OCLSpecialPower ModuleTag_06
    SpecialPowerTemplate = SuperweaponParadropAmerica
    UpgradeOCL           = SCIENCE_Paradrop3 SUPERWEAPON_Paradrop3
    UpgradeOCL           = SCIENCE_Paradrop2 SUPERWEAPON_Paradrop2
    OCL                  = SUPERWEAPON_Paradrop1
    CreateLocation       = USE_OWNER_OBJECT
    ScriptedSpecialPowerOnly = Yes
  End 

I noticed when I commented it out the AI no longer spawns a cargo plane out of nowhere during skirmish matches (i.e a fuel air bomb plane randomly appearing in your base) but changing USE_OWNER_OBJECT to CREATE_AT_EDGE_NEAR_SOURCE sometimes makes the plane appear out of any side of the map?

What is the use of the scripted special power? Something tells me its for the campaigns and stuff?

Sponsor
AdrianeMapMaker
5 years ago
hmmm thats really weird

A part of ZH worldbuilders map making community
https://discord.gg/tJ6zyGb 

UserPostedImage




tanksarevictory
5 years ago
Yes it is really weird.. Out of curiosity would you know what the scripted special power stuff actually does or did in the game?
Zatsupachi
5 years ago
Yes. They are exclusively for use in campaign missions triggered via scripting.

YES,that's how CreateLocation works. There's a list regarding valid CreateLocation bits by Deezire in their ModuleList documentation.

USE_OWNER_OBJECT basically spawns the transport on the OBJECT called it and CREATE_AT_EDGE_NEAR_SOURCE spawns the transport AT THE EDGE of the map NEAREST to the OBJECT that called it.
"It's precision_bomber."
Death Label HAS BEEN RELEASED(go get v0.99):
http://www.moddb.com/mods/death-label/downloads/death-label-ver-099 
Next Episode:
precision_bomber's Zero Hour SCIENCE!
tanksarevictory
5 years ago
Oh ok thanks for that, made it a bit clearer for me now. Yeah I did download the module list from deezire and had a read through that. I'll still comment it out tho since I'm not interested in playing the campaigns at the moment.