logo   login
right
Home Forums Downloads Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Forum Info
Forum Members: 18,581
Total Threads: 8,668
Posts: 94,537

Administrators:
DeeZire, Redemption

There are currently 54 users online.
Partner Links

Free Credit Repair

Learn the Ticket Broker Secrets
Advertisements


Generals & Zero Hour Editing Discuss any modding related issues to do with Generals and Zero Hour here.

Reply
 
LinkBack Thread Tools
Old 06-30-2003, 05:28 PM   #1 (permalink)
Senior Member
 
Join Date: May 2003
Location: USA
Posts: 224
Send a message via AIM to OminousSilence
Default Fire_Weapon button

My ranger has two weapons which must be used together, so if I kept the flashbang as a third and kept the buttons the same, he could switch to the tertiary and back to the primary, but once on the primary he doesn't use both it and the secondary. I though "Hmm, well I'll look at the rocketpod code and copy the neccesarry parts." The code is now identical in the key places, but when I click the button instead of giving me a targeting radius, he just moves backward a few feet and fires where he used to be. He does this continually. I'll be able to do more when I get home in four hours.
OminousSilence is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-30-2003, 11:11 PM   #2 (permalink)
Senior Member
 
Join Date: May 2003
Location: USA
Posts: 224
Send a message via AIM to OminousSilence
Default

Ok, after an hour or so of tweaking:
I can tell him to fire the flashbang, and then I get the targeting recticle, and I tell him to fire at the ground or something. He runs up to being in range, but once he gets there he runs in place while firing and keeps running in place until it's reloaded, fires, etc. I want it to be that once he fires he goes back to normal weapons, like the comanche's rocket pods. What's worse, after he's fired his flashbang, the the next ranger I build is in flashbang mode too. I could just leave the flasbang code as it is, but when he switches back to primary mode he wont use his secondary(long range version of primary,) he just runs up to the range of his primary and fires it.
Code:
FactionUnit.ini:
  WeaponSet
    Conditions = None 
    Weapon = PRIMARY RangerAdvancedCombatRifleShortRange
    Weapon = SECONDARY RangerAdvancedCombatRifleLongRange
  End
  WeaponSet
    Conditions = PLAYER_UPGRADE 
    Weapon = PRIMARY RangerAdvancedCombatRifle
    Weapon = SECONDARY RangerAdvancedCombatRifleLongRange
    Weapon = TERTIARY RangerFlashBangGrenadeWeapon
    AutoChooseSources = PRIMARY FROM_SCRIPT FROM_AI
    AutoChooseSources = SECONDARY FROM_SCRIPT FROM_AI
    AutoChooseSources = TERTIARY NONE

Weapon.ini:
Weapon RangerFlashBangGrenadeWeapon
  PrimaryDamage           = 150.0
  PrimaryDamageRadius     = 10.0
  SecondaryDamage         = 100.0
  SecondaryDamageRadius   = 40.0
  AttackRange             = 150.0 
  MinimumAttackRange      = 20.0
  DamageType              = EXPLOSION
  DeathType               = NORMAL
  WeaponSpeed             = 120 
  ProjectileObject        = RangerFlashBangGrenade
  RadiusDamageAffects     = ALLIES ENEMIES NEUTRALS
  FireSound               = RangerFlashBangWeapon
  ScatterRadius           = 4          ; This weapon will scatter somewhere within a circle of this radius, instead of hitting someone directly
  DelayBetweenShots       = 0     ; time between shots, msec
  ClipSize                = 1              ; how many shots in a Clip (0 == infinite)
  ClipReloadTime          = 10000     ; how long to reload a Clip, msec
  AutoReloadsClip         = Yes 
  ProjectileDetonationFX = WeaponFX_GenericTankShellDetonation
  ProjectileCollidesWith  = STRUCTURES WALLS
  AllowAttackGarrisonedBldgs  = Yes

CommandButton.ini:
CommandButton Command_AmericaRangerSwitchToFlagBangGrenades
(yes, "flagbang" is a typo in the inis but it's the same in both commandset and commandbutton)
  Command                 = FIRE_WEAPON
  WeaponSlot              = TERTIARY
  Options                 = CHECK_LIKE OK_FOR_MULTI_SELECT NEED_UPGRADE NEED_TARGET_POS
  Upgrade                 = Upgrade_AmericaRangerFlashBangGrenade
  TextLabel               = CONTROLBAR:FlashBangGrenadeMode
  ButtonImage             = SSFlashbang
  ButtonBorderType        = ACTION
  DescriptLabel           = CONTROLBAR:ToolTipSwitchToUSAFlashBang
  RadiusCursorType        = ATTACK_SCATTER_AREA
  InvalidCursorName       = GenericInvalid  
End
OminousSilence is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-01-2003, 03:43 AM   #3 (permalink)
Senior Member
 
Join Date: May 2003
Location: USA
Posts: 224
Send a message via AIM to OminousSilence
Default

Can someone tell me what's wrong with my sig code, btw?
OminousSilence is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-01-2003, 05:16 AM   #4 (permalink)
Senior Member
 
Join Date: Dec 2002
Location: Middle Earth
Posts: 290
Default

Sig requires </a>
Sypher_5 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
button images ???? zogle Generals & Zero Hour Editing 3 10-22-2006 01:26 PM
Command Button Question Gh0s7 Generals & Zero Hour Editing 3 10-01-2004 08:04 AM
button images NewGhost Generals & Zero Hour Editing 36 10-06-2003 12:14 PM
having a button that changes the Pitch? LtZack Generals & Zero Hour Editing 4 04-19-2003 07:25 AM
Button textures? Drogan Generals & Zero Hour Editing 4 03-15-2003 01:28 PM


All times are GMT -4. The time now is 07:23 AM.


Design By: Miner Skinz.com
Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.