Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Offline tanksarevictory  
#1 Posted : Wednesday, April 15, 2020 12:21:02 AM(UTC)
tanksarevictory
Private
Joined: 12/1/2015(UTC)
Posts: 29
New Zealand
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?

Sponsor
Offline AdrianeMapMaker  
#2 Posted : Saturday, April 18, 2020 4:51:17 AM(UTC)
AdrianeMapMaker
General
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 3/8/2016(UTC)
Posts: 1,156
Philippines

Thanks: 312 times
Was thanked: 185 time(s) in 149 post(s)
hmmm thats really weird
A part of ZH worldbuilders map making community
https://discord.gg/tJ6zyGb

UserPostedImage





Offline tanksarevictory  
#3 Posted : Saturday, April 18, 2020 6:10:33 PM(UTC)
tanksarevictory
Private
Joined: 12/1/2015(UTC)
Posts: 29
New Zealand
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?
Offline Zatsupachi  
#4 Posted : Sunday, April 19, 2020 7:49:53 PM(UTC)
Zatsupachi
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

"It's precision_bomber."

Death Label HAS BEEN RELEASED(go get v0.99):
http://www.moddb.com/mod...oads/death-label-ver-099

Next Episode:
precision_bomber's Zero Hour SCIENCE!
thanks 2 users thanked Zatsupachi for this useful post.
tanksarevictory on 4/19/2020(UTC), CommieDog on 5/31/2020(UTC)
Offline tanksarevictory  
#5 Posted : Sunday, April 19, 2020 8:20:15 PM(UTC)
tanksarevictory
Private
Joined: 12/1/2015(UTC)
Posts: 29
New Zealand
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.