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

Notification

Icon
Error

Options
Go to last post Go to first unread
Offline UTD^Force  
#1 Posted : Friday, September 28, 2018 10:32:29 AM(UTC)
UTD^Force
Colonel
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 8/13/2013(UTC)
Posts: 817
Jordan
Location: Middle east

Thanks: 430 times
Was thanked: 184 time(s) in 168 post(s)
Hey, so I am working on something and I need to edit the rocket buggy weapon, when I edit the weapon itself, the changes do not appear at all and it will be exactly the same as the original ini files should make it be.
But, when I create a new weapon and edit the weaponset for the object, the changes will happen.
This was all good until I edited a weapon that uses a projectile:
Code:
Weapon BuggyRocketWeaponOPOP
  PrimaryDamage               = 20.0            
  PrimaryDamageRadius         = 0.0      
  ScatterRadiusVsInfantry     = 20.0     ;When this weapon is used against infantry, it can randomly miss by as much as this distance.
  SecondaryDamage             = 5.0          
  SecondaryDamageRadius       = 10.0    
  AttackRange                 = 3000.0
  MinimumAttackRange          = 50.0 ;150.0 ; Rockets take some distance to target, and you don't want them to blow up in your face.
  DamageType                  = EXPLOSION          ; ignored for projectile weapons
  DeathType                   = EXPLODED
  WeaponSpeed                 = 600               ; ignored for projectile weapons
  ProjectileDetonationFX      = WeaponFX_RocketBuggyMissileDetonation
  ProjectileObject            = RocketBuggyMissile
  ProjectileExhaust           = MissileExhaust
  VeterancyProjectileExhaust  = HEROIC HeroicMissileExhaust
  RadiusDamageAffects         = ALLIES ENEMIES NEUTRALS
  ScatterRadius               = 0      ; This weapon will scatter somewhere within a circle of this radius, instead of hitting someone directly
  DelayBetweenShots           = 200  ; time between shots, msec
  ClipSize                    = 0            ; how many shots in a Clip (0 == infinite)
  ClipReloadTime              = 6000    ; how long to reload a Clip, msec
  AutoReloadsClip             = Yes 
  AutoReloadWhenIdle          = 6100    ; If I haven't fired in this long, I will reload on my own (rather than only after the last one is fired)
  FireFX                      = FX_BuggyMissileIgnition
  FireSound                   = RocketBuggyWeapon 
  WeaponBonus                 = PLAYER_UPGRADE DAMAGE 125% ; AP rocket upgrade
  ProjectileCollidesWith      = STRUCTURES
  MissileCallsOnDie           = Yes
End

Object GLAVehicleRocketBuggy
  WeaponSet
    Conditions = None 
    Weapon = PRIMARY BuggyRocketWeaponOPOP
  End
End

When I did this, the missiles don't appear coming out of the rocket buggy (or anywhere else). It just shows the firing fx and the target being hit by something invisible. Of course this is a nice effect for a mission, but for now I need the missiles to appear and I couldn't do it. I've tried editing the projectile itself but nothing. This also happened when I tried to edit the inferno cannon's weapon (projectile weapon).
I even added a whole new object:

But it still doesn't work, and if you are wondering, yes you can add new objects to map using map.ini, I still haven't tested it, but I think you can spawn them into the map using an OCL, as world builder won't recognize the map.ini file.
Proud Muslim

UTD^Force

Moderator and former map reviewer
CnC Labs
Sponsor
Offline SkyMix_RMT  
#2 Posted : Saturday, September 29, 2018 2:43:26 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)
You cannot edit or create projectile-based weapons using a map.ini, it just won't work.
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.
UTD^Force on 9/29/2018(UTC)
Offline UTD^Force  
#3 Posted : Saturday, September 29, 2018 10:06:36 PM(UTC)
UTD^Force
Colonel
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 8/13/2013(UTC)
Posts: 817
Jordan
Location: Middle east

Thanks: 430 times
Was thanked: 184 time(s) in 168 post(s)
That's sad, but thank you.
Proud Muslim

UTD^Force

Moderator and former map reviewer
CnC Labs
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.