Posted by: Apocalypse232 - Saturday, November 10, 2018 8:36:13 AM
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?
[ATTACH]2196[/Attach] [ATTACH]2197[/Attach] [ATTACH]2198[/Attach]
Posted by: UTD^Force - Sunday, November 11, 2018 1:01:11 PM
[b]Problem #1:[/b]
Change this line for the commandbutton:
RadiusCursorType = CARPETBOMB ;PARADROP
Example:
[code=plain]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[/code]
Posted by: UTD^Force - Sunday, November 11, 2018 1:01:22 PM
[b]Problem #2:[/b]
Make adjustments to the objectcreationlist to get something similar to this:
[code=plain] 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[/code]
--------------------------
Unnecessary note: I double posted because of the [code] bug.
Posted by: Apocalypse232 - Tuesday, November 13, 2018 12:57:52 PM
ObjectCreationList Demo_SUPERWEAPON_DemoDrop
DeliverPayload
Transport = GLAJetCargoPlane
StartAtPreferredHeight = Yes
StartAtMaxSpeed = Yes
MaxAttempts = 4
DropOffset = X:0 Y:0 Z:-10
DropDelay = 255 ; time in between each item dropped (if more than one)
ParachuteDirectly = No ;Yes ; will tell all contained parachutes to go ahead and bunch
PutInContainer = GLAParachute
Payload = GLADemoTrap_DemoDropBomb 12
DeliveryDistance = 350 ;when outbound vehicle must be this close to target to continue delivery
DeliveryDecalRadius = 250
DeliveryDecal
Texture = SCCCarpBomb
Style = SHADOW_ALPHA_DECAL
OpacityMin = 25%
OpacityMax = 50%
OpacityThrobTime = 500
Color = R:33 G:255 B:67 A:255
OnlyVisibleToOwningPlayer = Yes
End
;RequiresLivePlayer = Yes ; I want to require a live player, but I'll settle for dropping neutral rangers instead
End
End
Posted by: UTD^Force - Tuesday, November 13, 2018 2:49:36 PM
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=plain]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[/code]
Posted by: Apocalypse232 - Thursday, November 15, 2018 1:29:18 PM
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? [ATTACH]2201[/Attach]
Posted by: UTD^Force - Sunday, November 18, 2018 11:20:51 AM
I don't really know if this helps. But try modifying the height update behavior for the demo traps.
[code=plain] Behavior = HeightDieUpdate ModuleTag_XX
TargetHeight = 1.0
TargetHeightIncludesStructures = Yes ;this
End[/code]
Posted by: Apocalypse232 - Monday, November 19, 2018 12:48:18 PM