Private Joined: 12/1/2015(UTC) Posts: 29 Location: Auckland Thanks: 3 times Was thanked: 4 time(s) in 3 post(s)
|
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: Code:
;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?
|
|
|
|
General Joined: 3/8/2016(UTC) Posts: 1,156 Thanks: 312 times Was thanked: 185 time(s) in 149 post(s)
|
|
|
|
|
|
Private Joined: 12/1/2015(UTC) Posts: 29 Location: Auckland Thanks: 3 times Was thanked: 4 time(s) in 3 post(s)
|
Yes it is really weird.. Out of curiosity would you know what the scripted special power stuff actually does or did in the game?
|
|
|
|
Major Joined: 3/27/2015(UTC) Posts: 490
Thanks: 5 times Was thanked: 213 time(s) in 155 post(s)
|
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. Edited by user Sunday, April 19, 2020 7:50:55 PM(UTC)
| Reason: Not specified |
|
2 users thanked Zatsupachi for this useful post.
|
|
|
Private Joined: 12/1/2015(UTC) Posts: 29 Location: Auckland Thanks: 3 times Was thanked: 4 time(s) in 3 post(s)
|
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.
|
|
|
|
Users browsing this topic |
Guest
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.