Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Offline SkyMix_RMT  
#1 Posted : Friday, January 20, 2017 9:26:11 AM(UTC)
SkyMix_RMT
Major
Joined: 2/21/2015(UTC)
Posts: 386
Portugal

Thanks: 80 times
Was thanked: 132 time(s) in 96 post(s)
This is for a map.ini

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

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?

Edited by user Friday, January 20, 2017 9:27:16 AM(UTC)  | Reason: Not specified

Check out:

My Music (Techno/House/Experimental)

My Website (GeneralsCentral)

My Youtube Channel (Inactive)

World Builder Community Discord
Sponsor
Offline SkyMix_RMT  
#2 Posted : Friday, January 20, 2017 9:52:46 AM(UTC)
SkyMix_RMT
Major
Joined: 2/21/2015(UTC)
Posts: 386
Portugal

Thanks: 80 times
Was thanked: 132 time(s) in 96 post(s)
I fixed it xD

If anybody wants to do this, use this:

Code:

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

Edited by user Friday, January 20, 2017 1:12:55 PM(UTC)  | Reason: Not specified

Check out:

My Music (Techno/House/Experimental)

My Website (GeneralsCentral)

My Youtube Channel (Inactive)

World Builder Community Discord
thanks 1 user thanked SkyMix_RMT for this useful post.
renaissance on 1/21/2017(UTC)
Offline klingondragon  
#3 Posted : Friday, January 20, 2017 9:55:35 AM(UTC)
klingondragon
General
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 4/10/2014(UTC)
Posts: 1,591
United Kingdom
Location: Laniakea; Virgo Supercluster; Local Sheet; Local Group; Milky Way Galaxy; Orion–Cygnus Arm; Gould Belt; Local Bubble; Local Interstellar Cloud; Sol System; Sol III; Europe; United Kingdom of Great Britain and Northen Ireland; Great Britain; England; Essex

Thanks: 16 times
Was thanked: 247 time(s) in 217 post(s)
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.
Offline SkyMix_RMT  
#4 Posted : Friday, January 20, 2017 1:12:34 PM(UTC)
SkyMix_RMT
Major
Joined: 2/21/2015(UTC)
Posts: 386
Portugal

Thanks: 80 times
Was thanked: 132 time(s) in 96 post(s)
Originally Posted by: klingondragon Go to Quoted Post
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.


Alright thanks I've edited it.
Check out:

My Music (Techno/House/Experimental)

My Website (GeneralsCentral)

My Youtube Channel (Inactive)

World Builder Community Discord
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.