tx guys gonna check on it and will post what i got later!
Edit:
Ok, i doublechecked my bones in gmax --> my turret01 and turretel01 are correctly aligned and so are all pivot points. Turning and elevation work normaly in game except down elevation then!
turret and turretel are correctly named in ini file so thats ok too!
Only thing thats remains is the aiupdateinterface module tag I think and maybe the weapon it self.
But i kinda checked the gattling cannon of china to see what it would do on a hill ->>> it doesnt pitch down either!!!!! try a map like alpine assault and see for yourself if u like!
So i gotta ask is possible to even let the barrel of a turret pitch down to compensate for terrain???
Anyway here is the code for my defense:
Behavior = AIUpdateInterface ModuleTag_20
Turret
ControlledWeaponSlots = PRIMARY
TurretTurnRate = 180 // turn rate, in degrees per sec
TurretPitchRate = 180
AllowsPitch = Yes
FiresWhileTurning = Yes
;NaturalTurretPitch = 45 ; this keeps it aimed half way between land
and sky
;MinIdleScanInterval = 250 ; in milliseconds
;MaxIdleScanInterval = 250 ; in milliseconds
;MinIdleScanAngle = 0 ; in degrees off the natural turret angle
;MaxIdleScanAngle = 360 ; in degrees off the natural turret
angle
End
AutoAcquireEnemiesWhenIdle = Yes ;ATTACK_BUILDINGS; defensive
weapon
MoodAttackCheckRate = 250
End
<<<<<<<<pretty strait forward i thought???>>>>>>>>>
the weapon code!!!!
Weapon TowerRailgun
PrimaryDamage = 250.0
PrimaryDamageRadius = 10
AttackRange = 400.0
ScatterRadius = 2
DamageType = ARMOR_PIERCING
DeathType = EXPLODED
WeaponSpeed = 1850.0
ProjectileObject = RailGunShell
ProjectileStreamName = RailGunStreamJet
FireSound = LaserCrusaderWeapon
FireFX = WeaponFX_GenericTankGunNoTracer
RadiusDamageAffects = ENEMIES NEUTRALS
DelayBetweenShots = 500
ClipSize = 4
ClipReloadTime = 5000
AntiAirborneVehicle = No
AntiAirborneInfantry = No
AntiSmallMissile = No
AntiBallisticMissile = No
AntiGround = Yes
DamageDealtAtSelfPosition = Yes
End
<<<<<<do i need to add max and min pitch here??>>>>>
tx in advance
|