Posted by: NewNightmare - Thursday, December 22, 2011 4:26:32 PM
Here's the code, I cant find any error... the FX shows up properly... the OCLs don't
Modules
[code] 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[/code]
OCLs
[code]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[/code]
W T F ?
Posted by: joewijoyo - Friday, December 23, 2011 1:23:59 AM
Can you explain more on what your problem exactly is?
Posted by: joewijoyo - Friday, December 23, 2011 1:31:07 AM
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.
Posted by: joewijoyo - Friday, December 23, 2011 1:32:26 AM
Well i don't know, first tell clearly what your problem exactly is or no one can help you.
Posted by: NewNightmare - Friday, December 23, 2011 2:49:27 AM
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?
Posted by: precision_bomber - Saturday, December 24, 2011 12:06:32 AM
I think you're missing a 'ProbabilityModifier'.
I don't know if it fix this though.