Jump to content


Thorbard

Member Since 30 Dec 2003
Offline Last Active Aug 21 2004 11:41 AM

Topics I've Started

Parachutes

14 August 2004 - 10:16 PM

I've just coded most of a supply plane for generals ZH, although it will probably work in generals too.

At a special airfeild, you can build a C-130 transport, which has 12 transport slots and can take infantry or vehicles, just like a chinook. However, if you eject a unit in flight they simply fall to the ground, and vehicles take damage. How do you make them use parachutes.

I tried this, having altered the parachute to take vehicles:
 Behavior = TransportContain ModuleTag_10
    Slots = 12
    ScatterNearbyOnExit = Yes
    OrientLikeContainerOnExit = Yes
    KeepContainerVelocityOnExit = Yes
    ExitPitchRate = 30
    ExitBone = WeaponA01
    AllowInsideKindOf  = INFANTRY VEHICLE DOZER
    DoorOpenTime = 0               ; this prevents the Contain module from messing with the doors, since we want DeliverPayload to handle 'em
    NumberOfExitPaths = 0
    DestroyRidersWhoAreNotFreeToExit = Yes ; 'destroy' as opposed to 'kill'
    PutInContainer    = AmericaParachute
  End
(Note the last line)
But the game crashes.

Here is the section of code from Object AmericaParachute:
 Behavior = ParachuteContain ModuleTag_05
    PitchRateMax = 60          ; deg/sec
    RollRateMax = 60           ; deg/sec
    LowAltitudeDamping  = 0.2  ; how much to damp swaying when we get "close" to the ground
    ParachuteOpenDist   = 25.0 ; how far we have to fall 'till we open our 'chute
    AllowInsideKindOf   = INFANTRY VEHICLE DOZER PARACHUTABLE
    ParachuteOpenSound  = ParachuteOpen
  End

Any and all advice greatly appreciated.

Command Set Editing

24 June 2004 - 10:06 PM

Just downloaded the model of the Seal of GenDev, and added it to AmericaInfantry.ini, then I added a button to build it to commandsets.ini (or whatever)

"5 = Command_ConstructAmericaInfantryNavySeal". Then I kick up ZH to test it and I got a serious error. Checked ReleaseCrashInfo.txt and it said:

"Release Crash at Thu Jun 24 22:53:14 2004
; Reason Error parsing INI file 'Data\INI\CommandSet.ini' (Line: 'CommandSet AmericaBarracksCommandSet ')
"

Now, I think this is because I didn't add anywhere Command_ConstructAmericaInfantryNavySeal, so where do I add this to make it work?

Chem Suits

24 June 2004 - 05:00 PM

Im looking for a way to make the log for chem suits to dissapear. You know, the one that appears under the units when you've bought the upgrade.

The same with the hoard bonus circles.

Really the only reason for this is so that I can take screenshots in replay mode without having to edit the images too much.

Thanks in advance.