Jump to content
Official BF Editor Forums

Setting Missile Lifetime


Outlawz
 Share

Recommended Posts

I'm trying to tweak the Eryx missile to die at 600m, but I can't figure out the number of commands that affect the missile's speed. I've been changing the TimetoLive line a lot, but can't get even close with that. Here's the weapon and missile tweaks:

rem *** Generated with Bf2Editor.exe [created: 2005/3/29 18:47]
GeometryTemplate.maxSkip3pLods 0
GeometryTemplate.setMaterialReflectionScale 0 0 0 0.35
GeometryTemplate.setMaterialReflectionScale 0 0 1 2
GeometryTemplate.compressVertexData 1
GeometryTemplate.maxTextureRepeat 16
ObjectTemplate.activeSafe GenericFireArm chat_eryx
ObjectTemplate.creator TLO-1:tlo
ObjectTemplate.modifiedByUser jsa
ObjectTemplate.saveInSeparateFile 1
ObjectTemplate.castsDynamicShadow 1
ObjectTemplate.cullRadiusScale 10
rem ---BeginComp:WeaponHud ---
ObjectTemplate.createComponent WeaponHud
ObjectTemplate.weaponHud.selectIcon Ingame\Weapons\Icons\Hud\Selection\CHAT_ERYX.tga
ObjectTemplate.weaponHud.specialAbilityIcon Ingame\Weapons\Icons\Hud\SpecialKitIcons\antiTank.tga
ObjectTemplate.weaponHud.hudName "killed"
ObjectTemplate.weaponHud.GuiIndex 0
ObjectTemplate.weaponHud.altGuiIndex 58
ObjectTemplate.weaponHud.disableOnSprint 1
rem ---EndComp ---
rem ---BeginComp:SingleFireComp ---
ObjectTemplate.createComponent SingleFireComp
ObjectTemplate.fire.addFireRate 0
ObjectTemplate.fire.projectileStartPosition 0.001/0.05/0
ObjectTemplate.fire.showWeaponAfterReloadDelay 3
ObjectTemplate.fire.dropWeaponAfterFiringDelay 1.5
ObjectTemplate.fire.hideWeaponAfterReloadDelay 2.25
ObjectTemplate.fire.dropWeaponAfterReloadDelay 2.21667
ObjectTemplate.fire.dropLod 3
ObjectTemplate.fire.hideLod 2
ObjectTemplate.fire.busyUntilButtonRelease 1
rem ---EndComp ---
rem ---BeginComp:DefaultAmmoComp ---
ObjectTemplate.createComponent DefaultAmmoComp
ObjectTemplate.ammo.ammoType 1
ObjectTemplate.ammo.nrOfMags 1
ObjectTemplate.ammo.magSize 1
ObjectTemplate.ammo.reloadTime 18.75
ObjectTemplate.ammo.minimumTimeUntilReload 1
ObjectTemplate.ammo.autoReload 0
ObjectTemplate.ammo.instantReloadOnEnable 0
ObjectTemplate.ammo.toggleWhenNoAmmo 1
ObjectTemplate.ammo.reloadWithoutPlayer 0
rem ---EndComp ---
rem ---BeginComp:SoldierBasedRecoilComp ---
ObjectTemplate.createComponent SoldierBasedRecoilComp
rem ---EndComp ---
rem ---BeginComp:SoldierDeviationComp ---
ObjectTemplate.createComponent SoldierDeviationComp
ObjectTemplate.deviation.minDev 0.1
ObjectTemplate.deviation.setTurnDev 20 0.78 0.78 0.13
ObjectTemplate.deviation.setSpeedDev 20 .132 .132 0.13
ObjectTemplate.deviation.setMiscDev 20 20 0.2
ObjectTemplate.deviation.devModStand 1
ObjectTemplate.deviation.devModCrouch 0.8
ObjectTemplate.deviation.devModLie 400
ObjectTemplate.deviation.devModZoom 1
rem ---EndComp ---
rem ---BeginComp:DefaultSoundComp ---
ObjectTemplate.createComponent DefaultSoundComp
rem ---EndComp ---
rem ---BeginComp:DefaultAnimationComp ---
ObjectTemplate.createComponent DefaultAnimationComp
rem ---EndComp ---
rem ---BeginComp:DefaultZoomComp ---
ObjectTemplate.createComponent DefaultZoomComp
ObjectTemplate.zoom.zoomDelay 1.5
ObjectTemplate.zoom.changeFovDelay 1.5
ObjectTemplate.zoom.zoomLod 1
ObjectTemplate.zoom.addZoomFactor 0
ObjectTemplate.zoom.addZoomFactor 0.405
ObjectTemplate.zoom.mouseSpeedMod 0.5
rem ---EndComp ---
rem ---BeginComp:LPTargetComp ---
ObjectTemplate.createComponent LPTargetComp
ObjectTemplate.target.maxDistance 9999
ObjectTemplate.target.setTargetAtMaxDistance 1
ObjectTemplate.target.targetSystem TSWireGuided
ObjectTemplate.target.connectionEffect e_predatorscope
ObjectTemplate.target.targetObjectTemplate UniqueTarget
ObjectTemplate.target.connectionEffectOnlyWhenZoomed 1
ObjectTemplate.target.disableGuidanceOnReload 1
rem ---EndComp ---
ObjectTemplate.geometry CHAT_ERYX
ObjectTemplate.drag 20
ObjectTemplate.mass 100
ObjectTemplate.gravityModifier 4
ObjectTemplate.hasMobilePhysics 0
ObjectTemplate.aiTemplate at_heavy_ai
rem -------------------------------------
ObjectTemplate.addTemplate S_chat_eryx_Fire1P
ObjectTemplate.addTemplate S_chat_eryx_Fire1P_Outdoor
ObjectTemplate.addTemplate S_chat_eryx_Fire3P
ObjectTemplate.setPosition 0/0.04293/0.48837
ObjectTemplate.addTemplate S_chat_eryx_BoltClick
ObjectTemplate.addTemplate S_chat_eryx_TriggerClick
ObjectTemplate.addTemplate S_chat_eryx_SwitchFireRate
ObjectTemplate.addTemplate S_chat_eryx_Reload1P
ObjectTemplate.addTemplate S_chat_eryx_Reload3P
ObjectTemplate.addTemplate S_chat_eryx_Deploy1P
ObjectTemplate.addTemplate S_chat_eryx_Deploy3P
ObjectTemplate.addTemplate S_chat_eryx_Zoom
ObjectTemplate.addTemplate e_muzz_eryx
ObjectTemplate.setPosition 0/0.04293/0
rem -------------------------------------
ObjectTemplate.animationSystem1P Objects/Weapons/Handheld/CHAT_ERYX/AnimationSystem1p.inc
ObjectTemplate.animationSystem3P Objects/Weapons/Handheld/CHAT_ERYX/AnimationSystem3p.inc
ObjectTemplate.projectileTemplate eryx
ObjectTemplate.keepProjectiles 15
ObjectTemplate.velocity 18
ObjectTemplate.itemIndex 4
ObjectTemplate.delayToUse 18.75

