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

Notification

Icon
Error

Options
Go to last post Go to first unread
Offline Unknown Editor  
#1 Posted : Monday, May 22, 2017 2:55:30 AM(UTC)
Unknown Editor
Major
Joined: 3/22/2017(UTC)
Posts: 278
Location: Some where on Earth

Thanks: 123 times
Was thanked: 69 time(s) in 59 post(s)
So , I added this as a Weapon of Some Elite Stinger Soldiers to Map.ini :

Code:
Weapon Upgraded_StingerMissileWeapon
  PrimaryDamage = 75.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 = 275.0
  DamageType = EXPLOSION          ; ignored for projectile weapons
  DeathType = EXPLODED
  WeaponSpeed = 750               ; ignored for projectile weapons
  ProjectileObject = StingerMissile
  ProjectileExhaust           = MissileExhaust
  VeterancyProjectileExhaust  = HEROIC HeroicMissileExhaust
  RadiusDamageAffects = ALLIES ENEMIES NEUTRALS
  DelayBetweenShots = 0    ; time between shots, msec
  ClipSize = 1             ; how many shots in a Clip (0 == infinite)
  ClipReloadTime = 1500    ; how long to reload a Clip, msec
  AutoReloadsClip = Yes 
  FireFX = FX_StingerMissileIgnition
  FireSound = StingerMissileWeapon
  ProjectileDetonationFX = WeaponFX_StingerMissileDetonation
  AntiAirborneVehicle = No
  AntiAirborneInfantry = No
  AntiGround = Yes
  WeaponBonus = PLAYER_UPGRADE DAMAGE 125% ; AP rocket upgrade
  ProjectileCollidesWith = STRUCTURES
End

Weapon Upgraded_StingerMissileWeaponAir
  PrimaryDamage = 100.0            
  PrimaryDamageRadius = 10.0      
  ScatterRadiusVsInfantry     = 10.0     ;When this weapon is used against infantry, it can randomly miss by as much as this distance.
  AttackRange = 500.0
  DamageType = EXPLOSION          ; ignored for projectile weapons
  DeathType = EXPLODED
  WeaponSpeed = 600               ; ignored for projectile weapons
  ProjectileObject = StingerMissile
  ProjectileExhaust           = MissileExhaust
  VeterancyProjectileExhaust  = HEROIC HeroicMissileExhaust
  RadiusDamageAffects = ALLIES ENEMIES NEUTRALS
  DelayBetweenShots = 0    ; time between shots, msec
  ClipSize = 1             ; how many shots in a Clip (0 == infinite)
  ClipReloadTime = 1500    ; how long to reload a Clip, msec
  AutoReloadsClip = Yes 
  FireFX = FX_StingerMissileIgnition
  FireSound = StingerMissileWeapon
  ProjectileDetonationFX = WeaponFX_StingerMissileDetonation
  AntiAirborneVehicle = Yes
  AntiAirborneInfantry = No
  AntiGround = No
  AntiBallisticMissile = Yes
  ProjectileCollidesWith = STRUCTURES
End

Object GC_Slth_GLAInfantryStingerSoldier

  WeaponSet
    Conditions          = None 
    Weapon              = PRIMARY   Upgraded_StingerMissileWeapon
    AutoChooseSources   = PRIMARY   FROM_PLAYER FROM_AI FROM_SCRIPT
    Weapon              = SECONDARY Upgraded_StingerMissileWeaponAir
    PreferredAgainst    = SECONDARY BALLISTIC_MISSILE AIRCRAFT
  End
End


That is a Weapon set with less Reload timing and More Damage and Range .
It works with no Error Messages but it just Doesn't have any missiles Shooting ! Ashamed
It just Contains the Shooting Animation and Damage to the Enemy But no Missiles will be Shown !
I don't know What did I Miss , Please Help ! Disapprove
Thanks For Reading .
Asking is Not a Problem , Problem is Not to Know Something .

Operation : Dark Angel
Static : Launch Delayed
Reason : Uncool Terrain - Old Logic in use - Lack of Performance
Status : Applying new Terrain - Applying new Logic - Increasing Performance by 300%
thanks 1 user thanked Unknown Editor for this useful post.
elliesy on 5/22/2017(UTC)
Sponsor
Offline SkyMix_RMT  
#2 Posted : Monday, May 22, 2017 7:42:31 AM(UTC)
SkyMix_RMT
Major
Joined: 2/21/2015(UTC)
Posts: 386
Portugal

Thanks: 80 times
Was thanked: 132 time(s) in 96 post(s)
Sorry to say but projectile based weapons don't work in a map.ini. However you could add two stinger soldier weapons to the PRIMARY and SECONDARY and make it fire two rockets at a time.

Edited by user Monday, May 22, 2017 7:44:18 AM(UTC)  | Reason: Not specified

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.
Unknown Editor on 5/22/2017(UTC)
Offline Unknown Editor  
#3 Posted : Monday, May 22, 2017 10:43:48 AM(UTC)
Unknown Editor
Major
Joined: 3/22/2017(UTC)
Posts: 278
Location: Some where on Earth

Thanks: 123 times
Was thanked: 69 time(s) in 59 post(s)
Owh , Thanks for Telling me , At list as You said I can Make it 2 times more Powerful and that's Cool enough . THANKS .
Asking is Not a Problem , Problem is Not to Know Something .

Operation : Dark Angel
Static : Launch Delayed
Reason : Uncool Terrain - Old Logic in use - Lack of Performance
Status : Applying new Terrain - Applying new Logic - Increasing Performance by 300%
Offline mr_hymn_  
#4 Posted : Monday, May 22, 2017 8:45:33 PM(UTC)
mr_hymn_
Major
Joined: 2/28/2017(UTC)
Posts: 410
Thailand
Location: Bangkok

Thanks: 63 times
Was thanked: 145 time(s) in 127 post(s)
but microwave fireweaponupdate behaviour is work for map.ini when I put all of my unit have fireweaponupdate behaviour but rather destroy things around it than focus only infsntry
Offline SkyMix_RMT  
#5 Posted : Tuesday, May 23, 2017 3:51:52 AM(UTC)
SkyMix_RMT
Major
Joined: 2/21/2015(UTC)
Posts: 386
Portugal

Thanks: 80 times
Was thanked: 132 time(s) in 96 post(s)
It works if you use existing ones, it doean't work if you modify or create your own like unknown editor did.

Edited by user Tuesday, May 23, 2017 3:52:35 AM(UTC)  | Reason: Not specified

Check out:

My Music (Techno/House/Experimental)

My Website (GeneralsCentral)

My Youtube Channel (Inactive)

World Builder Community Discord
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.