SkyMix_RMT
9 years ago
This is for a map.ini

I can't increase the boobytrap damage, I'm using this code

Weapon BoobyTrapDetonationWeapon ;Created by Rebels as an upgrade
  PrimaryDamage = 20000.0            
  PrimaryDamageRadius = 5.0
  SecondaryDamage = 20000.0          
  SecondaryDamageRadius = 15.0
  DamageType = EXPLOSION         
  DeathType = EXPLODED
End

But it still does the default 200 damage. What am I missing here?
Check out:
My Music  (Techno/House/Experimental)
My Website  (GeneralsCentral)
My Youtube Channel  (Inactive)
World Builder Community Discord 
Sponsor
SkyMix_RMT
9 years ago
I fixed it xD

If anybody wants to do this, use this:


Weapon BoobyTrapDetonationWeapon2 ;Created by Rebels as an upgrade
  PrimaryDamage = 2000.0            
  PrimaryDamageRadius = 5.0      ; These ranges are the range past the boobytrapped objects' bounding circle
  SecondaryDamage = 2000.0          
  SecondaryDamageRadius = 15.0    ; These ranges are the range past the boobytrapped objects' bounding circle
  DamageType = EXPLOSION         
  DeathType = EXPLODED
End

Object BoobyTrap ; created by upgraded rebels

 ReplaceModule ModuleTag_03
  Behavior = StickyBombUpdate ModuleTag_03_Override
    GeometryBasedDamageWeapon = BoobyTrapDetonationWeapon2 ; We add our bounding circle to the radius of this weapon, and damage people ourselves
    GeometryBasedDamageFX = FX_BoobyTrapExplosion ; And we modify our effect too
  End
 End

End

Check out:
My Music  (Techno/House/Experimental)
My Website  (GeneralsCentral)
My Youtube Channel  (Inactive)
World Builder Community Discord 
klingondragon
9 years ago
I don't think you actually need all that object code.
You should only need to change the StickyBombUpdate module to change it to the new weapon.
SkyMix_RMT
9 years ago

I don't think you actually need all that object code.
You should only need to change the StickyBombUpdate module to change it to the new weapon.

Originally Posted by: klingondragon 



Alright thanks I've edited it.
Check out:
My Music  (Techno/House/Experimental)
My Website  (GeneralsCentral)
My Youtube Channel  (Inactive)
World Builder Community Discord