Jump to content
Official BF Editor Forums
izrabf2

Lighter

Recommended Posts

Hello. Anyone ever play AIX, PoE2, NAW, or SF? Those mods has a night map (dark) so I decided to make a lighter from a weapons. For example, I play AIX mod and I have a problem with the darkness. This mod didn't have a Night Vision. For change it, I changed a tweak file of a weapon so can give a light. Here the tweak code of "aix_mgl140":

rem *** Generated with Bf2Editor.exe [created: 2006/5/15 11:52]
GeometryTemplate.setMaterialReflectionScale 0 0 0 0.3
GeometryTemplate.setMaterialReflectionScale 1 0 0 1
GeometryTemplate.setMaterialReflectionScale 1 0 1 2
GeometryTemplate.compressVertexData 1
GeometryTemplate.maxTextureRepeat 16
ObjectTemplate.activeSafe GenericFireArm aix_mgl140
ObjectTemplate.creator KYSTERAMA:kyster
ObjectTemplate.modifiedByUser "kyron"
ObjectTemplate.saveInSeparateFile 1
rem ---BeginComp:WeaponHud ---
ObjectTemplate.createComponent WeaponHud
ObjectTemplate.weaponHud.weaponIcon Ingame\Weapons\Icons\Hud\aix_mgl140Menu.tga
ObjectTemplate.weaponHud.altWeaponIcon Ingame\Weapons\Icons\Hud\USSHT_Jackhammer_mini.tga
ObjectTemplate.weaponHud.selectIcon Ingame\Weapons\Icons\Hud\Selection\aix_mgl140.tga
ObjectTemplate.weaponHud.hudName "Milkor mgl140"
ObjectTemplate.weaponHud.guiIndex 4
ObjectTemplate.weaponHud.altGuiIndex 52
ObjectTemplate.weaponHud.deviationFactor 5
rem ObjectTemplate.weaponHud.maxVisualDeviation 25
rem ObjectTemplate.weaponHud.minVisualDeviation 15
ObjectTemplate.weaponHud.disableOnSprint 1
rem ---EndComp ---
rem ---BeginComp:SingleFireComp ---
ObjectTemplate.createComponent SingleFireComp
rem ObjectTemplate.fire.roundsPerMinute 60
ObjectTemplate.fire.addFireRate 0
ObjectTemplate.fire.fireInCameraDof 1
rem ---EndComp ---
rem ---BeginComp:DefaultAmmoComp ---
ObjectTemplate.createComponent DefaultAmmoComp
ObjectTemplate.ammo.nrOfMags -1
ObjectTemplate.ammo.magSize 6
ObjectTemplate.ammo.reloadAmount 1
ObjectTemplate.ammo.reloadTime 0.666667
ObjectTemplate.ammo.firstShotExtraTime 1.9
ObjectTemplate.ammo.lastShotExtraTime 0.958333
ObjectTemplate.ammo.reloadWithoutPlayer 1
rem ---EndComp ---
beginrem
rem ---BeginComp:SoldierBasedRecoilComp ---
ObjectTemplate.createComponent SoldierBasedRecoilComp
ObjectTemplate.recoil.hasRecoilForce 1
ObjectTemplate.recoil.recoilForceUp CRD_UNIFORM/0.5/0.5/0
ObjectTemplate.recoil.recoilForceLeftRight CRD_UNIFORM/-0.1/0.1/0
ObjectTemplate.recoil.recoilGraphFrameCount 4
ObjectTemplate.recoil.recoilGraphTotalMovement 5
rem ---EndComp ---
rem ---BeginComp:SoldierDeviationComp ---
ObjectTemplate.createComponent SoldierDeviationComp
ObjectTemplate.deviation.setFireDev 3 0.2 0.3
ObjectTemplate.deviation.minDev 0.75
ObjectTemplate.deviation.subProjectileDev 3
ObjectTemplate.deviation.setTurnDev 0 0 0 0
ObjectTemplate.deviation.setSpeedDev 3 0.5 0.5 0.12
ObjectTemplate.deviation.setMiscDev 3 2.5 0.04
ObjectTemplate.deviation.devModLie 0.8
ObjectTemplate.deviation.devModZoom 0.9
rem ---EndComp ---
endrem
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 0.1
ObjectTemplate.zoom.zoomLod 1
ObjectTemplate.zoom.addZoomFactor 0
ObjectTemplate.zoom.addZoomFactor 0.8
ObjectTemplate.zoom.disableMuzzleWhenZoomed 1
rem ---EndComp ---
ObjectTemplate.geometry aix_mgl140
ObjectTemplate.setCollisionMesh aix_mgl140
ObjectTemplate.mapMaterial 0 metal 68
ObjectTemplate.mapMaterial 1 lambert1 68
ObjectTemplate.hasMobilePhysics 0
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.physicsType Mesh
ObjectTemplate.aiTemplate UsRgl_M203
rem -------------------------------------
ObjectTemplate.addTemplate S_aix_mgl140_Fire1P
ObjectTemplate.setPosition -0.00420591/0.0486487/0.596709
ObjectTemplate.addTemplate S_aix_mgl140_Fire1P_Outdoor
ObjectTemplate.setPosition -0.00338623/0.0358297/0.594217
ObjectTemplate.addTemplate S_aix_mgl140_Fire3P
ObjectTemplate.setPosition -0.00327992/0.0352125/0.592147
ObjectTemplate.addTemplate S_aix_mgl140_BoltClick
ObjectTemplate.setPosition 0.00847864/0.0669459/-0.0840718
ObjectTemplate.addTemplate S_aix_mgl140_TriggerClick
ObjectTemplate.setPosition 0/-0.0258353/-0.0401724
ObjectTemplate.addTemplate S_aix_mgl140_SwitchFireRate
ObjectTemplate.setPosition 0/0.0072858/-0.0865821
ObjectTemplate.addTemplate S_aix_mgl140_Reload1P
ObjectTemplate.setPosition 0/-0.0285441/0.0125099
ObjectTemplate.addTemplate S_aix_mgl140_Reload3P
ObjectTemplate.setPosition 0/-0.0368675/0.0231495
ObjectTemplate.addTemplate S_aix_mgl140_Deploy1P
ObjectTemplate.setPosition 0/0.05229/-0.0200007
ObjectTemplate.addTemplate S_aix_mgl140_Deploy3P
ObjectTemplate.setPosition 0/0.057929/-0.0858018
ObjectTemplate.addTemplate S_aix_mgl140_Zoom
ObjectTemplate.setPosition -0.00253812/0.0553252/-0.019706
ObjectTemplate.addTemplate e_muzz_m4
ObjectTemplate.setPosition -0.00335911/0.0310841/0.360402
ObjectTemplate.setRotation -4.99999/0/11
rem -------------------------------------
ObjectTemplate.animationSystem1P Objects/Weapons/Handheld/aix_mgl140/AnimationSystem1p.inc
ObjectTemplate.animationSystem3P Objects/Weapons/Handheld/aix_mgl140/AnimationSystem3p.inc
ObjectTemplate.projectileTemplate Glow_Projectile
ObjectTemplate.keepProjectiles 5
ObjectTemplate.velocity 75
ObjectTemplate.itemIndex 3
ObjectTemplate.delayToUse 0.7

