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

Notification

Icon
Error

Options
Go to last post Go to first unread
Offline Resist  
#1 Posted : Saturday, April 22, 2017 6:49:32 AM(UTC)
Resist
Private
Joined: 4/19/2017(UTC)
Posts: 28

Thanks: 10 times
Was thanked: 3 time(s) in 3 post(s)
please help , this is an example , what should I add before the object ? game is keeping on ignoring whatever I change
Code:
 Weapon ChinaInfantryTankHunterMissileLauncher
  PrimaryDamage = 40.0            
  PrimaryDamageRadius = 5.0      
  ScatterRadiusVsInfantry     = 10.0     ;When this weapon is used against infantry, it can randomly miss by as much as this distance.
  AttackRange = 175.0
  MinimumAttackRange = 5.0  ; Rockets take some distance to target, and you don't want them to blow up in your face.
  DamageType = INFANTRY_MISSILE   ;ignored for projectile weapons
  DeathType = EXPLODED
  WeaponSpeed = 600               ; ignored for projectile weapons
  ProjectileObject = TankHunterMissile
  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 = 1000  ; time between shots, msec
  ClipSize = 0             ; how many shots in a Clip (0 == infinite)
  ClipReloadTime = 0    ; how long to reload a Clip, msec
  AutoReloadsClip = Yes 
  FireSound = TankHunterWeapon
  FireFX = FX_BuggyMissileIgnition
  ProjectileDetonationFX = WeaponFX_RocketBuggyMissileDetonation

  AntiAirborneVehicle   = Yes
  AntiAirborneInfantry  = Yes

  ; note, these only apply to units that aren't the explicit target 
  ; (ie, units that just happen to "get in the way"... projectiles
  ; always collide with the Designated Target, regardless of these flags
  ProjectileCollidesWith = STRUCTURES
End 
Sponsor
Offline AdrianeMapMaker  
#2 Posted : Saturday, April 22, 2017 7:02:18 AM(UTC)
AdrianeMapMaker
General
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 3/8/2016(UTC)
Posts: 1,156
Philippines

Thanks: 312 times
Was thanked: 185 time(s) in 149 post(s)
Questions:

Did you Use Finalbig Here?

Did you Rename The Weapon Code?
A part of ZH worldbuilders map making community
https://discord.gg/tJ6zyGb

UserPostedImage





Offline Resist  
#3 Posted : Saturday, April 22, 2017 7:26:25 AM(UTC)
Resist
Private
Joined: 4/19/2017(UTC)
Posts: 28

Thanks: 10 times
Was thanked: 3 time(s) in 3 post(s)
Answers :
Originally Posted by: adrianemapmaker Go to Quoted Post
Did you Use Finalbig Here?


No, Do I have to use it even in a map.ini ? what's the benefit ?

Originally Posted by: adrianemapmaker Go to Quoted Post
Did you Rename The Weapon Code?


So If I made a new name and changed something , would the game respond to it ?

Offline AdrianeMapMaker  
#4 Posted : Friday, April 28, 2017 4:20:39 AM(UTC)
AdrianeMapMaker
General
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 3/8/2016(UTC)
Posts: 1,156
Philippines

Thanks: 312 times
Was thanked: 185 time(s) in 149 post(s)
Go to Factionunit.ini then make a copy of the object "Name" that you want to have that weapon and Find this Line "WeaponSet"

Your Map.ini should look like this mate:


Code:

Weapon HunterMissileLauncher ; I Rename Your Weapon
  PrimaryDamage = 40.0            
  PrimaryDamageRadius = 5.0      
  ScatterRadiusVsInfantry     = 10.0     ;When this weapon is used against infantry, it can randomly miss by as much as this distance.
  AttackRange = 175.0
  MinimumAttackRange = 5.0  ; Rockets take some distance to target, and you don't want them to blow up in your face.
  DamageType = INFANTRY_MISSILE   ;ignored for projectile weapons
  DeathType = EXPLODED
  WeaponSpeed = 600               ; ignored for projectile weapons
  ProjectileObject = TankHunterMissile
  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 = 1000  ; time between shots, msec
  ClipSize = 0             ; how many shots in a Clip (0 == infinite)
  ClipReloadTime = 0    ; how long to reload a Clip, msec
  AutoReloadsClip = Yes 
  FireSound = TankHunterWeapon
  FireFX = FX_BuggyMissileIgnition
  ProjectileDetonationFX = WeaponFX_RocketBuggyMissileDetonation
 
  AntiAirborneVehicle   = Yes
  AntiAirborneInfantry  = Yes
 
  ; note, these only apply to units that aren't the explicit target 
  ; (ie, units that just happen to "get in the way"... projectiles
  ; always collide with the Designated Target, regardless of these flags
  ProjectileCollidesWith = STRUCTURES
End

Object ChinaInfantryBlahblah
  WeaponSet
    Conditions = None 
    Weapon = PRIMARY HunterMissileLauncher
  End
 End

Edited by user Saturday, April 29, 2017 6:32:59 AM(UTC)  | Reason: Not specified

A part of ZH worldbuilders map making community
https://discord.gg/tJ6zyGb

UserPostedImage





thanks 1 user thanked AdrianeMapMaker for this useful post.
Resist on 4/28/2017(UTC)
Offline Resist  
#5 Posted : Friday, April 28, 2017 10:43:14 PM(UTC)
Resist
Private
Joined: 4/19/2017(UTC)
Posts: 28

Thanks: 10 times
Was thanked: 3 time(s) in 3 post(s)
Thanks a lot , it worked ^^
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.