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

Notification

Icon
Error

Options
Go to last post Go to first unread
Offline iboxful  
#1 Posted : Sunday, October 15, 2017 8:48:36 AM(UTC)
iboxful
Private
Joined: 10/15/2017(UTC)
Posts: 2

Thanks: 1 times
Hello iam trying to modify the damage and range of a weapon.ini can i use map.ini to do that ?
Sponsor
Offline SkyMix_RMT  
#2 Posted : Sunday, October 15, 2017 9:23: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)
Yes you can.
For example here's the weapon the rebel uses.
Code:

Weapon GLARebelMachineGun
  PrimaryDamage         = 5.0
  PrimaryDamageRadius   = 0.0       ; 0 primary radius means "hits only intended victim"
  AttackRange           = 100.0
  DamageType            = SMALL_ARMS
  DeathType             = NORMAL
  WeaponSpeed           = 999999.0          ; dist/sec (huge value == effectively instant)
  ProjectileObject      = NONE
  FireFX                = WeaponFX_GenericMachineGunFire
  VeterancyFireFX       = HEROIC WeaponFX_GenericMachineGunFireWithRedTracers ; Heroic rebels get different FireFX
  FireSound             = RebelWeapon
  RadiusDamageAffects   = ALLIES ENEMIES NEUTRALS
  DelayBetweenShots     = 100               ; time between shots, msec
  ClipSize              = 3                    ; how many shots in a Clip (0 == infinite)
  ClipReloadTime        = 700              ; how long to reload a Clip, msec
  WeaponBonus           = PLAYER_UPGRADE DAMAGE 125% ; AP weapon upgrade
End


To increase damage change the PrimaryDamage value.
To increase range change the AttackRange value.

Becareful, you can't modify projectile base weapons with a map.ini or else they won't work.
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.
iboxful on 10/17/2017(UTC)
Users browsing this topic
Guest
Similar Topics
Map.ini help? (Generals: Modding)
by DavisProg 8/12/2011 4:09:11 PM(UTC)
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.