Help - Search - Members - Calendar
Full Version: Special Power Button Radius Cursor Issue
SWR Productions Forum > Game Modding and Development > Generals/Zerohour Modding
Mcbob
Right now the radius cursors for the ATTACK_DAMAGE_AREA and ATTACK_CONTINUE_AREA are not displaying at all. I have no idea why, but other enums such as SPYDRONE and CARPETBOMB work fine. Is there something I am forgetting with the two enums that are not working?

Here is my code below for the command button, the radius cursor parameters, and the special power itself.

CODE
  CommandButton Command_NerveGasAttackFromShortcut
    Command           = SPECIAL_POWER_FROM_SHORTCUT
    SpecialPower      = SuperweaponNerveGasAttack
    Options           = NEED_TARGET_POS CONTEXTMODE_COMMAND OK_FOR_MULTI_SELECT NEED_SPECIAL_POWER_SCIENCE
    TextLabel         = CONTROLBAR:NerveGasAttack
    ButtonImage       = SUNerveGasBomb
    InvalidCursorName = GenericInvalid
    RadiusCursorType  = ATTACK_DAMAGE_AREA;ATTACK_CONTINUE_AREA;SPYDRONE
    ButtonBorderType  = ACTION; Identifier for the User as to what kind of button this is
    DescriptLabel     = CONTROLBAR:TooltipFireNerveGasAttack
    UnitSpecificSound = GLAEvaSelectTarget
  End

  AttackDamageAreaRadiusCursor
    Texture           = SCCScudStorm_GLA
    Style             = SHADOW_ALPHA_DECAL
    OpacityMin        = 50%
    OpacityMax        = 100%
    OpacityThrobTime  = 1000
    Color             = R:255 G:255 B:0 A:255
    OnlyVisibleToOwningPlayer = Yes
  End

  AttackContinueAreaRadiusCursor
    Texture           = SCCScudStorm_GLA
    Style             = SHADOW_ALPHA_DECAL
    OpacityMin        = 50%
    OpacityMax        = 100%
    OpacityThrobTime  = 1000
    Color             = R:255 G:255 B:0 A:255
    OnlyVisibleToOwningPlayer = Yes
  End

  SpecialPower SuperweaponNerveGasAttack
    Enum                = SPECIAL_BLACK_MARKET_NUKE
    ReloadTime          = 360000; in milliseconds. min is 2x door/open close time!
    RequiredScience     = SCIENCE_NerveGasAttack
    PublicTimer         = No
    SharedSyncedTimer   = Yes
    ViewObjectRange     = 0
    RadiusCursorRadius  = 275
    ShortcutPower       = Yes;Capable of being fired by the side-bar shortcut.
    InitiateSound       = GLANerveGasDeployed
    AcademyClassify     = ACT_SUPERPOWER;Considered a powerful special power that a player could fire. Not for simpler unit based powers.
  End
The_Hunter
this is because the cursors size of those specific ones is controlled by one of the primary weapons of that unit that calls in this power rather than the special power radius.
Example from ROTR:

CODE
;------------------------------------------------------------------------------
;without this dummy weapon the decals of some generals powers will not properly show up
Weapon CommandBunkerGeneralsPowerRadiusCursorsRangeDummyWeapon
  PrimaryDamage       = 0.0
  PrimaryDamageRadius = 220.0;FOAB
  ContinueAttackRange = 130.0;Backfire Cruise Missile Strike
  ScatterRadius       = 230.0;Targeting Satellite
End
Mcbob
Ahhh I see now. Thank you for pointing that out.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2024 Invision Power Services, Inc.