NewNightmare
14 years ago
Here's the code, I cant find any error... the FX shows up properly... the OCLs don't
Modules
  Behavior = DestroyDie ModuleTag_12
    DeathTypes = NONE +CRUSHED +SPLATTED
  End

  ; A crushing defeat
  Behavior = FXListDie ModuleTag_18
    DeathTypes = NONE +CRUSHED +SPLATTED
    DeathFX = FX_CarCrush
  End
  Behavior = CreateObjectDie ModuleTag_17
    DeathTypes = NONE +CRUSHED +SPLATTED
    CreationList = OCL_TechnicalJeep_CrushEffect
  End
  Behavior = CreateCrateDie ModuleTag_14
    CrateData = SalvageCrateData
    ;CrateData = EliteTankCrateData
    ;CrateData = HeroicTankCrateData
  End

  Behavior = SlowDeathBehavior ModuleTag_15
    DeathTypes = ALL -CRUSHED -SPLATTED
    DestructionDelay = 300
    DestructionDelayVariance = 300
    OCL = INITIAL OCL_BattleTruckDerbis1
    OCL = FINAL OCL_BattleTruckDerbis2
    FX = FINAL FX_BattleMasterExplosionOneFinal
  End
OCLs
ObjectCreationList OCL_BattleTruckDerbis1
  CreateObject
    ObjectNames = DeadBattleTruckHulk
    Offset = X:0 Y:0 Z:0
    Count = 1
    Disposition = SEND_IT_FLYING INHERIT_VELOCITY
    DispositionIntensity = 0.1
  End
End
ObjectCreationList OCL_BattleTruckDerbis2
  CreateDebris
    ModelNames = UVBattleTruck_D2
    Mass = 5.0
    Count = 1
    Disposition = SEND_IT_FLYING
    DispositionIntensity = 2.5
  End
  CreateDebris
    ModelNames = UVBattleTruck_D3
    Mass = 5.0
    Count = 1
    Disposition = SEND_IT_FLYING
    DispositionIntensity = 1.5
    Offset = X:9.5 Y:5.212 Z:1.8
  End
  CreateDebris
    ModelNames = UVBattleTruck_D3
    Mass = 5.0
    Count = 1
    Disposition = SEND_IT_FLYING
    DispositionIntensity = 1.5
    Offset = X:9.5 Y:-5.194 Z:1.8
  End
End
W T F ?
Sponsor
joewijoyo
14 years ago
Can you explain more on what your problem exactly is?
joewijoyo
14 years ago
Oh are you telling that some of the OCLs are not used in the deathmodules? It might be because it was taken out. Especially during Command & Conquer Generals Zero Hour, many of things like these were taken out from Command & Conquer Generals, and replaced by new OCLs or etc.
joewijoyo
14 years ago
Well i don't know, first tell clearly what your problem exactly is or no one can help you.
NewNightmare
14 years ago
hehe, this is not original code, it's my own :)
I added a new unit (a Technical 'truck' version with GLA POW truck pack @ the back)
and everything works well, the conditionstates do change when damaged, both reallydamaged and rubble ones (rubbles are aliascondition'd to reallydamaged state though), as well as the salvage upgrades. draw module is K (which didnt work with my previous version of the unit, few threads ago)
Now the SlowDeathBehavior does display FX = FINAL, but is not willing to spawn any of the OCLs I have made, codes of which can be seen above, and models of which I am 100% sure are in W3D folder.
the death sequence is basically, rubble model appears, disappears, and explosion from the FX = FINAL appears fraction of a second after. with no debris at all.
P.S question: is the fact that I have used OCL for both initial and final dependant on the existance of rubble conditionstate?
precision_bomber
14 years ago
I think you're missing a 'ProbabilityModifier'.
I don't know if it fix this though.
Death Label:
Reduced back to 3 main factions(and a couple of extras).
Each faction can choose a(or all of them) tech-tree via General's Powers.
Angel Wings: Jets and Anti-Air, Helicopters and Missiles, Hovercraft and Lasers
Red Skulls: Armor Division, Mecha Armada, Drone Swarm
Earth's Saviors: Air Raid, Homeworld Security, Stealth