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

Forum Info
Forum Members: 18,617
Total Threads: 8,723
Posts: 95,204

Administrators:
DeeZire, Redemption

There are currently 31 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-19-2004, 07:20 AM   #11 (permalink)
Senior Member
 
Join Date: May 2004
Location: The Netherlands, Zeist (Near Utrecht)
Posts: 154
Default

Sure if you want . BTW You can sent me a PM about it. You can write it in Dutch because i'm dutch to (BTW Its my birthday to day June 19 !! ) ( what a nice birthday present ) I become 18 !!
Bart is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-19-2004, 07:22 AM   #12 (permalink)
Senior Member
 
Join Date: Apr 2003
Location: Derby, UK / Den Haag, NL
Posts: 590
Default

Okay, I'll PM you in a few hours with what I believe to be the solution. I'll write it in english, because I am :P!

AmberZ
Ambershee is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-19-2004, 09:00 AM   #13 (permalink)
Senior Member
 
Join Date: Feb 2004
Posts: 872
Default

Ambershee is awesome, such a nice guy with lots of experience and no attitude. (I think I just spammed)
Hostile is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-19-2004, 09:40 AM   #14 (permalink)
Senior Member
 
Join Date: Apr 2003
Location: Derby, UK / Den Haag, NL
Posts: 590
Default

Nearly there, Just gotta work out how to get the missile to kill itself in mid-air. I'll post it in the form of a tutorial in this thread, 'cos I just know people will want to do this in future
Ambershee is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-19-2004, 10:26 AM   #15 (permalink)
Senior Member
 
Join Date: Apr 2003
Location: Derby, UK / Den Haag, NL
Posts: 590
Default

Sorry that this isn't complete, but it's very close to being there (but untested), if you still need assistance then give me a shout and I'll continue early tommorow morning. Until then I've a lovely young lady to attend to (big grins).

Okay, here's your weapon.ini entry as far as I've gotten. It's still missing that all important tag that makes it detonate mid-air. I'm wondering if a lifetime of sorts should be specified in the projectile entry itself (see if the Tomahawk missile has something like that - it dissapears if it spends too much time in the air).

Code:
Weapon AirBurstMissileWeapon
  PrimaryDamage               = 75.0            
  PrimaryDamageRadius         = 5.0      
  SecondaryDamage             = 40.0          
  SecondaryDamageRadius       = 30.0
  DamageType                  = EXPLOSION
  DeathType                   = EXPLODED
  AttackRange                 = 320.0
  MinimumAttackRange          = 80.0
  LeechRangeWeapon = Yes
  ProjectileObject            = AirBurstMissileObject
  ProjectileExhaust           = MissileExhaust
  VeterancyProjectileExhaust  = HEROIC HeroicMissileExhaust
  RadiusDamageAffects         = SELF SUICIDE ALLIES ENEMIES NEUTRALS
  DelayBetweenShots           = 300
  ClipReloadTime              = 8000
  ProjectileDetonationFX      = WeaponFX_NapalmMissileDetonation
  ProjectileDetonationOCL     = OCL_AirBurstBombs
  DamageDealtAtSelfPosition   = Yes
  ProjectileCollidesWith      = STRUCTURES
End
Okay, now here come your weaponobject.ini entries. The first is the missile itself, which is pretty standard minus it's locomotor. The second is a bomb object that drops and hits the ground and detonates, which is also pretty standard.

Code:
Object AirBurstMissileObject

  ; *** ART Parameters ***
  Draw = W3DModelDraw ModuleTag_01
    OkToChangeModelColor = Yes
    DefaultConditionState
      Model = AVRaptor_M
    End
    ConditionState = JAMMED
      ParticleSysBone = None SparksMedium
    End
  End

  ; ***DESIGN parameters ***
  DisplayName         = OBJECT:Missile
  EditorSorting       = SYSTEM
  VisionRange         = 0.0
  TransportSlotCount  = 1
  ArmorSet
    Conditions      = None
    Armor           = ProjectileArmor
    DamageFX        = None
  End

  ; *** ENGINEERING Parameters ***
  KindOf = PRELOAD CAN_CAST_REFLECTIONS PROJECTILE SMALL_MISSILE
  Body = ActiveBody ModuleTag_02
    MaxHealth       = 100.0
    InitialHealth   = 100.0
    SubdualDamageCap = 200
    SubdualDamageHealRate = 100000
    SubdualDamageHealAmount = 50
  End

; ---- begin Projectile death behaviors
  Behavior = InstantDeathBehavior DeathModuleTag_01
    DeathTypes = NONE +DETONATED

  End
  Behavior = InstantDeathBehavior DeathModuleTag_02
    DeathTypes = NONE +LASERED
    FX         = FX_GenericMissileDisintegrate
    OCL        = OCL_GenericMissileDisintegrate
  End
  Behavior = InstantDeathBehavior DeathModuleTag_03
    DeathTypes = ALL -LASERED -DETONATED
    FX         = FX_GenericMissileDeath
  End

  Behavior = PhysicsBehavior ModuleTag_06
    Mass = 1
  End
  Behavior = MissileAIUpdate ModuleTag_07
    TryToFollowTarget   = No
    FuelLifetime        = 10000
    InitialVelocity     = 75                ; in dist/sec
    IgnitionDelay       = 30
    IgnitionFX          = FX_NapalmMissileIgnition
  End
  Locomotor = SET_NORMAL AirBurstMissileLocomotor

  Geometry = Sphere
  GeometryIsSmall = Yes
  GeometryMajorRadius = 1.0

