Announcement

Collapse
No announcement yet.

Usable Arty Help!

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Usable Arty Help!

    Code someone help me im trying to make the stinger into artillary that is usable could someone tell me whats wrong with my code when i try entering it it kills me and it dosn't look like arttilary.
    Code:
    rem *** Generated with Bf2Editor.exe [created: 2005/10/3 6:41]
    GeometryTemplate.setSubGeometryLodDistance 1 0 15
    GeometryTemplate.setSubGeometryLodDistance 1 1 30
    GeometryTemplate.setSubGeometryLodDistance 1 2 90
    GeometryTemplate.setMaterialReflectionScale 1 0 2 1.5
    GeometryTemplate.compressVertexData 1
    GeometryTemplate.maxTextureRepeat 16
    GeometryTemplate.useRadiusForShadowSpatial 1
    ObjectTemplate.activeSafe PlayerControlObject usaas_stinger
    ObjectTemplate.creator PHO-1:pho
    ObjectTemplate.modifiedByUser "armandoma"
    ObjectTemplate.setNetworkableInfo BasicInfo
    ObjectTemplate.saveInSeparateFile 1
    ObjectTemplate.castsDynamicShadow 1
    rem ---BeginComp:SingleFireComp ---
    ObjectTemplate.createComponent SingleFireComp
    ObjectTemplate.fire.addFireRate 2
    ObjectTemplate.fire.fireInCameraDof 1
    rem ---EndComp ---
    rem ---BeginComp:DefaultAmmoComp ---
    ObjectTemplate.createComponent DefaultAmmoComp
    ObjectTemplate.ammo.ammoType 1
    ObjectTemplate.ammo.nrOfMags 15
    ObjectTemplate.ammo.magSize 1
    ObjectTemplate.ammo.reloadTime 6.666
    ObjectTemplate.ammo.autoReload 1
    rem ---EndComp ---
    rem ---BeginComp:WeaponBasedRecoilComp ---
    ObjectTemplate.createComponent WeaponBasedRecoilComp
    ObjectTemplate.recoil.recoilSize 0.25
    ObjectTemplate.recoil.recoilSpeed 30
    ObjectTemplate.recoil.cameraRecoilSpeed 8
    ObjectTemplate.recoil.cameraRecoilSize 0.5
    rem ---EndComp ---
    rem ---BeginComp:SimpleDeviationComp ---
    ObjectTemplate.createComponent SimpleDeviationComp
    ObjectTemplate.deviation.minDev 0.6
    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.addZoomFactor 0
    rem ---EndComp ---
    ObjectTemplate.geometry ARS_D30
    ObjectTemplate.floaterMod 0
    ObjectTemplate.hasMobilePhysics 0
    ObjectTemplate.physicsType Mesh
    ObjectTemplate.aiTemplate rulmg_rpk74_stationary
    rem -------------------------------------
    ObjectTemplate.addTemplate S_USART_LW155_Barrel_Fire1P
    ObjectTemplate.addTemplate S_USART_LW155_Barrel_Fire1P_Outdoor
    ObjectTemplate.addTemplate S_USART_LW155_Barrel_Fire3P
    ObjectTemplate.setPosition 0/-0.122477/6.42567
    ObjectTemplate.addTemplate S_USART_LW155_Barrel_BoltClick
    ObjectTemplate.addTemplate S_USART_LW155_Barrel_TriggerClick
    ObjectTemplate.addTemplate S_USART_LW155_Barrel_SwitchFireRate
    ObjectTemplate.addTemplate S_USART_LW155_Barrel_Reload1P
    ObjectTemplate.addTemplate S_USART_LW155_Barrel_Reload3P
    ObjectTemplate.addTemplate S_USART_LW155_Barrel_Deploy1P
    ObjectTemplate.addTemplate S_USART_LW155_Barrel_Deploy3P
    ObjectTemplate.addTemplate S_USART_LW155_Barrel_Zoom
    ObjectTemplate.addTemplate e_muzz_artillery
    ObjectTemplate.setPosition 0/-0.115602/6.48799
    ObjectTemplate.addTemplate geb_tank
    ObjectTemplate.setPosition 0/-0.112929/6.27835
    rem -------------------------------------
    ObjectTemplate.projectileTemplate mec_250_bomb
    ObjectTemplate.velocity 50
    ObjectTemplate.itemIndex 3
    ObjectTemplate.heatAddWhenFire 0
    ObjectTemplate.coolDownPerSec 0.4
    ObjectTemplate.overheatPenalty 3
    
    ObjectTemplate.create GenericProjectile mec_250_bomb
    ObjectTemplate.modifiedByUser nfe
    ObjectTemplate.createNotInGrid 1
    ObjectTemplate.createdInEditor 1
    rem ---BeginComp:DefaultCollisionComp ---
    ObjectTemplate.createComponent DefaultCollisionComp
    rem ---EndComp ---
    rem ---BeginComp:DefaultDetonationComp ---
    ObjectTemplate.createComponent DefaultDetonationComp
    ObjectTemplate.detonation.explosionMaterial 56
    ObjectTemplate.detonation.explosionRadius 17
    ObjectTemplate.detonation.explosionForce 20
    ObjectTemplate.detonation.explosionDamage 350
    ObjectTemplate.detonation.endEffectTemplate e_exp_Xlarge
    ObjectTemplate.detonation.useMMOnEndEffect 1
    ObjectTemplate.detonation.detectionRadius 1.5
    ObjectTemplate.detonation.maxDepthForExplosion 2
    rem ---EndComp ---
    rem ---BeginComp:DefaultProjSoundComp ---
    ObjectTemplate.createComponent DefaultProjSoundComp
    rem ---EndComp ---
    rem ---BeginComp:DefaultRicochetComp ---
    ObjectTemplate.createComponent DefaultRicochetComp
    rem ---EndComp ---
    rem ---BeginComp:DefaultPenetrateComp ---
    ObjectTemplate.createComponent DefaultPenetrateComp
    rem ---EndComp ---
    ObjectTemplate.floaterMod 0
    ObjectTemplate.hasMobilePhysics 1
    ObjectTemplate.hasCollisionPhysics 1
    ObjectTemplate.physicsType Point
    ObjectTemplate.collisionGroups 8
    ObjectTemplate.material 56
    rem -------------------------------------
    ObjectTemplate.addTemplate S_mec_250_bomb_Looping
    rem -------------------------------------
    ObjectTemplate.timeToLive CRD_NONE/60/0/0
    ObjectTemplate.material 56
    ObjectTemplate.minDamage 999
    ObjectTemplate.damage 9999
    
    ObjectTemplate.activeSafe Sound S_rulmg_rpk74_stationary_Fire1P
    ObjectTemplate.modifiedByUser nfe
    ObjectTemplate.soundFilename "objects/weapons/stationary/usart_lw155/sounds/lw155_artillery_fire.wav"
    ObjectTemplate.loopCount 0
    ObjectTemplate.is3dSound 0
    ObjectTemplate.stopType 1
    ObjectTemplate.volume 0.71
    ObjectTemplate.pitch 1
    ObjectTemplate.pan 0.5
    ObjectTemplate.reverbLevel 1
    ObjectTemplate.pitchEnvelope 0/1/0.9/1.1/1/1/0/0.98/1.04/
    ObjectTemplate.volumeEnvelope 0/1/0/1/1/1/0/0.9/1/
    
    
    
    ObjectTemplate.activeSafe Sound S_rulmg_rpk74_stationary_Fire3P
    ObjectTemplate.modifiedByUser nfe
    ObjectTemplate.soundFilename "objects/weapons/stationary/usart_lw155/sounds/lw155_artillery_fire.wav"
    ObjectTemplate.loopCount 0
    ObjectTemplate.is3dSound 1
    ObjectTemplate.stopType 1
    ObjectTemplate.volume 1
    ObjectTemplate.pitch 1
    ObjectTemplate.reverbLevel 0.2
    ObjectTemplate.pitchEnvelope 0/1/0.9/1.1/1/1/0/0.975/1.035/
    ObjectTemplate.volumeEnvelope 0/1/0/1/1/1/0/0.9/1/
    ObjectTemplate.position 0.00519269/0.0164237/0.611097
    ObjectTemplate.halfVolumeDistance 4
    ObjectTemplate.soundRadius 0.5

  • #2
    Re: Usable Arty Help!

    The problem is youve used a bomb as the projectile to be fired. Basically what you are doing is firing a bomb and its landing right in front of you, thus killing you instantly. You either need to change the projectile or edit the projectile to actually fire out of the barrels.

    Comment


    • #3
      Re: Usable Arty Help!

      Thanks im new to this stuff.
      Edit: The stinger disapears now/

      Comment


      • #4
        Re: Usable Arty Help!

        can you post the working code please?

        Comment


        • #5
          Re: Usable Arty Help!

          Its in the first post if your talking about the modified bomb ill post that too
          Code:
          rem *** Generated with Bf2Editor.exe [created: 2005/5/2 12:12]
          GeometryTemplate.compressVertexData 1
          GeometryTemplate.maxTextureRepeat 16
          ObjectTemplate.activeSafe GenericProjectile mec_250_bomb
          ObjectTemplate.creator DSU-3:dsu
          ObjectTemplate.modifiedByUser mei
          ObjectTemplate.setNetworkableInfo BasicInfo
          ObjectTemplate.saveInSeparateFile 1
          ObjectTemplate.createNotInGrid 1
          ObjectTemplate.cullRadiusScale 5
          rem ---BeginComp:DefaultCollisionComp ---
          ObjectTemplate.createComponent DefaultCollisionComp
          ObjectTemplate.collision.hasCollisionEffect 1
          rem ---EndComp ---
          rem ---BeginComp:DefaultDetonationComp ---
          ObjectTemplate.createComponent DefaultDetonationComp
          ObjectTemplate.detonation.explosionMaterial 56
          ObjectTemplate.detonation.explosionRadius 17
          ObjectTemplate.detonation.explosionForce 20
          ObjectTemplate.detonation.explosionDamage 350
          ObjectTemplate.detonation.endEffectTemplate e_exp_Xlarge
          ObjectTemplate.detonation.useMMOnEndEffect 1
          ObjectTemplate.detonation.detectionRadius 1.5
          ObjectTemplate.detonation.maxDepthForExplosion 2
          rem ---EndComp ---
          rem ---BeginComp:DefaultProjSoundComp ---
          ObjectTemplate.createComponent DefaultProjSoundComp
          rem ---EndComp ---
          rem ---BeginComp:DefaultRicochetComp ---
          ObjectTemplate.createComponent DefaultRicochetComp
          rem ---EndComp ---
          rem ---BeginComp:DefaultPenetrateComp ---
          ObjectTemplate.createComponent DefaultPenetrateComp
          ObjectTemplate.penetrate.allowSolidPenetration 0
          ObjectTemplate.penetrate.allowLiquidPenetration 0
          rem ---EndComp ---
          ObjectTemplate.geometry mec_250_bomb
          ObjectTemplate.setCollisionMesh Mec_250_bomb
          ObjectTemplate.mapMaterial 0 metal 32
          ObjectTemplate.drag 0.5
          ObjectTemplate.mass 500
          ObjectTemplate.floaterMod 0
          ObjectTemplate.hasMobilePhysics 1
          ObjectTemplate.hasCollisionPhysics 1
          ObjectTemplate.physicsType Mesh
          ObjectTemplate.collisionGroups 8
          ObjectTemplate.material 56
          rem -------------------------------------
          ObjectTemplate.addTemplate S_mec_250_bomb_Looping
          rem -------------------------------------
          ObjectTemplate.timeToLive CRD_NONE/10/0/0
          ObjectTemplate.material 56
          ObjectTemplate.hasOnTimeEffect 1
          ObjectTemplate.armingDelay 0.5
          ObjectTemplate.minDamage 1
          ObjectTemplate.damage 0
          
          ObjectTemplate.activeSafe Sound S_mec_250_bomb_Looping
          ObjectTemplate.modifiedByUser mei
          ObjectTemplate.lowSamples 2147483647
          ObjectTemplate.mediumSamples 2147483647
          ObjectTemplate.soundFilename "objects/weapons/stationary/usart_lw155/sounds/artillery_projectile_01.wav,objects/weapons/stationary/usart_lw155/sounds/artillery_projectile_02.wav,objects/weapons/stationary/usart_lw155/sounds/artillery_projectile_03.wav"
          ObjectTemplate.loopCount 0
          ObjectTemplate.is3dSound 1
          ObjectTemplate.stopType 0
          ObjectTemplate.volume 0.8
          ObjectTemplate.pitch 1
          ObjectTemplate.reverbLevel 1
          ObjectTemplate.pitchEnvelope 0/1/0.9/1.1/1/1/0/0.93/1.1/
          ObjectTemplate.minDistance 8
          ObjectTemplate.halfVolumeDistance 10

          Comment


          • #6
            Re: Usable Arty Help!

            Is it dropping the projectile from the sky?

            Comment


            • #7
              Re: Usable Arty Help!

              Just change the geometry and collision mesh the the arty name.

              Comment

              Working...
              X