rem *** Generated with Bf2Editor.exe [created: 2005/4/10 10:26]
GeometryTemplate.compressVertexData 1
GeometryTemplate.maxTextureRepeat 16
ObjectTemplate.activeSafe GenericProjectile eryx
ObjectTemplate.creator DSU-3:dsu
ObjectTemplate.modifiedByUser ljo
ObjectTemplate.setNetworkableInfo BasicInfo
ObjectTemplate.saveInSeparateFile 1
ObjectTemplate.createNotInGrid 1
rem ---BeginComp:DefaultCollisionComp ---
ObjectTemplate.createComponent DefaultCollisionComp
ObjectTemplate.collision.hasCollisionEffect 1
rem ---EndComp ---
rem ---BeginComp:DefaultDetonationComp ---
ObjectTemplate.createComponent DefaultDetonationComp
ObjectTemplate.detonation.explosionMaterial 3706
ObjectTemplate.detonation.explosionRadius 10
ObjectTemplate.detonation.explosionForce 10
ObjectTemplate.detonation.explosionDamage 200
ObjectTemplate.detonation.endEffectTemplate e_exp_medium
ObjectTemplate.detonation.useMMOnEndEffect 1
rem ---EndComp ---
rem ---BeginComp:DefaultProjSoundComp ---
ObjectTemplate.createComponent DefaultProjSoundComp
rem ---EndComp ---
rem ---BeginComp:SeekClosestTargetComp ---
ObjectTemplate.createComponent SeekClosestTargetComp
ObjectTemplate.seek.targetType TTUnique
ObjectTemplate.seek.trackingDelay 0.7
ObjectTemplate.seek.maxAngleLock 90
ObjectTemplate.seek.maxDistLock 800
ObjectTemplate.seek.reLockTime 0
rem ---EndComp ---
rem ---BeginComp:DefaultFollowComp ---
ObjectTemplate.createComponent DefaultFollowComp
ObjectTemplate.follow.maxYaw 0.5
ObjectTemplate.follow.maxPitch 0.5
ObjectTemplate.follow.changePitch 0.25
ObjectTemplate.follow.changeYaw 0.25
ObjectTemplate.follow.minDist 10
rem ---EndComp ---
rem ---BeginComp:DefaultPenetrateComp ---
ObjectTemplate.createComponent DefaultPenetrateComp
ObjectTemplate.penetrate.allowSolidPenetration 0
ObjectTemplate.penetrate.allowLiquidPenetration 0
rem ---EndComp ---
ObjectTemplate.geometry eryx
ObjectTemplate.setCollisionMesh eryx
ObjectTemplate.mapMaterial 0 lambert1 0
ObjectTemplate.drag 7
ObjectTemplate.mass 10
ObjectTemplate.gravityModifier 0
ObjectTemplate.floaterMod 0
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.physicsType Point
ObjectTemplate.collisionGroups 8
ObjectTemplate.material 3706
rem -------------------------------------
ObjectTemplate.addTemplate S_eryx_Looping
ObjectTemplate.addTemplate e_eryx_trail
ObjectTemplate.setPosition 0/0/-0.45
rem -------------------------------------
ObjectTemplate.timeToLive CRD_NONE/10/0/0
ObjectTemplate.material 3706
ObjectTemplate.hasOnTimeEffect 1
ObjectTemplate.damageOwner 1
ObjectTemplate.acceleration 175
ObjectTemplate.maxSpeed 245
ObjectTemplate.startDelay 0.2
ObjectTemplate.damage 800
ObjectTemplate.armingDelay 0.63