GeometryTemplate.compressVertexData 1
GeometryTemplate.maxTextureRepeat 16
ObjectTemplate.create GenericProjectile Glow_Projectile
ObjectTemplate.modifiedByUser "kyron"
ObjectTemplate.setNetworkableInfo BasicInfo
ObjectTemplate.createNotInGrid 1
ObjectTemplate.createdInEditor 1
rem ---BeginComp:StickyCollisionComp ---
ObjectTemplate.createComponent StickyCollisionComp
ObjectTemplate.collision.bouncing 1
rem ObjectTemplate.collision.hasCollisionEffect 1
rem ---EndComp ---
rem ---BeginComp:DefaultDetonationComp ---
ObjectTemplate.createComponent DefaultDetonationComp
beginrem
ObjectTemplate.detonation.explosionMaterial 69
ObjectTemplate.detonation.explosionRadius 4.5
ObjectTemplate.detonation.explosionForce 7
ObjectTemplate.detonation.explosionDamage 150
ObjectTemplate.detonation.endEffectTemplate e_exp_grenade
ObjectTemplate.detonation.detectionRadius 1.5
ObjectTemplate.detonation.maxDepthForExplosion 2
endrem
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 shell_m203
ObjectTemplate.setCollisionMesh ushgr_m67
ObjectTemplate.mapMaterial 0 Collision_Material 46
ObjectTemplate.floaterMod 0
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.physicsType RotationalPoint
ObjectTemplate.collisionGroups 8
ObjectTemplate.material 38
rem -------------------------------------
ObjectTemplate.addTemplate S_USRGL_M203_Projectile_Looping
rem ObjectTemplate.addTemplate e_rifgrenade_trail
rem ObjectTemplate.setPosition 0/0/-0.00992489
ObjectTemplate.addTemplate glowshit
rem -------------------------------------
ObjectTemplate.timeToLive CRD_NONE/9999/0/0
ObjectTemplate.material 38
ObjectTemplate.hasOnTimeEffect 1
ObjectTemplate.minDamage 1
ObjectTemplate.damage 125

