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

Notification

Icon
Error

Options
Go to last post Go to first unread
Offline Apocalypse232  
#1 Posted : Saturday, November 10, 2018 8:36:13 AM(UTC)
Apocalypse232
Captain
Joined: 9/18/2018(UTC)
Posts: 55
United Kingdom

Thanks: 20 times
Was thanked: 4 time(s) in 3 post(s)
Hi.
So I made a new Special power(it's called DemoDrop) for general Juhziz and I also made a new GLA parachute for it. Anyways, when I click on the icon of the special power, a texture appears to select target. The problem is that I want to change it. I managed to change the after the click texture(confirmed target texture, that stays on the ground after you click for the first time). To make it clear, I will attach 2 pictures.

I want to make both textures to be of the same type(carpet bomb texture) and color(green).

My second problem is that when the plane drops the demo traps, they are not exactly dropped inside the texture radius. How can I fix this issue?

File Attachment(s):
Before clicking.png (1,896kb) downloaded 21 time(s).
After clicking.png (908kb) downloaded 27 time(s).
Deploy Zone.png (1,287kb) downloaded 23 time(s).
Sponsor
Offline UTD^Force  
#2 Posted : Sunday, November 11, 2018 1:01:11 PM(UTC)
UTD^Force
Colonel
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 8/13/2013(UTC)
Posts: 817
Jordan
Location: Middle east

Thanks: 430 times
Was thanked: 184 time(s) in 168 post(s)
Problem #1:

Change this line for the commandbutton:

RadiusCursorType = CARPETBOMB ;PARADROP

Example:
Code:
CommandButton Command_MoneyDropA
  Command             = SPECIAL_POWER
  SpecialPower        = SuperweaponMoneyDrop
  Options             = NEED_TARGET_POS CONTEXTMODE_COMMAND NEED_SPECIAL_POWER_SCIENCE 
  TextLabel           = OBJECT:DaisyCutterBomb
  ButtonImage         = SSSell2
  ButtonBorderType    = ACTION ; Identifier for the User as to what kind of button this is
  DescriptLabel       = CONTROLBAR:TooltipDaisyCutter
  RadiusCursorType    = CARPETBOMB ;PARADROP
  InvalidCursorName     = GenericInvalid
End
Proud Muslim

UTD^Force

Moderator and former map reviewer
CnC Labs
thanks 1 user thanked UTD^Force for this useful post.
Apocalypse232 on 11/12/2018(UTC)
Offline UTD^Force  
#3 Posted : Sunday, November 11, 2018 1:01:22 PM(UTC)
UTD^Force
Colonel
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 8/13/2013(UTC)
Posts: 817
Jordan
Location: Middle east

Thanks: 430 times
Was thanked: 184 time(s) in 168 post(s)
Problem #2:

Make adjustments to the objectcreationlist to get something similar to this:
Code:
    DropDelay = 250 ;;HAVING LESS THAN THIS WILL LOOK REALLY BAD WHILE DROPPING ; time in between each item dropped (if more than one)
    
    ParachuteDirectly = Yes ; will tell all contained parachutes to go ahead and bunch
    
    PutInContainer = AmericaParachute ;;;YOUR NEW PARACHUTE HERE
    
    Payload = SupplyDropZoneCrate 8 ;;;START WITH 8 AND KEEP INCREASING IF YOU WANT. UNTIL YOU REACH THE NUMBER WHERE SOMETHING IS DROPPED OUTSIDE THE TEXTURE'S RADIUS
    
    DeliveryDecalRadius = 200 ;YOU PROBABLY HAVE THIS AT 180, YOU CAN INCREASE IT IF YOU WANT TO ALLOW MORE DEMOTRAPS TO BE DROPPED
    
    DeliveryDistance = 500  ;when outbound vehicle must be this close to target to continue delivery


Unnecessary note: I double posted because of the [code] bug.
Proud Muslim

UTD^Force

Moderator and former map reviewer
CnC Labs
thanks 1 user thanked UTD^Force for this useful post.
Apocalypse232 on 11/12/2018(UTC)
Offline Apocalypse232  
#4 Posted : Tuesday, November 13, 2018 12:57:52 PM(UTC)
Apocalypse232
Captain
Joined: 9/18/2018(UTC)
Posts: 55
United Kingdom

Thanks: 20 times
Was thanked: 4 time(s) in 3 post(s)
Well thanks for your reply.
There is still another minor issue thoughSad
I changed the texture as you said in your post and the texture turns out to be really small compared to the one after the click. See by yourself.

Also How can I make the plane start dropping demo traps sooner?


Here is my ObjectCreationList.ini code:


Here is my CommandButton.ini

Edited by user Tuesday, November 13, 2018 1:02:04 PM(UTC)  | Reason: Not specified

File Attachment(s):
Before clicking.png (1,239kb) downloaded 19 time(s).
After clicking.png (1,538kb) downloaded 19 time(s).
Offline UTD^Force  
#5 Posted : Tuesday, November 13, 2018 2:49:36 PM(UTC)
UTD^Force
Colonel
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 8/13/2013(UTC)
Posts: 817
Jordan
Location: Middle east

Thanks: 430 times
Was thanked: 184 time(s) in 168 post(s)
In ObjectCreationList:
To make the plane start dropping sooner, add the PreOpenDistance line.
Having it at more than 150 will look weird or start dropping too soon.

DeliveryDistance = 500 ;when outbound vehicle must be this close to target to continue delivery
PreOpenDistance = 100 ;When inbound, vehicle can be this much farther than DeliveryDistance to begin delivery

I'm not sure how you managed to get it to look small before clicking.
I have the texture's radius at 200 and it is the same radius as the texture after clicking.
Try setting the radius to 200 or recreating commandbuttons.
DeliveryDecalRadius = 200

This is the commandbutton I am using (in a map.ini):
Code:
CommandButton Command_MoneyDropA
  Command             = SPECIAL_POWER
  SpecialPower        = SuperweaponMoneyDrop
  Options             = NEED_TARGET_POS CONTEXTMODE_COMMAND NEED_SPECIAL_POWER_SCIENCE 
  TextLabel           = OBJECT:DaisyCutterBomb
  ButtonImage         = SSSell2
  ButtonBorderType    = ACTION ; Identifier for the User as to what kind of button this is
  DescriptLabel       = CONTROLBAR:TooltipDaisyCutter
  RadiusCursorType    = CARPETBOMB ;PARADROP
  InvalidCursorName     = GenericInvalid
End
Proud Muslim

UTD^Force

Moderator and former map reviewer
CnC Labs
Offline Apocalypse232  
#6 Posted : Thursday, November 15, 2018 1:29:18 PM(UTC)
Apocalypse232
Captain
Joined: 9/18/2018(UTC)
Posts: 55
United Kingdom

Thanks: 20 times
Was thanked: 4 time(s) in 3 post(s)
Well, thanks. I figured it out. I had to change it from SpecialPower.ini.

Anyways, I have one more simple issue.
After the demo traps are dropped, they are supposed to explode right away as soon as they get in touch with any object, and yet they go around a building or an object and explode only after they touchdown. How can I fix this problem?

Edited by user Thursday, November 15, 2018 1:33:16 PM(UTC)  | Reason: Not specified

File Attachment(s):
Attached file.png (1,105kb) downloaded 15 time(s).
Offline UTD^Force  
#7 Posted : Sunday, November 18, 2018 11:20:51 AM(UTC)
UTD^Force
Colonel
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 8/13/2013(UTC)
Posts: 817
Jordan
Location: Middle east

Thanks: 430 times
Was thanked: 184 time(s) in 168 post(s)
I don't really know if this helps. But try modifying the height update behavior for the demo traps.
Code:
  Behavior = HeightDieUpdate ModuleTag_XX
    TargetHeight = 1.0
    TargetHeightIncludesStructures = Yes ;this
  End
Proud Muslim

UTD^Force

Moderator and former map reviewer
CnC Labs
Offline Apocalypse232  
#8 Posted : Monday, November 19, 2018 12:48:18 PM(UTC)
Apocalypse232
Captain
Joined: 9/18/2018(UTC)
Posts: 55
United Kingdom

Thanks: 20 times
Was thanked: 4 time(s) in 3 post(s)
No, it doesn't change anything.
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.