PrivateJoined: 9/2/2022(UTC) Posts: 1
|
I want to make the scud launcher and rocket buggy target air units. How do I do this?
|
|
|
|
ColonelJoined: 8/13/2013(UTC) Posts: 816 Location: Middle east Thanks: 430 times Was thanked: 182 time(s) in 166 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.