Change this.
Heres the code:
Add this to weapon.ini
Weapon HowitzerMachineGun
PrimaryDamage = 10.0
PrimaryDamageRadius = 3.0
AttackRange = 225.0
DamageType = SMALL_ARMS
DeathType = NORMAL
WeaponSpeed = 99999.0
ProjectileObject = InfantryBullet
FireFX = WeaponFX_TechnicalGunFire
FireSound = BattleDroneWeapon
ScatterRadius = 15
RadiusDamageAffects = ENEMIES
AntiAirborneVehicle = Yes
AntiGround = Yes
DelayBetweenShots = 50
ClipSize = 0
ClipReloadTime = 0
End
Add this to factionunit.ini
Object InfantryBullet
; *** ART Parameters ***
Draw = W3DModelDraw ModuleTag_01
ConditionState = NONE
Model = NONE
End
End
; ***DESIGN parameters ***
DisplayName = OBJECT:InfantryBullet
EditorSorting = SYSTEM
ArmorSet
Armor = ProjectileArmor
End
VisionRange = 0.0
; *** ENGINEERING Parameters ***
KindOf = PROJECTILE
Body = ActiveBody ModuleTag_02
MaxHealth = 100.0
InitialHealth = 100.0
End
Behavior = DestroyDie ModuleTag_03
;nothing
End
Behavior = DumbProjectileBehavior ModuleTag_04
; To tweak a Bezier path, please see GS
FirstHeight = 10 ; Height of Bezier control points above highest intervening terrain
SecondHeight = 10
FirstPercentIndent = 50% ; Percentage of shot distance control points are placed
SecondPercentIndent = 90%
FlightPathAdjustDistPerSecond = 100 ; Can allow a max speed this can attempt to follow a target. Units are their velocity we can tag.
End
Behavior = PhysicsBehavior ModuleTag_05
Mass = 0.01 ; we can't have a zero mass, but we want it pretty tiny...
End
Geometry = Sphere
GeometryIsSmall = Yes
GeometryMajorRadius = 1.0
End
if this doesnt work you got some coding wrong. (it works for me)
if it doesnt work ill send you a compleet coding. just ask me then.
|