NOP
  • NOP
  • 100% (Exalted)
  • Major Topic Starter
14 years ago
Does anyone know how to change the blast radius of the nuclear bomb?

I'm trying to make the nuke trucks have a smaller explosion...
Sponsor
glumurr
14 years ago
if you are talking about the nuke truck, you simply change his code to something smaller
  PrimaryDamageRadius = 100 
maybe change 100 to 50 I don't know..

it is in weapon.ini

hmm...
if I don't reply to a topic I don't know the answer - sorry
NOP
  • NOP
  • 100% (Exalted)
  • Major Topic Starter
14 years ago
No, his weapon is the ConvoyTruckSuicideWeapon so he just kills himself... Its the fire weapon when dead that creates the boom... CODE:


  WeaponSet
    Conditions = NONE 
    Weapon = PRIMARY NONE
  End

  WeaponSet
    Conditions = PLAYER_UPGRADE 
    Weapon = PRIMARY ConvoyTruckSuicideWeapon 
  End
-------------------------------------------------------------------------
  Behavior = FireWeaponWhenDeadBehavior ModuleTag_40
    DeathWeapon   = DirtyNukeCreationWeapon2 ;cloned from DirtyNukeCreationWeapon
    StartsActive  = No                        ; turned on by upgrade
    TriggeredBy   = Upgrade_ArmTheTrucks
  End
-------------------------------------------------------------------------
Weapon DirtyNukeCreationWeapon2
  FireOCL = OCL_DirtyNuke2
End
-------------------------------------------------------------------------
ObjectCreationList OCL_DirtyNuke2
  CreateObject
    ObjectNames = CargoTruckNuke2
    MinLifetime = 1   ; min lifetime in msec
    MaxLifetime = 1   ; max lifetime in msec
  End
End
--------------------------------------------------------------------------

