Posted by: unnem - Sunday, April 21, 2013 5:45:11 AM
I created something like artillery cannon but i have no idea what i did wrong because when im using this power game is getting slower when "transport" is coming to target.
When "transport" is shoting down game speed is getting normal.
OCL:
[code]
ObjectCreationList SUPERWEAPON_Cannon ;looks like shit. but works.
DeliverPayload
Transport = Transport
FormationSize = 4
FormationSpacing = 25.0
StartAtPreferredHeight = Yes
StartAtMaxSpeed = Yes
MaxAttempts = 1 ;max attempts
DeliveryDistance = 200
WeaponErrorRadius = 500 ; how bad the artillerist is
DelayDeliveryMax = 1100 ; his delayed reaction to "Fire!"
VisibleItemsDroppedPerInterval = 1 ;Drops two bombs at a time
VisibleDropBoneBaseName = RootTransform
VisibleSubObjectBaseName = Bomb ;The bombs are visible until dropped.
VisibleNumBones = 1 ;Number of bones.
VisiblePayloadTemplateName = BlaBlaBlaBlaBlaBlaBla ;Created when payload is dropped.
VisiblePayloadWeaponTemplate = FallDamage
InheritTransportVelocity = Yes ;The bombs will start at transport velocity.
ExitPitchRate = 90 ;The bomb will pitch down.
SelfDestructObject = Yes ; so the delivery vehicle goes away 'POP!'
DeliveryDecalRadius = 125
DeliveryDecal
Texture = SCCArtilleryBarrage_China
Style = SHADOW_ALPHA_DECAL
OpacityMin = 25%
OpacityMax = 50%
OpacityThrobTime = 500
Color = R:255 G:156 B:0 A:255
OnlyVisibleToOwningPlayer = Yes
End
End
End
[/code]
Locomotor of "transport"
[code]
Locomotor transportlocomotor
Surfaces = AIR
Speed = 150; ; in dist/sec
SpeedDamaged = 150 ; in dist/sec
MinSpeed = 145 ; in dist/sec
TurnRate = 144 ; in degrees/sec
TurnRateDamaged = 90 ; in degrees/sec
MaxThrustAngle = 90 ; in degrees (NOT degrees/sec)
Acceleration = 80 ; in dist/(sec^2)
AccelerationDamaged = 50 ; in dist/(sec^2)
Lift = 120 ; in dist/(sec^2)
LiftDamaged = 80 ; in dist/(sec^2)
Braking = 10 ; in dist/(sec^2)
MinTurnSpeed = 70 ; in dist/sec
PreferredHeight = 300
AllowAirborneMotiveForce = Yes
ZAxisBehavior = SURFACE_RELATIVE_HEIGHT
CirclingRadius = 100
Appearance = WINGS
PitchInDirectionOfZVelFactor = 1.0
PitchStiffness = 0.5
RollStiffness = 0.4
PitchDamping = 0.9
RollDamping = 0.8
ForwardVelocityPitchFactor = 0
LateralVelocityRollFactor = 0.2
Apply2DFrictionWhenAirborne = Yes
AirborneTargetingHeight = 30
LocomotorWorksWhenDead = Yes
End
[/code]
All is copied from artillery cannon just changed few things.
Game FPS is getting slower and slower just like the AI is trying to do something that he can't and game is getting slow.
Posted by: NewNightmare - Sunday, April 21, 2013 10:09:37 AM
Troubleshoot,
try using a different locomotor, if nothing changes, its inside the OCL.
Once you actually figure out in which file the problem is, try changing values by extreme amounts.
And since it's something to do with the firing process, I'd look at the weapon-related values first of all.