ObjectTemplate.activeSafe Sound S_eryx_Looping
ObjectTemplate.modifiedByUser ljo
ObjectTemplate.soundFilename "objects/weapons/armament/missiles/sounds/mono/rocket_engine_start_idle.wav"
ObjectTemplate.loopCount 0
ObjectTemplate.is3dSound 1
ObjectTemplate.stopType 0
ObjectTemplate.volume 1
ObjectTemplate.pitch 1
ObjectTemplate.reverbLevel 1
ObjectTemplate.minDistance 6
ObjectTemplate.halfVolumeDistance 30

Link to comment
Share on other sites

Velocity in the launcher determines the speed that the projectile leaves the barrel, after which the maxSpeed and Acceleration values in the projectile itself will take over, and it will try to reach a constant maximum speed to satisfy these - minus any resistance caused by the Drag value

me, i'd persist with refining the TimeToLive value and limit the missile that way, rather than risk harming its flight characteristics by changing its speed etc. (assuming you were happy with the original speed, of course)

ObjectTemplate.timeToLive CRD_NONE/10/0/0

also maybe try specifying the value directly, instead of passing it through the random number genny - e.g.

ObjectTemplate.timeToLive 1.32 or whatever value suits your needs

Link to comment
Share on other sites

setup 2 markers in a map,using either the editor measuring tool,or xyz coordinates

place a large object at one end,possibly a destroyable object

adjust the TTL for the projectile,so it dies just before reaching the 600 meter target

Note...because the projectile is wire guided,if it is steered off its direct path,the 600 meters (in a straight line)will be less

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...