iboxful
  • iboxful
  • 50.25% (Neutral)
  • Private Topic Starter
8 years ago
Hello iam trying to modify the damage and range of a weapon.ini can i use map.ini to do that ?
Sponsor
SkyMix_RMT
8 years ago
Yes you can.
For example here's the weapon the rebel uses.

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