Official BF Editor Forums: Setting Missile Lifetime - Official BF Editor Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Setting Missile Lifetime

#1 User is offline   Outlawz Icon

  • Member
  • PipPip
  • Group: Members
  • Posts: 388
  • Joined: 28-February 07

Posted 03 April 2012 - 09:04 PM

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

Posted Image
0

#2 User is offline   clivewil Icon

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 943
  • Joined: 06-August 05
  • Gender:Male
  • Location:Perth, Western Australia
  • Interests:3d gaming, music

Posted 04 April 2012 - 02:52 AM

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)


Quote

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
Posted Image
0

#3 User is offline   Outlawz Icon

  • Member
  • PipPip
  • Group: Members
  • Posts: 388
  • Joined: 28-February 07

Posted 04 April 2012 - 06:10 AM

So what's CRD_NONE?
Posted Image
0

#4 User is offline   DEVILMAN Icon

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 777
  • Joined: 30-December 06

Posted 04 April 2012 - 10:18 AM

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
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users