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,667
Posts: 94,503

Administrators:
DeeZire, Redemption

There are currently 48 users online.
Partner Links

Free Credit Repair

Learn the Ticket Broker Secrets
Advertisements

DeeZire Online > Editing Community > Command and Conquer Editing > Generals & Zero Hour Editing » how to make weapon give a weapon bonus to units around it

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

Reply
 
LinkBack Thread Tools
Old 06-07-2004, 02:43 PM   #1 (permalink)
Senior Member
 
Join Date: Feb 2003
Location: USA
Posts: 306
Send a message via AIM to Vger Send a message via MSN to Vger Send a message via Yahoo to Vger
Default how to make weapon give a weapon bonus to units around it

Is it possible to make a weapon that gives a weapon bonus to units within range of it? If so then how.
Thanks,
V'ger
Vger is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-07-2004, 03:03 PM   #2 (permalink)
Senior Member
 
Join Date: Mar 2003
Location: UK
Posts: 676
Send a message via MSN to DJRowley
Default

In ZH:

Quote:
Behavior = WeaponBonusUpdate ModuleTag_02
RequiredAffectKindOf = CAN_ATTACK ; Must be set
ForbiddenAffectKindOf = STRUCTURE ; Must be clear
BonusDuration = 10000 ; How long effect lasts
BonusDelay = 100000 ; How often to pulse
BonusRange = 200 ; Keep in line with radius cursor size in special power template
BonusConditionType = FRENZY_ONE ; And which bonus to give
End
The BonusConditionType is set in GameData.ini - that is where you can set the type of effect (DAMAGE, RANGE, etc) and the percentage modifier
DJRowley is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-07-2004, 03:10 PM   #3 (permalink)
Senior Member
 
Join Date: Feb 2003
Location: USA
Posts: 306
Send a message via AIM to Vger Send a message via MSN to Vger Send a message via Yahoo to Vger
Default

I need it in weapon form. Other words I need a weapon that when fired gives a bonus to a unit within a certain distance. I also need it not to work and use another weapon when the unit giving the bonus attacks something like an enemy unit.
Vger is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-07-2004, 03:15 PM   #4 (permalink)
Senior Member
 
Join Date: Mar 2003
Location: UK
Posts: 676
Send a message via MSN to DJRowley
Default

Not quite sure what you mean...

The only thing I can think of is the Avenger Faerie Fire weapon which increases the ROF of any unit firing on the marked target. But that doesn't sound like what you want... :/
DJRowley is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-07-2004, 03:57 PM   #5 (permalink)
Senior Member
 
Join Date: May 2003
Location: Eindhoven, Netherlands
Posts: 2,278
Send a message via ICQ to CodeCat Send a message via MSN to CodeCat
Default

Well if you look at the avenger weapon code:

Code:
Weapon AvengerTargetDesignator
  PrimaryDamage       = 200.0       ; How long (msec) we put the status on the target (should equal or exceed DelayBetweenShots)
  PrimaryDamageRadius = 0.0
  AttackRange         = 200.0 
  DamageType          = STATUS      ; We put an Object Status on the target
  DamageStatusType    = FAERIE_FIRE ; And here is what
  WeaponSpeed         = 999999.0     ; dist/sec 
  DelayBetweenShots   = 200         ; time between shots, msec
  ClipSize            = 0            ; how many shots in a Clip (0 == infinite)
  ClipReloadTime      = 0            ; how long to reload a Clip, msec
  LaserName           = AvengerTargetingLaserBeam
  LaserBoneName       = TurretFX03
  FireFX              = WeaponFX_AvengerTargetDesignator
  FireSound           = AvengerPaintWeaponLoop
  FireSoundLoopTime = 120                ; loop the firing sound until there's this much delay between shots 
End
...you'll see that you can easily change this to use a different bonus instead. Plus, the effect is applied just like a regular weapon, so increasing the damage radius will get it to affect a larger area of units.
CodeCat is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-07-2004, 07:59 PM   #6 (permalink)
Senior Member
 
Join Date: Feb 2003
Location: USA
Posts: 306
Send a message via AIM to Vger Send a message via MSN to Vger Send a message via Yahoo to Vger
Default

I am going for something like that except with damage.

From This:
Code:
Damage Status Type: (Original)
WeaponBonus = TARGET_FAERIE_FIRE  RATE_OF_FIRE  150%  ; If shooting at someone marked with Faerie Fire, shoot faster (we don't miss ever, so can't hit easier)
To something like this:
Code:
WeaponBonus = TARGET_FAERIE_FIRE  DAMAGE  150%
Can I change the "FAERIE_FIRE" to another name since it is just a damage status type?
Vger is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-08-2004, 04:19 AM   #7 (permalink)
Senior Member
 
Join Date: May 2003
Location: Eindhoven, Netherlands
Posts: 2,278
Send a message via ICQ to CodeCat Send a message via MSN to CodeCat
Default

Well, the effect of the TARGET_FAERIE_FIRE status type is set in GameData.ini:

Code:
WeaponBonus = TARGET_FAERIE_FIRE  RATE_OF_FIRE  150%  ; If shooting at someone marked with Faerie Fire, shoot faster (we don't miss ever, so can't hit easier)
If you change RATE_OF_FIRE to DAMAGE, then anything that is shooting at a target that has this bonus will do 50% more damage. You don't need to specify this in Weapon.ini (unless you want a WeaponBonus upgrade but that's another matter).
CodeCat 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
How to make rail gun weapon? homura Generals & Zero Hour Editing 28 12-20-2004 04:22 AM
help changing effects of a weapon when another weapon fires Vger Generals & Zero Hour Editing 0 12-25-2003 11:50 PM
How can I make a fourth weapon? Vanguard Generals & Zero Hour Editing 11 07-31-2003 05:02 PM
Does any 1 know how to make a unit swap weapon in-game? Lord_Murder Generals & Zero Hour Editing 3 07-21-2003 01:20 AM
How do I give the american side the grand cannon weapon injun38 Red Alert 2 & Yuri's Revenge Editing 10 02-07-2003 04:33 PM


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


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