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

Notification

Icon
Error

Options
Go to last post Go to first unread
Offline tt8nb8f4x1xd  
#1 Posted : Friday, September 2, 2022 7:36:51 PM(UTC)
tt8nb8f4x1xd
Private
Joined: 9/2/2022(UTC)
Posts: 1

I want to make the scud launcher and rocket buggy target air units. How do I do this?
Sponsor
Offline UTD^Force  
#2 Posted : Friday, September 16, 2022 5:21:29 AM(UTC)
UTD^Force
Colonel
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 8/13/2013(UTC)
Posts: 819
Jordan
Location: Middle east

Thanks: 430 times
Was thanked: 184 time(s) in 168 post(s)
To do that you should check units that can target airborne vehicles/infantry.
Here are the quadcannon's weapons as an example. It has one anti-ground and one anti-airborne weapon. Attempt to duplicate this for the scud launcher/buggy.
Keep in mind that editing projectile weapons' codes does not work in map.ini for some reason.
Code:

Weapon QuadCannonGun
  PrimaryDamage         = 10.0
  PrimaryDamageRadius   = 0.0       ; 0 primary radius means "hits only intended victim"
  AttackRange           = 150.0
  DamageType            = SMALL_ARMS
  DeathType             = NORMAL
  WeaponSpeed           = 999999.0          ; dist/sec (huge value == effectively instant)
  ProjectileObject      = NONE
  FireFX                = WeaponFX_QuadCannonGunFire
  VeterancyFireFX       = HEROIC WeaponFX_HeroicQuadCannonGunFire
  FireSound             = QuadCannonWeapon
  RadiusDamageAffects   = ALLIES ENEMIES NEUTRALS
  DelayBetweenShots     = 100 ;500               ; time between shots, msec
  ClipSize              = 0                    ; how many shots in a Clip (0 == infinite)
  ClipReloadTime        = 0              ; how long to reload a Clip, msec
  AntiAirborneVehicle   = No
  AntiAirborneInfantry  = No
  WeaponBonus           = PLAYER_UPGRADE DAMAGE 125% ; APBullets
End

;------------------------------------------------------------------------------
Weapon QuadCannonGunAir
  PrimaryDamage         = 5.0
  PrimaryDamageRadius   = 0.0       ; 0 primary radius means "hits only intended victim"
  AttackRange           = 350.0
  DamageType            = SMALL_ARMS
  DeathType             = NORMAL
  WeaponSpeed           = 999999.0          ; dist/sec (huge value == effectively instant)
  ProjectileObject      = NONE
  FireFX                = WeaponFX_QuadCannonGunFire
  VeterancyFireFX       = HEROIC WeaponFX_HeroicQuadCannonGunFire
  FireSound             = QuadCannonWeapon
  RadiusDamageAffects   = ALLIES ENEMIES NEUTRALS
  DelayBetweenShots     = 100 ;500               ; time between shots, msec
  ClipSize              = 0                    ; how many shots in a Clip (0 == infinite)
  ClipReloadTime        = 0              ; how long to reload a Clip, msec
  AntiAirborneVehicle   = Yes
  AntiAirborneInfantry  = Yes
  AntiGround = No
  WeaponBonus           = PLAYER_UPGRADE DAMAGE 125% ; APBullets
End
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.