ObjectTemplate.activeSafe Sound S_aix_mgl140_Fire1P
ObjectTemplate.modifiedByUser "kyron"
ObjectTemplate.lowSamples 2147483647
ObjectTemplate.mediumSamples 2147483647
ObjectTemplate.soundFilename "objects/weapons/handheld/aix_mgl140/sounds/fire.wav"
ObjectTemplate.loopCount 0
ObjectTemplate.is3dSound 0
ObjectTemplate.stopType 1
ObjectTemplate.volume 0.95
ObjectTemplate.pitch 1
ObjectTemplate.pan 0.5
ObjectTemplate.reverbLevel 1
ObjectTemplate.pitchEnvelope 0/1/0.9/1.1/1/1/0/0.97/1.03/
ObjectTemplate.volumeEnvelope 0/1/0/1/1/1/0/0.9/1/
ObjectTemplate.position -0.00420591/0.0486487/0.596709

ObjectTemplate.activeSafe Sound S_aix_mgl140_Fire1P_Outdoor
ObjectTemplate.modifiedByUser "kyron"

ObjectTemplate.activeSafe Sound S_aix_mgl140_Fire3P
ObjectTemplate.modifiedByUser "kyron"
ObjectTemplate.lowSamples 2147483647
ObjectTemplate.mediumSamples 2147483647
ObjectTemplate.soundFilename "objects/weapons/handheld/usrgl_m203/sounds/m203_fire_3p.wav"
ObjectTemplate.loopCount 0
ObjectTemplate.is3dSound 1
ObjectTemplate.stopType 1
ObjectTemplate.volume 1
ObjectTemplate.pitch 1
ObjectTemplate.reverbLevel 1
ObjectTemplate.pitchEnvelope 0/1/0.9/1.1/1/1/0/0.97/1.03/
ObjectTemplate.volumeEnvelope 0/1/0/1/1/1/0/0.9/1/
ObjectTemplate.position -0.00327992/0.0352125/0.592147
ObjectTemplate.minDistance 2
ObjectTemplate.halfVolumeDistance 4

ObjectTemplate.activeSafe Sound S_aix_mgl140_BoltClick
ObjectTemplate.modifiedByUser "kyron"
ObjectTemplate.lowSamples 2147483647
ObjectTemplate.mediumSamples 2147483647
ObjectTemplate.soundFilename "objects/weapons/handheld/rurif_gp30/sounds/gp30_bolt_click.wav"
ObjectTemplate.loopCount 1
ObjectTemplate.is3dSound 0
ObjectTemplate.stopType 1
ObjectTemplate.volume 0.7
ObjectTemplate.pitch 0.95
ObjectTemplate.pan 0.5
ObjectTemplate.reverbLevel 0.5
ObjectTemplate.position 0.00847864/0.0669459/-0.0840718

ObjectTemplate.activeSafe Sound S_aix_mgl140_TriggerClick
ObjectTemplate.modifiedByUser "kyron"
ObjectTemplate.lowSamples 2147483647
ObjectTemplate.mediumSamples 2147483647
ObjectTemplate.soundFilename "objects/weapons/handheld/uspis_92fs/sounds/mono/trigger_click.wav"
ObjectTemplate.loopCount 1
ObjectTemplate.is3dSound 0
ObjectTemplate.stopType 1
ObjectTemplate.volume 0.5
ObjectTemplate.pitch 1
ObjectTemplate.pan 0.5
ObjectTemplate.reverbLevel 1
ObjectTemplate.position 0/-0.0258353/-0.0401724