Object CargoTruckNuke2

  ; ***DESIGN parameters ***
  DisplayName        = OBJECT:NeutronMissile
  EditorSorting      = SYSTEM
  VisionRange = 300.0  
  ShroudClearingRange = 0
  ArmorSet
    Conditions       = None
    Armor            = ProjectileArmor
    DamageFX         = None
  End

  ; *** AUDIO Parameters ***
  ; SoundFallingFromPlane = DaisyCutterWeapon
    
  ; *** ENGINEERING Parameters ***
  Body = ActiveBody ModuleTag_01
    MaxHealth        = 99999999.0
    InitialHealth    = 99999999.0
  End


  ;The lifetime delays the explosion with enough time to play an audio cue.
  ;NOTE: The lifetime update is set in the ObjectCreationList that creates
  ;      this object!!!
  Behavior = LifetimeUpdate ModuleTag_02
    MinLifetime = 3000   ; min lifetime in msec
    MaxLifetime = 3000   ; max lifetime in msec
  End

  Behavior = NeutronMissileSlowDeathBehavior ModuleTag_03
    DestructionDelay = 3501
    ScorchMarkSize      = 320
    FXList              = FX_Nuke
    
    Blast1Enabled       = Yes
    Blast1Delay         = 580     ;in milliseconds
    Blast1ScorchDelay   = 100     ;in milliseconds
    Blast1InnerRadius   = 60.0    ;objects inside this get the full damage
    Blast1OuterRadius   = 60.0    ;objects inside this get some of the full damage
    Blast1MaxDamage     = 0.0     ;damage within inner radius of blast
    Blast1MinDamage     = 0.0     ;always do at least this much damage to objects
    Blast1ToppleSpeed   = 0.5     ;higher #'s topple faster
    Blast1PushForce     = 10.0    ;higher #'s push more
    
    Blast2Enabled       = Yes
    Blast2Delay         = 660    ;in milliseconds
    Blast2ScorchDelay   = 180     ;in milliseconds
    Blast2InnerRadius   = 90.0    ;objects inside this get the full damage
    Blast2OuterRadius   = 90.0    ;objects inside this get some of the full damage
    Blast2MaxDamage     = 0.0     ;damage within inner radius of blast
    Blast2MinDamage     = 0.0     ;always do at least this much damage to objects
    Blast2ToppleSpeed   = 0.45    ;higher #'s topple faster
    Blast2PushForce     = 8.0     ;higher #'s push more
    
    Blast3Enabled       = Yes
    Blast3Delay         = 720    ;in milliseconds
    Blast3ScorchDelay   = 260     ;in milliseconds
    Blast3InnerRadius   = 120.0   ;objects inside this get the full damage
    Blast3OuterRadius   = 120.0   ;objects inside this get some of the full damage
    Blast3MaxDamage     = 0.0     ;damage within inner radius of blast
    Blast3MinDamage     = 0.0     ;always do at least this much damage to objects
    Blast3ToppleSpeed   = 0.42    ;higher #'s topple faster
    Blast3PushForce     = 6.0     ;higher #'s push more

    Blast4Enabled       = Yes
    Blast4Delay         = 850    ;in milliseconds
    Blast4ScorchDelay   = 340     ;in milliseconds
    Blast4InnerRadius   = 150.0   ;objects inside this get the full damage
    Blast4OuterRadius   = 150.0   ;objects inside this get some of the full damage
    Blast4MaxDamage     = 0.0     ;damage within inner radius of blast
    Blast4MinDamage     = 0.0     ;always do at least this much damage to objects
    Blast4ToppleSpeed   = 0.40    ;higher #'s topple faster
    Blast4PushForce     = 6.0     ;higher #'s push more

    Blast5Enabled       = Yes
    Blast5Delay         = 1000    ;in milliseconds
    Blast5ScorchDelay   = 420     ;in milliseconds
    Blast5InnerRadius   = 180.0   ;objects inside this get the full damage
    Blast5OuterRadius   = 180.0   ;objects inside this get some of the full damage
    Blast5MaxDamage     = 0.0     ;damage within inner radius of blast
    Blast5MinDamage     = 0.0     ;always do at least this much damage to objects
    Blast5ToppleSpeed   = 0.38    ;higher #'s topple faster
    Blast5PushForce     = 6.0     ;higher #'s push more
    
    Blast6Enabled       = Yes
    Blast6Delay         = 1180    ;in milliseconds
    Blast6ScorchDelay   = 500     ;in milliseconds
    Blast6InnerRadius   = 60.0    ;objects inside this get the full damage
    Blast6OuterRadius   = 210.0   ;objects inside this get some of the full damage
    Blast6MaxDamage     = 3500.0  ;damage within inner radius of blast
    Blast6MinDamage     = 200.0   ;always do at least this much damage to objects
    Blast6ToppleSpeed   = 0.35    ;higher #'s topple faster
    Blast6PushForce     = 4.0     ;higher #'s push more

    Blast7Enabled       = Yes
    Blast7Delay         = 999999  ;in milliseconds, don't do the damage wave
    Blast7ScorchDelay   = 620     ;in milliseconds
    Blast7OuterRadius   = 210.0   ;objects inside this get some of the full damage

    Blast8Enabled       = Yes
    Blast8Delay         = 999999  ;in milliseconds, don't do the damage wave    
    Blast8ScorchDelay   = 700     ;in milliseconds
    Blast8OuterRadius   = 210.0   ;objects inside this get some of the full damage

    Blast9Enabled       = Yes
    Blast9Delay         = 999999  ;in milliseconds, don't do the damage wave    
    Blast9ScorchDelay   = 800     ;in milliseconds
    Blast9OuterRadius   = 210.0   ;objects inside this get some of the full damage
    
  End

  Geometry = Cylinder
  GeometryIsSmall = Yes
  GeometryMajorRadius = 7.0
  GeometryHeight = 60.0
End



So it appears the above code has something to do with ranges and damage... But it looks complex....
glumurr
14 years ago
You really need to start become more specific hehe..

I am not the best at this but,
I am guessing that the blast radius might be connected to some of these codes



    Blast6InnerRadius   = 60.0    ;objects inside this get the full damage
    Blast6OuterRadius   = 210.0   ;objects inside this get some of the full damage

it is worth to try to see if it works.. otherwise I don't know TBH


*Edid*

I have tested this my self and I am defenetly sure that the blast radius is in this code

hmm...
if I don't reply to a topic I don't know the answer - sorry
NOP
  • NOP
  • 100% (Exalted)
  • Major Topic Starter
14 years ago
You were right. But it really turned out to be a big job fixing the blast radius issue, so now i just use a clone of the nuclear plant death weapon... Its much easier to control some how, and the particle effects look better too.