Posted by: iboxful - Sunday, October 15, 2017 9:48:36 AM
Hello iam trying to modify the damage and range of a weapon.ini can i use map.ini to do that ?

Posted by: SkyMix_RMT - Sunday, October 15, 2017 10:23:31 AM
Yes you can. For example here's the weapon the rebel uses. [code=plain] 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 [/code] 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.