mr_hymn_
  • mr_hymn_
  • 50.25% (Neutral)
  • Major Topic Starter
9 years ago
I know it's sounds weird for asking this question. As I kept modding I might need to uninstall and reinstall for a clean game and place the mod again.

What I am facing is when I am editing my own mod I found out that some informations or data has been changed but game keep showing an old data along with my new one. Sounds confusing? Let see the example.

I am created a tank using laser general crusader model or laser tank to be specific. Now I am adding the slow death to the tank. Made a tank having the effect similar to Uplink cannon when killed. A light beam out and kaboom.

So I tested in the game and look very fine but what I see next is from the OCL that tank destroyed always spawn couple rangers out so I changed the final OCL to Weapon like below.

Behavior = SlowDeathBehavior ModuleTag_16
DeathTypes = ALL -CRUSHED -SPLATTED
DestructionDelay = 2000
FX = INITIAL FX_ParticleUplinkDeathInitial
OCL = INITIAL OCL_SDILinkLasers
FX = FINAL FX_StructureMediumDeath
Weapon = FINAL TankDeathWeapon << this one is my own choice.
End

Tank will explode after the particle effect which really beautiful however every time my tank was destroyed those rangers still keep spawning and dies from the final explosion. I am using bomb truck death weapon as the final effect for good effect.
Sponsor
Annihilationzh
9 years ago
Need more info.

What's the rest of the object code? Have you modified ObjectCreationList.ini? If so, you need to post any relevant changes.
If you need help, post in the forum. You'll get help a lot faster than if you send me a PM.

I reject all buddy requests. I don't think 'buddy' needs to be made official. It's not like you're marrying me.
klingondragon
9 years ago
The death fx for the uplink canon is creating the rangers. Copy the fx and remove the line about rangers.
mr_hymn_
  • mr_hymn_
  • 50.25% (Neutral)
  • Major Topic Starter
9 years ago

Need more info.

What's the rest of the object code? Have you modified ObjectCreationList.ini? If so, you need to post any relevant changes.

Originally Posted by: Annihilationzh 




This is original code from Particle cannon from faction.ini

Behavior = SlowDeathBehavior ModuleTag_18
; don't run this death if we are under construction...
ExemptStatus = UNDER_CONSTRUCTION
DestructionDelay = 2000
FX = INITIAL FX_ParticleUplinkDeathInitial
OCL = INITIAL OCL_SDILinkLasers
FX = FINAL FX_StructureMediumDeath
OCL = FINAL OCL_ParticleUplinkDeathFinal
End

Of course when I am put this in my laser tank it does have uplink lighting effect and explosion BUT it does spawn couple rangers out
I also checked this code from OCL.ini >> OCL = INITIAL OCL_SDILinkLasers it contains no creating any objects rather than a cool laser explosion

And this code is what they spawn the rangers >> OCL = FINAL OCL_ParticleUplinkDeathFinal

; ----------------------------------------------
ObjectCreationList OCL_ParticleUplinkDeathFinal
CreateObject
ObjectNames = AmericaInfantryRanger
IgnorePrimaryObstacle = Yes
Disposition = SEND_IT_OUT
DispositionIntensity = 4
Count = 6
RequiresLivePlayer = Yes
End
; ----------------------------------------------

I checked all the FX and none giving a code of spawning rangers.

So I removed it and changed to

Behavior = SlowDeathBehavior ModuleTag_18
; don't run this death if we are under construction...
ExemptStatus = UNDER_CONSTRUCTION
DestructionDelay = 2000
FX = INITIAL FX_ParticleUplinkDeathInitial
OCL = INITIAL OCL_SDILinkLasers
FX = FINAL FX_StructureMediumDeath
Weapon = FINAL TankDeathWeapon
End

So at the end the tank should just simply explode without spawning rangers but in game still keep spawning rangers along with my new explosion death weapon that I am just added

I am copied this code and use on other tanks and works perfectly but only my laser crusader have a trouble even I gave them an exact same code of slow death begavior