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

Notification

Icon
Error

Options
Go to last post Go to first unread
Offline hamed_GLA  
#1 Posted : Monday, December 3, 2018 7:23:44 AM(UTC)
hamed_GLA
Private
Joined: 12/3/2018(UTC)
Posts: 3

Thanks: 2 times
Hi to all.
I use tibed2 to modify my game ( zero hour). I am wonder How add weapons to an unit.
for example Gla RPG trooper with 2 kind of RPG: 1-nuke missle luancher (normal RPG with nuke warhead) 2-neutron RPG
how the warhead of a weapon changes ?
and
how add new weapon to unit with switch for change between them?
sorry for my bad english Genarals. cuz I am from a GLA country.Wink

Edited by user Monday, December 3, 2018 7:24:24 AM(UTC)  | Reason: Not specified

Sponsor
Offline UTD^Force  
#2 Posted : Monday, December 3, 2018 10:41:14 AM(UTC)
UTD^Force
Colonel
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 8/13/2013(UTC)
Posts: 817
Jordan
Location: Middle east

Thanks: 430 times
Was thanked: 184 time(s) in 168 post(s)
Hey, welcome to our community.
I recommend checking this out before you start modding the game.

http://www.cnclabs.com/f...g-starting--Modding.aspx

After you have a general idea of what ini code is and how it functions, you will be able to change weapons and much more.
To make a weapon be changed by a switch, you should check the nuke launcher's neutron/nuclear weapon or the scud launcher's scud/demo missile.
Good luck.
Proud Muslim

UTD^Force

Moderator and former map reviewer
CnC Labs
thanks 1 user thanked UTD^Force for this useful post.
hamed_GLA on 12/4/2018(UTC)
Offline hamed_GLA  
#3 Posted : Wednesday, December 5, 2018 1:45:35 PM(UTC)
hamed_GLA
Private
Joined: 12/3/2018(UTC)
Posts: 3

Thanks: 2 times
thanks a lot . Now I can do every thing I want but the weapon function. the weapon characteristic confused me and I can not build an RPG with Neutron warhead ( like nuke cannon). In The past I easily made weapons for red alert 1&2 but for zero hour I just stuck here!.
Offline UTD^Force  
#4 Posted : Saturday, December 8, 2018 4:16:11 AM(UTC)
UTD^Force
Colonel
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 8/13/2013(UTC)
Posts: 817
Jordan
Location: Middle east

Thanks: 430 times
Was thanked: 184 time(s) in 168 post(s)
You can check the code for the nuke launcher's weapon in weapon.ini (you might need to check the weapon's OCL from ObjectCreationList.ini, I'm not sure) and then checking the weapon's object from WeaponObject.ini if you do that, your problem should be solved. If you don't manage to do it, I will give you the code if I get free time.

Edited by user Saturday, December 8, 2018 4:17:34 AM(UTC)  | Reason: Not specified

Proud Muslim

UTD^Force

Moderator and former map reviewer
CnC Labs
thanks 1 user thanked UTD^Force for this useful post.
hamed_GLA on 12/8/2018(UTC)
Offline hamed_GLA  
#5 Posted : Saturday, December 8, 2018 12:55:19 PM(UTC)
hamed_GLA
Private
Joined: 12/3/2018(UTC)
Posts: 3

Thanks: 2 times
very impressive. thank you man. It worked

Edited by user Saturday, December 8, 2018 1:07:13 PM(UTC)  | Reason: Not specified

Offline UTD^Force  
#6 Posted : Saturday, December 8, 2018 1:12:11 PM(UTC)
UTD^Force
Colonel
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 8/13/2013(UTC)
Posts: 817
Jordan
Location: Middle east

Thanks: 430 times
Was thanked: 184 time(s) in 168 post(s)
I'm not really sure if you have to make another one or not.
The tunnel defender uses only one weapon and it can attack airborne vehicles.
This is the weapon he (or she, lol) uses.
Code:
;------------------------------------------------------------------------------
Weapon TunnelDefenderRocketWeapon
  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            = TunnelDefenderMissile
  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                   = RPGTrooperWeapon
  FireFX                      = None
  ProjectileDetonationFX      = WeaponFX_RocketBuggyMissileDetonation
  ProjectileCollidesWith      = STRUCTURES
  AntiAirborneVehicle         = Yes
  AntiAirborneInfantry        = Yes
  AntiAirborneVehicle         = Yes ; I have no idea why he has this twice
  WeaponBonus = PLAYER_UPGRADE DAMAGE 125% ; AP rocket upgrade
End


EDIT: I've just checked that you have edited your reply, I'm glad that you could solve your problem yourself.

Edited by user Saturday, December 8, 2018 1:16:53 PM(UTC)  | Reason: Not specified

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.