End


Object AirBurstBombObject

  ; *** ART Parameters ***
  Draw = W3DModelDraw ModuleTag_01
    DefaultConditionState
      Model = EXCarptBmb
    End
  End

  ; ***DESIGN parameters ***
  DisplayName      = OBJECT:CarpetBomb
  Side = America
  EditorSorting   = SYSTEM
  TransportSlotCount = 1
  VisionRange = 300.0  
  ArmorSet
    Conditions      = None
    Armor           = ProjectileArmor
    DamageFX        = None
  End

  ; *** AUDIO Parameters ***

  ; *** ENGINEERING Parameters ***
  KindOf            = PROJECTILE
  Body = ActiveBody ModuleTag_02
    MaxHealth       = 2000.0
    InitialHealth   = 2000.0
  End

  Behavior = AIUpdateInterface ModuleTag_03
  End
  Locomotor = SET_NORMAL None

  Behavior = PhysicsBehavior ModuleTag_04

    Mass                  = 75.0
    AerodynamicFriction   = 1
    ForwardFriction       = 33
    CenterOfMassOffset    = 2
  End

  Behavior = HeightDieUpdate ModuleTag_06
    TargetHeight = 1.0
    TargetHeightIncludesStructures = No
  End

  Behavior = FXListDie ModuleTag_08
    DeathFX = FX_CarpetBomb
  End
  Behavior = DestroyDie ModuleTag_09
    ;nothing
  End

End
Here's an OCL entry, which creates multiple bomb objects when triggered (already triggered by the collision with target death of the first weapon projectile). There shouldn't be any problems seeing what I've done here. I'm assuming that I can inherit velocity and send something flying at the same time, I may be wrong.

Code:
ObjectCreationList OCL_AirBurstBombs
  CreateObject
    ObjectNames = AirBurstBombObject
    Disposition = SEND_IT_FLYING INHERIT_VELOCITY
    DispositionIntensity = 1
    Count = 4
    RequiresLivePlayer = No
  End
End
Lastly, here's a locomotor for your missile. It may need tweaking to allow it to climb after launch. Take a look at aircraft for that. It basically is a normal missile with no turning ability which has a minimum flight height, like an airburst missile should to allow it to burst in mid-air.

Hope there's enough to work with. If you're lucky, someone will finish that off this afternoon / tonight anyhow.

AmberZ

Edit: Forgot the locomotor. Women really ARE distracting eh?

Code:
Locomotor AirBurstMissileLocomotor
  Surfaces = AIR
  Speed = 300
  MinSpeed = 120
  Acceleration = 900
  Braking = 0
  TurnRate = 0
  MaxThrustAngle = 15
  AllowAirborneMotiveForce = Yes
  Appearance = THRUST
  PreferredHeight = 70
End
There we go ^_^
Ambershee is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-21-2004, 04:14 AM   #16 (permalink)
Senior Member
 
Join Date: May 2004
Location: The Netherlands, Zeist (Near Utrecht)
Posts: 154
Default

Is this anything you need to let a missile shoot?
Bart is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-21-2004, 06:56 AM   #17 (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

A weapon maybe...
CodeCat is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-21-2004, 10:59 AM   #18 (permalink)
Senior Member
 
Join Date: Apr 2003
Location: Derby, UK / Den Haag, NL
Posts: 590
Default

Well, although I didn't finish it, it was a very good start.
The weapon entry was there, it needs a unit to fire it from, and a tag to kill the missile prematurely. Other than that, it may need the leechweapon line removing
Ambershee is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-26-2004, 03:46 PM   #19 (permalink)
Senior Member
 
Join Date: May 2004
Location: The Netherlands, Zeist (Near Utrecht)
Posts: 154
Default

Okay thanx
Bart is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-24-2004, 06:03 PM   #20 (permalink)
Junior Member
 
Join Date: Oct 2003
Posts: 16
Default

Ok I looked and looked and looked for a way to make a missile detonate in mid-air, and I'm reall stuck... I would really like to see a cluster missile but I'm not really good at Generals INI modding...

Could anyone show me the small code that makes a missile detonate in mid-air?
programexpert 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
My v3 missile.. Minimi Red Alert 2 & Yuri's Revenge Editing 14 04-27-2005 06:13 AM
Getting a structure to constantly shoot a weapon Waraddict Generals & Zero Hour Editing 5 02-22-2005 02:23 PM
Making a unit shoot sideway. Code question juanmanuelsanchez Generals & Zero Hour Editing 20 07-16-2004 11:25 PM
Dreadnaught's missile... YuriH9 Red Alert 2 & Yuri's Revenge Editing 47 02-22-2004 04:44 AM
shoot flame further and turning turrent for marauder andigo99 Generals & Zero Hour Editing 6 11-30-2003 05:55 PM


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


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