Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

tt8nb8f4x1xd Offline
#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
UTD^Force Offline
#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: 784
Jordan
Location: Middle east

Thanks: 437 times
Was thanked: 171 time(s) in 155 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
Users browsing this topic
Guest (4)
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.

Powered by YAF 1.9.6.1 | YAF © 2003-2022, Yet Another Forum.NET
This page was generated in 0.372 seconds.