ObjectTemplate.activeSafe Sound S_aix_mgl140_SwitchFireRate
ObjectTemplate.modifiedByUser "kyron"

ObjectTemplate.activeSafe Sound S_aix_mgl140_Reload1P
ObjectTemplate.modifiedByUser "kyron"
ObjectTemplate.soundFilename "objects/weapons/handheld/aix_mgl140/sounds/reload1.wav,objects/weapons/handheld/aix_mgl140/sounds/reload2.wav,objects/weapons/handheld/aix_mgl140/sounds/reload3.wav"
ObjectTemplate.loopCount 1
ObjectTemplate.is3dSound 0
ObjectTemplate.stopType 1
ObjectTemplate.volume 0.59
ObjectTemplate.pitch 1
ObjectTemplate.pan 0.5
ObjectTemplate.reverbLevel 1
ObjectTemplate.position 0/-0.0242352/0.0243725

ObjectTemplate.activeSafe Sound S_aix_mgl140_Reload3P
ObjectTemplate.modifiedByUser "kyron"
ObjectTemplate.lowSamples 2147483647
ObjectTemplate.mediumSamples 2147483647
ObjectTemplate.soundFilename "objects/weapons/handheld/usrif_remington11-87/sounds/remington_reload_01.wav,objects/weapons/handheld/usrif_remington11-87/sounds/remington_reload_02.wav,objects/weapons/handheld/usrif_remington11-87/sounds/remington_reload_03.wav"
ObjectTemplate.loopCount 0
ObjectTemplate.is3dSound 1
ObjectTemplate.stopType 1
ObjectTemplate.volume 0.75
ObjectTemplate.pitch 1
ObjectTemplate.reverbLevel 1
ObjectTemplate.position 0/-0.0368675/0.0231495
ObjectTemplate.minDistance 0.5
ObjectTemplate.halfVolumeDistance 1

ObjectTemplate.activeSafe Sound S_aix_mgl140_Deploy1P
ObjectTemplate.modifiedByUser "kyron"
ObjectTemplate.lowSamples 2147483647
ObjectTemplate.mediumSamples 2147483647
ObjectTemplate.soundFilename "objects/weapons/handheld/usrif_remington11-87/sounds/remington_deploy.wav"
ObjectTemplate.loopCount 1
ObjectTemplate.is3dSound 0
ObjectTemplate.stopType 0
ObjectTemplate.volume 0.75
ObjectTemplate.pitch 1
ObjectTemplate.pan 0.5
ObjectTemplate.reverbLevel 1
ObjectTemplate.position 0/0.05229/-0.0200007

ObjectTemplate.activeSafe Sound S_aix_mgl140_Deploy3P
ObjectTemplate.modifiedByUser "kyron"
ObjectTemplate.lowSamples 2147483647
ObjectTemplate.mediumSamples 2147483647
ObjectTemplate.soundFilename "objects/weapons/handheld/usrif_remington11-87/sounds/remington_deploy.wav"
ObjectTemplate.loopCount 1
ObjectTemplate.is3dSound 1
ObjectTemplate.stopType 0
ObjectTemplate.volume 0.75
ObjectTemplate.pitch 1
ObjectTemplate.reverbLevel 1
ObjectTemplate.position 0/0.057929/-0.0858018
ObjectTemplate.minDistance 0.5
ObjectTemplate.halfVolumeDistance 1

ObjectTemplate.activeSafe Sound S_aix_mgl140_Zoom
ObjectTemplate.modifiedByUser "kyron"
ObjectTemplate.lowSamples 2147483647
ObjectTemplate.mediumSamples 2147483647
ObjectTemplate.soundFilename "objects/weapons/handheld/rurif_bizon/sounds/zoom_generic.wav"
ObjectTemplate.loopCount 1
ObjectTemplate.is3dSound 0
ObjectTemplate.stopType 1
ObjectTemplate.volume 0.5
ObjectTemplate.pitch 1
ObjectTemplate.pan 0.5
ObjectTemplate.reverbLevel 1
ObjectTemplate.position -0.00253812/0.0553252/-0.019706

ObjectTemplate.activeSafe Sound S_USRGL_M203_Projectile_Looping
ObjectTemplate.modifiedByUser "kyron"

Hope it's help for a map that didn't have a Night Vision :lol:

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×