ZiX13 0 Report post Posted April 30, 2009 For obvious reasons, it would be best to have an effect on projectile impact of paint. So whatever it hits has a colour for a certain amount of time. What's the best way to do this? Edit the bullet hole textures possibly? Quote Share this post Link to post Share on other sites
UberWazuSoldier 0 Report post Posted April 30, 2009 Yeah, decals work for this. - There should be a subfolder in objects\effects called "decals", and you'll probably need to do some materials editing. Actually, considering it's replacing all weapons, just modifying the texture would probably be fine. Quote Share this post Link to post Share on other sites
amideadyet 0 Report post Posted May 1, 2009 I tried editing the decals, basically just put a blue color with some spray around it, for all the _c.dds textures and then edited the atlas.dds accordingly. Now none of the bullet holes show up on anything...do i have to edit the _b.dds files also, or is it an issue with the atlas? (I'm working with Zix on this mod) Quote Share this post Link to post Share on other sites
A-Train 0 Report post Posted May 25, 2009 (edited) AHAHAHA I accidently figured out how to create the paintball effect without trying to do that. I was trying to code a laser sight for my sniper rifle and I accidently made paintballs. Here's the code: unl_scope_zoom.tweak ObjectTemplate.setAutoControllerTemplateName ReconDrone rem *** Generated with Bf2Editor.exe [created: 2006/6/21 5:15] ObjectTemplate.activeSafe GenericFireArm unl_scope_zoom ObjectTemplate.creator AKE-1:ake ObjectTemplate.modifiedByUser "bpa" ObjectTemplate.saveInSeparateFile 1 ObjectTemplate.setAutoControllerTemplateName ReconDrone rem ---BeginComp:WeaponHud --- ObjectTemplate.createComponent WeaponHud ObjectTemplate.weaponHud.unlockIcon Ingame\Customization\items_icons\unl_scope_zoom.tga rem ObjectTemplate.weaponHud.selectIcon Ingame\Weapons\Icons\Hud\Selection\Unl_Sonar.tga ObjectTemplate.weaponHud.specialAbilityIcon Ingame\Weapons\Icons\Hud\SpecialKitIcons\unl_scope_zoom.tga ObjectTemplate.weaponHud.renderedPicture Ingame\Customization\Rendered\Items\unl_scope_zoom.tga ObjectTemplate.weaponHud.hudName "WEAPON_NAME_unl_scope_zoom" ObjectTemplate.weaponHud.guiIndex 0 ObjectTemplate.weaponHud.altGuiIndex 0 ObjectTemplate.weaponHud.hasFireRate 0 ObjectTemplate.weaponHud.disableOnSprint 1 ObjectTemplate.weaponHud.descrString DESCRIPTION_WEAPON_unl_scope_zoom rem ---EndComp --- rem ---BeginComp:SingleFireComp --- ObjectTemplate.createComponent SingleFireComp ObjectTemplate.fire.roundsPerMinute 600 ObjectTemplate.fire.addFireRate 0 rem ---EndComp --- rem ---BeginComp:DefaultAmmoComp --- ObjectTemplate.createComponent DefaultAmmoComp ObjectTemplate.ammo.nrOfMags -1 ObjectTemplate.ammo.magSize -1 rem ---EndComp --- rem ---BeginComp:Ability --- ObjectTemplate.createComponent Ability ObjectTemplate.ability.hasZoomUpgradeAbility 1 rem ---EndComp --- rem ---BeginComp:HelpHud --- ObjectTemplate.createComponent HelpHud ObjectTemplate.HelpHud.helpStringKey "HUD_HELP_WEAPON_RECON_scopestabilization" ObjectTemplate.HelpHud.helpSoundKey "HUD_HELP_WEAPON_RECON_scopestabilization" rem ---EndComp --- ObjectTemplate.itemIndex 0 rem ---BeginComp:DefaultSoundComp --- ObjectTemplate.createComponent DefaultSoundComp rem ---EndComp --- ObjectTemplate.floaterMod 0 ObjectTemplate.hasMobilePhysics 0 rem ------------------------------------- ObjectTemplate.addTemplate S_unl_scope_zoom_Fire1P ObjectTemplate.addTemplate S_unl_scope_zoom_Fire1P_Outdoor ObjectTemplate.addTemplate S_unl_scope_zoom_Fire3P ObjectTemplate.addTemplate S_unl_scope_zoom_BoltClick ObjectTemplate.addTemplate S_unl_scope_zoom_TriggerClick ObjectTemplate.addTemplate S_unl_scope_zoom_SwitchFireRate ObjectTemplate.addTemplate S_unl_scope_zoom_Reload1P ObjectTemplate.addTemplate S_unl_scope_zoom_Reload3P ObjectTemplate.addTemplate S_unl_scope_zoom_Deploy1P ObjectTemplate.addTemplate S_unl_scope_zoom_Deploy3P ObjectTemplate.addTemplate S_unl_scope_zoom_Zoom beginrem ObjectTemplate.addTemplate e_port_shieldlaser ObjectTemplate.setPosition 0/0/3 ObjectTemplate.addTemplate e_port_shieldlaser ObjectTemplate.setPosition 0/0/6 ObjectTemplate.addTemplate e_port_shieldlaser ObjectTemplate.setPosition 0/0/9 ObjectTemplate.addTemplate e_port_shieldlaser ObjectTemplate.setPosition 0/0/12 ObjectTemplate.addTemplate e_port_shieldlaser ObjectTemplate.setPosition 0/0/15 ObjectTemplate.addTemplate e_port_shieldlaser ObjectTemplate.setPosition 0/0/18 ObjectTemplate.addTemplate e_port_shieldlaser ObjectTemplate.setPosition 0/0/21 ObjectTemplate.addTemplate e_port_shieldlaser ObjectTemplate.setPosition 0/0/24 ObjectTemplate.addTemplate e_port_shieldlaser ObjectTemplate.setPosition 0/0/27 ObjectTemplate.addTemplate e_port_shieldlaser ObjectTemplate.setPosition 0/0/30 ObjectTemplate.addTemplate e_port_shieldlaser ObjectTemplate.setPosition 0/0/33 ObjectTemplate.addTemplate e_port_shieldlaser ObjectTemplate.setPosition 0/0/36 ObjectTemplate.addTemplate e_port_shieldlaser ObjectTemplate.setPosition 0/0/39 ObjectTemplate.addTemplate e_port_shieldlaser ObjectTemplate.setPosition 0/0/42 ObjectTemplate.addTemplate e_port_shieldlaser ObjectTemplate.setPosition 0/0/45 ObjectTemplate.addTemplate e_port_shieldlaser ObjectTemplate.setPosition 0/0/48 ObjectTemplate.addTemplate e_port_shieldlaser ObjectTemplate.setPosition 0/0/51 ObjectTemplate.addTemplate e_port_shieldlaser ObjectTemplate.setPosition 0/0/54 ObjectTemplate.addTemplate e_port_shieldlaser ObjectTemplate.setPosition 0/0/57 ObjectTemplate.addTemplate e_port_shieldpoint ObjectTemplate.setPosition 0/0/60 endrem rem ------------------------------------- ObjectTemplate.projectileTemplate Laser_Sight_Projectile ObjectTemplate.keepProjectiles 5 ObjectTemplate.velocity 1200 ObjectTemplate.delayToUse 1.166 ObjectTemplate.allowEmoteAnimation 1 ObjectTemplate.setAutoControllerTemplateName ReconDrone ObjectTemplate.activeSafe Sound S_unl_scope_zoom_Fire1P ObjectTemplate.activeSafe Sound S_unl_scope_zoom_Fire1P_Outdoor ObjectTemplate.activeSafe Sound S_unl_scope_zoom_Fire3P ObjectTemplate.activeSafe Sound S_unl_scope_zoom_BoltClick ObjectTemplate.activeSafe Sound S_unl_scope_zoom_TriggerClick ObjectTemplate.activeSafe Sound S_unl_scope_zoom_SwitchFireRate ObjectTemplate.activeSafe Sound S_unl_scope_zoom_Reload1P ObjectTemplate.activeSafe Sound S_unl_scope_zoom_Reload3P ObjectTemplate.activeSafe Sound S_unl_scope_zoom_Deploy1P ObjectTemplate.lowSamples 2147483647 ObjectTemplate.mediumSamples 2147483647 ObjectTemplate.soundFilename "sound/weapons/common/small_scope_zoom.wav" ObjectTemplate.loopCount 1 ObjectTemplate.is3dSound 0 ObjectTemplate.stopType 1 ObjectTemplate.volume 0.8 ObjectTemplate.pitch 0.6 ObjectTemplate.pan 0.5 ObjectTemplate.reverbLevel 1 ObjectTemplate.activeSafe Sound S_unl_scope_zoom_Deploy3P ObjectTemplate.activeSafe Sound S_unl_scope_zoom_Zoom ObjectTemplate.lowSamples 2147483647 ObjectTemplate.mediumSamples 2147483647 ObjectTemplate.soundFilename "sound/weapons/common/sniperzoom.wav" ObjectTemplate.loopCount 1 ObjectTemplate.is3dSound 0 ObjectTemplate.stopType 1 ObjectTemplate.volume 0.8 ObjectTemplate.pitch 1.4 ObjectTemplate.pan 0.5 ObjectTemplate.reverbLevel 1 ObjectTemplate.create GenericProjectile Laser_Sight_Projectile ObjectTemplate.createNotInGrid 1 ObjectTemplate.createdInEditor 1 rem ---BeginComp:DefaultCollisionComp --- ObjectTemplate.createComponent DefaultCollisionComp 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 --- rem ---BeginComp:DefaultDetonationComp --- ObjectTemplate.createComponent DefaultDetonationComp ObjectTemplate.detonation.explosionMaterial 0 ObjectTemplate.detonation.explosionRadius 0 ObjectTemplate.detonation.explosionForce 0 ObjectTemplate.detonation.explosionDamage 0 ObjectTemplate.detonation.endEffectTemplate e_port_shieldpoint ObjectTemplate.detonation.endEffectTemplate e_port_shieldlaser ObjectTemplate.detonation.useMMOnEndEffect 1 rem ---EndComp --- ObjectTemplate.floaterMod 0 ObjectTemplate.hasMobilePhysics 1 ObjectTemplate.hasCollisionPhysics 1 ObjectTemplate.physicsType Point ObjectTemplate.collisionGroups 8 ObjectTemplate.material 38 rem ------------------------------------- ObjectTemplate.addTemplate e_port_shieldlaser ObjectTemplate.addTemplate e_port_shieldpoint rem ------------------------------------- ObjectTemplate.timeToLive CRD_NONE/1/0/0 ObjectTemplate.material 38 ObjectTemplate.hasOnTimeEffect 0 ObjectTemplate.minDamage 0 ObjectTemplate.damage 0 e_port_shieldlaser.tweak (found in effects_server.zip [weapons - misc - e_port_shield]) rem *** Generated with Bf2Editor.exe [created: 2006/8/25 2:33] ObjectTemplate.activeSafe EffectBundle e_port_shieldlaser ObjectTemplate.modifiedByUser "ngo" ObjectTemplate.saveInSeparateFile 1 ObjectTemplate.createdInEditor 1 ObjectTemplate.floaterMod 0 ObjectTemplate.hasMobilePhysics 0 rem ------------------------------------- ObjectTemplate.addTemplate S_e_port_shield_Start rem ObjectTemplate.addTemplate em_port_shield_glowlaser rem ObjectTemplate.setPosition 0/0.4/0 ObjectTemplate.addTemplate em_port_shield_lightsourcelaser ObjectTemplate.setPosition 0/0.3/0 rem ------------------------------------- ObjectTemplate.setStartOnEffects 0 ObjectTemplate.setStopOnEffects 0 ObjectTemplate.timeToLive CRD_NONE/3600/0/0 ObjectTemplate.randomAgeFactor CRD_NONE/1/0/0 ObjectTemplate.startAtCreation 1 ObjectTemplate.speedFromPhysics 0 ObjectTemplate.activeSafe Sound S_e_port_shield_Start ObjectTemplate.lowSamples 2147483647 ObjectTemplate.mediumSamples 2147483647 ObjectTemplate.soundFilename "sound/weapons/active_camo.wav" ObjectTemplate.loopCount 0 ObjectTemplate.is3dSound 1 ObjectTemplate.stopType 2 ObjectTemplate.volume 0.5 ObjectTemplate.pitch 0.4 ObjectTemplate.reverbLevel 1 ObjectTemplate.halfVolumeDistance 1.6 beginrem ObjectTemplate.create SpriteParticleSystem em_port_shield_glowlaser ObjectTemplate.createdInEditor 1 ObjectTemplate.showInFirstPerson 1 ObjectTemplate.showInThirdPerson 1 ObjectTemplate.showInZoomedMode 1 ObjectTemplate.emitPrio High ObjectTemplate.lodDistance High ObjectTemplate.qualityLevel Medium ObjectTemplate.emitterType Standard ObjectTemplate.isLocalSystem 0 ObjectTemplate.noRotationFromParent 0 ObjectTemplate.emitRadius 0/0/0 ObjectTemplate.emitRangeX CRD_NONE/0/0/0 ObjectTemplate.emitRangeY CRD_NONE/0/0/0 ObjectTemplate.emitRangeZ CRD_NONE/0/0/0 ObjectTemplate.randomRadialDirection 360 ObjectTemplate.radialDirection 0 ObjectTemplate.emitFrequency 15 ObjectTemplate.preWarmTime 0.09 ObjectTemplate.emitTime 0 ObjectTemplate.emitDelay 1.1 ObjectTemplate.isLooping 0 ObjectTemplate.emitSpeed 0 ObjectTemplate.emitDirection 0/1/0 ObjectTemplate.timeToLive 0.2 ObjectTemplate.randomTimeToLive 0 ObjectTemplate.windAffectionFactor 0 ObjectTemplate.forceToWaterSurface 0 ObjectTemplate.waterSurfaceOffset 0.03 ObjectTemplate.rotationGraph 0/0/1/0 ObjectTemplate.alignRotationToSpeed 0 ObjectTemplate.transparencyGraph 0/-1/1/0 ObjectTemplate.gravity 0 ObjectTemplate.gravityGraph 0/0/0/1 ObjectTemplate.airResistanceGraph 0/0/0/1 ObjectTemplate.emitSpeedGraph 0/0/0/1 ObjectTemplate.randomSpeed 0 ObjectTemplate.randomDirectionAngle 0/0/0 ObjectTemplate.airResistance 0 ObjectTemplate.collisionEnable 0 ObjectTemplate.collisionSpeedAlongNormal 0.7 ObjectTemplate.collisionSpeedAlongPlane 0.8 ObjectTemplate.randomSize 0 ObjectTemplate.particleMaxSize 1 ObjectTemplate.sizeGraph 0/0/-0.05/1 ObjectTemplate.randomIntensity 0 ObjectTemplate.lightMapIntensityOffset 1 rem ObjectTemplate.color1 255,0,0 (255,0,0) rem ObjectTemplate.color2 205,0,0 (255,0,0) ObjectTemplate.color1 1/0/0 ObjectTemplate.color2 0.8039215/0/0 ObjectTemplate.colorBlendGraph 0/0/0/0 ObjectTemplate.alphaCull 0 ObjectTemplate.particleType Additive ObjectTemplate.drawOrder Front ObjectTemplate.randomRotation 1 ObjectTemplate.randomRotationSpeed 0 ObjectTemplate.rotationSpeed 5 ObjectTemplate.pivotOffset 0/0 ObjectTemplate.selfShadowIntensity 1 ObjectTemplate.particleShaderType 0 ObjectTemplate.textureName objects\effects\textures\small_singles\halo ObjectTemplate.animationEnable 0 ObjectTemplate.animationSpeed 1 ObjectTemplate.animationPlayOnce 0 ObjectTemplate.setAnimationFrameWidthRelative 0 ObjectTemplate.setAnimationFrameHeightRelative 0 ObjectTemplate.animationRandomizedStartFrame 0 ObjectTemplate.animationFrameCount 0 ObjectTemplate.animationFrameCountX 0 ObjectTemplate.nearCullingEnable 1 endrem ObjectTemplate.create LightSource em_port_shield_lightsourcelaser ObjectTemplate.createNotInGrid 1 ObjectTemplate.createdInEditor 1 ObjectTemplate.lightType Point ObjectTemplate.isDynamic 1 ObjectTemplate.castsStaticShadow 0 ObjectTemplate.castsDynamicShadow 0 ObjectTemplate.selfLights 1 ObjectTemplate.selfShadows 0 ObjectTemplate.supportsPerVertex 1 ObjectTemplate.supportsPerPixel 0 ObjectTemplate.supportsGlow 0 ObjectTemplate.supportsEmitter 1 ObjectTemplate.affectLightmappedObjects 1 ObjectTemplate.affectingType 0 rem ObjectTemplate.attenuationRange1 0 rem ObjectTemplate.attenuationRange2 2 ObjectTemplate.attenuationRange1 0 ObjectTemplate.attenuationRange2 4 rem ObjectTemplate.color 0.972549/0.027451/0.313726 rem ObjectTemplate.color 0.686275/0.709804/0.952941 ObjectTemplate.color 0.8039215/0/0 ObjectTemplate.speccolor 1/1/1 ObjectTemplate.HDRIntensity 1 rem ObjectTemplate.coneAngle1 45 rem ObjectTemplate.coneAngle2 45 ObjectTemplate.coneAngle1 360 ObjectTemplate.coneAngle2 360 ObjectTemplate.projectorTexture ObjectTemplate.projectorFov 1.0472 ObjectTemplate.projectorAspect 1 rem ObjectTemplate.projectorNear 0.001 rem ObjectTemplate.projectorFar 5 ObjectTemplate.projectorNear 0 ObjectTemplate.projectorFar 4 ObjectTemplate.enabled 1 ObjectTemplate.fov 1 ObjectTemplate.objectShadows 0 ObjectTemplate.shadowIntensity 0.9 ObjectTemplate.softness 0 ObjectTemplate.intensity 0.7 ObjectTemplate.flicker 0 ObjectTemplate.scale 1/1/1 e_port_shieldpoint.tweak (found in effects_server.zip [weapons - misc - e_port_shield]) rem *** Generated with Bf2Editor.exe [created: 2006/8/25 2:33] ObjectTemplate.activeSafe EffectBundle e_port_shieldpoint ObjectTemplate.modifiedByUser "ngo" ObjectTemplate.saveInSeparateFile 1 ObjectTemplate.createdInEditor 1 ObjectTemplate.floaterMod 0 ObjectTemplate.hasMobilePhysics 0 rem ------------------------------------- ObjectTemplate.addTemplate S_e_port_shield_Start ObjectTemplate.addTemplate em_port_shield_glowpoint ObjectTemplate.setPosition 0/0.4/0 rem ObjectTemplate.addTemplate em_port_shield_lightsourcepoint rem ObjectTemplate.setPosition 0/0.3/0 rem ------------------------------------- ObjectTemplate.setStartOnEffects 0 ObjectTemplate.setStopOnEffects 0 ObjectTemplate.timeToLive CRD_NONE/3600/0/0 ObjectTemplate.randomAgeFactor CRD_NONE/1/0/0 ObjectTemplate.startAtCreation 1 ObjectTemplate.speedFromPhysics 0 ObjectTemplate.activeSafe Sound S_e_port_shield_Start ObjectTemplate.lowSamples 2147483647 ObjectTemplate.mediumSamples 2147483647 ObjectTemplate.soundFilename "sound/weapons/active_camo.wav" ObjectTemplate.loopCount 0 ObjectTemplate.is3dSound 1 ObjectTemplate.stopType 2 ObjectTemplate.volume 0.5 ObjectTemplate.pitch 0.4 ObjectTemplate.reverbLevel 1 ObjectTemplate.halfVolumeDistance 1.6 ObjectTemplate.create SpriteParticleSystem em_port_shield_glowpoint ObjectTemplate.createdInEditor 1 ObjectTemplate.showInFirstPerson 1 ObjectTemplate.showInThirdPerson 1 ObjectTemplate.showInZoomedMode 1 ObjectTemplate.emitPrio High ObjectTemplate.lodDistance High ObjectTemplate.qualityLevel Medium ObjectTemplate.emitterType Standard ObjectTemplate.isLocalSystem 0 ObjectTemplate.noRotationFromParent 0 ObjectTemplate.emitRadius 0/0/0 ObjectTemplate.emitRangeX CRD_NONE/0/0/0 ObjectTemplate.emitRangeY CRD_NONE/0/0/0 ObjectTemplate.emitRangeZ CRD_NONE/0/0/0 ObjectTemplate.randomRadialDirection 360 ObjectTemplate.radialDirection 0 ObjectTemplate.emitFrequency 15 ObjectTemplate.preWarmTime 0.09 ObjectTemplate.emitTime 0 ObjectTemplate.emitDelay 1.1 ObjectTemplate.isLooping 0 ObjectTemplate.emitSpeed 0 ObjectTemplate.emitDirection 0/1/0 ObjectTemplate.timeToLive 0.2 ObjectTemplate.randomTimeToLive 0 ObjectTemplate.windAffectionFactor 0 ObjectTemplate.forceToWaterSurface 0 ObjectTemplate.waterSurfaceOffset 0.03 ObjectTemplate.rotationGraph 0/0/1/0 ObjectTemplate.alignRotationToSpeed 0 ObjectTemplate.transparencyGraph 0/-1/1/0 ObjectTemplate.gravity 0 ObjectTemplate.gravityGraph 0/0/0/1 ObjectTemplate.airResistanceGraph 0/0/0/1 ObjectTemplate.emitSpeedGraph 0/0/0/1 ObjectTemplate.randomSpeed 0 ObjectTemplate.randomDirectionAngle 0/0/0 ObjectTemplate.airResistance 0 ObjectTemplate.collisionEnable 0 ObjectTemplate.collisionSpeedAlongNormal 0.7 ObjectTemplate.collisionSpeedAlongPlane 0.8 ObjectTemplate.randomSize 0 ObjectTemplate.particleMaxSize 1 ObjectTemplate.sizeGraph 0/0/-0.05/1 ObjectTemplate.randomIntensity 0 ObjectTemplate.lightMapIntensityOffset 1 rem ObjectTemplate.color1 255,0,0 (255,0,0) rem ObjectTemplate.color2 205,0,0 (255,0,0) ObjectTemplate.color1 1/0/0 ObjectTemplate.color2 0.8039215/0/0 ObjectTemplate.colorBlendGraph 0/0/0/0 ObjectTemplate.alphaCull 0 ObjectTemplate.particleType Additive ObjectTemplate.drawOrder Front ObjectTemplate.randomRotation 1 ObjectTemplate.randomRotationSpeed 0 ObjectTemplate.rotationSpeed 5 ObjectTemplate.pivotOffset 0/0 ObjectTemplate.selfShadowIntensity 1 ObjectTemplate.particleShaderType 0 ObjectTemplate.textureName objects\effects\textures\small_singles\halo ObjectTemplate.animationEnable 0 ObjectTemplate.animationSpeed 1 ObjectTemplate.animationPlayOnce 0 ObjectTemplate.setAnimationFrameWidthRelative 0 ObjectTemplate.setAnimationFrameHeightRelative 0 ObjectTemplate.animationRandomizedStartFrame 0 ObjectTemplate.animationFrameCount 0 ObjectTemplate.animationFrameCountX 0 ObjectTemplate.nearCullingEnable 1 beginrem ObjectTemplate.create LightSource em_port_shield_lightsourcepoint ObjectTemplate.createNotInGrid 1 ObjectTemplate.createdInEditor 1 ObjectTemplate.lightType Point ObjectTemplate.isDynamic 1 ObjectTemplate.castsStaticShadow 0 ObjectTemplate.castsDynamicShadow 0 ObjectTemplate.selfLights 1 ObjectTemplate.selfShadows 0 ObjectTemplate.supportsPerVertex 1 ObjectTemplate.supportsPerPixel 0 ObjectTemplate.supportsGlow 0 ObjectTemplate.supportsEmitter 1 ObjectTemplate.affectLightmappedObjects 1 ObjectTemplate.affectingType 0 rem ObjectTemplate.attenuationRange1 0 rem ObjectTemplate.attenuationRange2 2 ObjectTemplate.attenuationRange1 0 ObjectTemplate.attenuationRange2 4 rem ObjectTemplate.color 0.972549/0.027451/0.313726 rem ObjectTemplate.color 0.686275/0.709804/0.952941 ObjectTemplate.color 0.8039215/0/0 ObjectTemplate.speccolor 1/1/1 ObjectTemplate.HDRIntensity 1 rem ObjectTemplate.coneAngle1 45 rem ObjectTemplate.coneAngle2 45 ObjectTemplate.coneAngle1 360 ObjectTemplate.coneAngle2 360 ObjectTemplate.projectorTexture ObjectTemplate.projectorFov 1.0472 ObjectTemplate.projectorAspect 1 rem ObjectTemplate.projectorNear 0.001 rem ObjectTemplate.projectorFar 5 ObjectTemplate.projectorNear 0 ObjectTemplate.projectorFar 4 ObjectTemplate.enabled 1 ObjectTemplate.fov 1 ObjectTemplate.objectShadows 0 ObjectTemplate.shadowIntensity 0.9 ObjectTemplate.softness 0 ObjectTemplate.intensity 0.7 ObjectTemplate.flicker 0 ObjectTemplate.scale 1/1/1 endrem Here's the weapon I used to fire the effect (i was testing to see if it worked in the first place). unl_carbine.tweak rem *** Generated with Bf2Editor.exe [created: 2006/7/5 5:15] GeometryTemplate.setMaterialReflectionScale 0 0 0 0.25 GeometryTemplate.setSpecularStaticGloss 0 0 0 0.15 GeometryTemplate.compressVertexData 1 GeometryTemplate.maxTextureRepeat 16 GeometryTemplate.hasAdditiveAlpha 1 ObjectTemplate.activeSafe GenericFireArm unl_carbine ObjectTemplate.creator TLO-1:tlo ObjectTemplate.modifiedByUser "sju" ObjectTemplate.saveInSeparateFile 1 ObjectTemplate.castsDynamicShadow 1 rem ---BeginComp:WeaponHud --- ObjectTemplate.createComponent WeaponHud ObjectTemplate.weaponHud.weaponIcon Ingame\Customization\weapons_icons\unl_carbine.tga ObjectTemplate.weaponHud.unlockIcon Ingame\Customization\weapons_icons\unl_carbine.tga ObjectTemplate.weaponHud.selectIcon Ingame\Weapons\Icons\Hud\Selection\unl_carbine.tga ObjectTemplate.weaponHud.renderedPicture Ingame\Customization\Rendered\Weapons\Unl_carbine.tga ObjectTemplate.weaponHud.hudName "Stabilized Carbine" ObjectTemplate.weaponHud.guiIndex 58 ObjectTemplate.weaponHud.altGuiIndex 59 ObjectTemplate.weaponHud.deviationFactor 5 ObjectTemplate.weaponHud.maxVisualDeviation 28 ObjectTemplate.weaponHud.minVisualDeviation 3 ObjectTemplate.weaponHud.hasRangeFinder 1 ObjectTemplate.weaponHud.disableOnSprint 1 ObjectTemplate.weaponHud.descrString DESCRIPTION_WEAPON_Unl_Carbine rem ---EndComp --- rem ---BeginComp:SingleFireComp --- ObjectTemplate.createComponent SingleFireComp ObjectTemplate.fire.addFireRate 2 ObjectTemplate.fire.addFireRate 0 ObjectTemplate.fire.fireInCameraDof 1 rem ---EndComp --- rem ---BeginComp:DefaultAmmoComp --- ObjectTemplate.createComponent DefaultAmmoComp ObjectTemplate.ammo.ammoType 1 ObjectTemplate.ammo.nrOfMags 6 ObjectTemplate.ammo.reloadTime 4.3 ObjectTemplate.ammo.reloadWithoutPlayer 1 rem ---EndComp --- rem ---BeginComp:SoldierBasedRecoilComp --- ObjectTemplate.createComponent SoldierBasedRecoilComp ObjectTemplate.recoil.hasRecoilForce 1 ObjectTemplate.recoil.recoilForceUp CRD_UNIFORM/0.475/0.838/0 ObjectTemplate.recoil.recoilForceLeftRight CRD_UNIFORM/-0.2/0/0 ObjectTemplate.recoil.zoomModifier 0.725 ObjectTemplate.recoil.recoilGraphFrameCount 5 ObjectTemplate.recoil.recoilGraphExponent 4 ObjectTemplate.recoil.recoilGraphTotalMovement 0.2 rem ---EndComp --- rem ---BeginComp:SoldierDeviationComp --- ObjectTemplate.createComponent SoldierDeviationComp ObjectTemplate.deviation.setFireDev 1.2 0.16 0.1 ObjectTemplate.deviation.minDev 0.46 ObjectTemplate.deviation.setTurnDev 0 0 0 0 ObjectTemplate.deviation.setSpeedDev 0.8 0.16 0.08 0.12 ObjectTemplate.deviation.setMiscDev 6 6 0.16 ObjectTemplate.deviation.devModStand 1.33 ObjectTemplate.deviation.devModCrouch 1.05 ObjectTemplate.deviation.devModZoom 0.7 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 0.18 ObjectTemplate.zoom.zoomLod 1 ObjectTemplate.zoom.addZoomFactor 0 ObjectTemplate.zoom.addZoomFactor 0.312 ObjectTemplate.zoom.addZoomFactor 0.006 ObjectTemplate.zoom.disableMuzzleWhenZoomed 1 ObjectTemplate.zoom.useZoomFineTuning 1 ObjectTemplate.zoom.zoomFineTuneSteps 12 rem ---EndComp --- beginrem rem ---BeginComp:DefaultZoomComp --- ObjectTemplate.createComponent DefaultZoomComp ObjectTemplate.zoom.zoomDelay 0.08 ObjectTemplate.zoom.zoomLod 1 ObjectTemplate.zoom.addZoomFactor 0 ObjectTemplate.zoom.addZoomFactor 0.59 ObjectTemplate.zoom.disableMuzzleWhenZoomed 1 rem ---EndComp --- endrem rem ---BeginComp:DefaultGunSwayComp --- ObjectTemplate.createComponent DefaultGunSwayComp ObjectTemplate.sway.gunSwayUseZoom 1 ObjectTemplate.sway.gunSwayPitchSteps 26 ObjectTemplate.sway.gunSwayPitchFactor 4 ObjectTemplate.sway.gunSwayPitchMax 3 ObjectTemplate.sway.gunSwayPitchDirModifier 1 ObjectTemplate.sway.gunSwayPitchDirThreshold 1 ObjectTemplate.sway.stabilityRecoverTime 0.6 ObjectTemplate.sway.stabilityTime 0.6 ObjectTemplate.sway.stabilityDuration 1.6 ObjectTemplate.sway.stabilityDurationRecoverTime 1 rem ---EndComp --- ObjectTemplate.geometry Unl_Carbine ObjectTemplate.setCollisionMesh Unl_Carbine ObjectTemplate.mapMaterial 0 Collision_Material 68 ObjectTemplate.mapMaterial 1 lambert1 68 ObjectTemplate.floaterMod 0 ObjectTemplate.hasMobilePhysics 0 ObjectTemplate.hasCollisionPhysics 1 ObjectTemplate.physicsType Point ObjectTemplate.aiTemplate Unl_Carbine rem ------------------------------------- ObjectTemplate.addTemplate S_unl_carbine_Fire1P ObjectTemplate.setPosition -0.00154155/0.0174675/0.474922 ObjectTemplate.addTemplate S_unl_carbine_Fire1P_Outdoor ObjectTemplate.setPosition -0.000946715/0.0175849/0.474557 ObjectTemplate.addTemplate S_unl_carbine_Fire3P ObjectTemplate.setPosition -0.00107837/0.0164062/0.474377 ObjectTemplate.addTemplate S_unl_carbine_BoltClick ObjectTemplate.setPosition 0/0.0271776/-0.108983 ObjectTemplate.addTemplate S_unl_carbine_TriggerClick ObjectTemplate.setPosition 0/-0.0442018/-0.0382003 ObjectTemplate.addTemplate S_unl_carbine_SwitchFireRate ObjectTemplate.setPosition 0/-0.0181397/-0.0909292 ObjectTemplate.addTemplate S_unl_carbine_Reload1P ObjectTemplate.setPosition 0/-0.063823/0.0222512 ObjectTemplate.addTemplate S_unl_carbine_Reload3P ObjectTemplate.setPosition 0/-0.0582734/0.0158555 ObjectTemplate.addTemplate S_unl_carbine_Deploy1P ObjectTemplate.setPosition 0/0.0595026/-0.0856211 ObjectTemplate.addTemplate S_unl_carbine_Deploy3P ObjectTemplate.setPosition 0/0.0159245/-0.0538461 ObjectTemplate.addTemplate S_unl_carbine_Zoom ObjectTemplate.setPosition 0/0.0913384/-0.0160701 ObjectTemplate.addTemplate e_muzz_unl_carbine ObjectTemplate.setPosition 0/-0.0105537/0.485307 ObjectTemplate.addTemplate e_muzz_pac_supportZoom ObjectTemplate.setPosition 0/-0.10178/0.60937 ObjectTemplate.addTemplate unl_scope_zoom rem ------------------------------------- ObjectTemplate.animationSystem1P Objects/Weapons/Handheld/Unl_Carbine/AnimationSystem1p.inc ObjectTemplate.animationSystem3P Objects/Weapons/Handheld/Unl_Carbine/AnimationSystem3p.inc rem ObjectTemplate.projectileTemplate Unl_Carbine_Projectile ObjectTemplate.projectileTemplate Laser_Sight_Projectile ObjectTemplate.keepProjectiles 5 ObjectTemplate.velocity 800 ObjectTemplate.itemIndex 3 ObjectTemplate.delayToUse 1 ObjectTemplate.allowEmoteAnimation 1 ObjectTemplate.create GenericProjectile Unl_Carbine_Projectile ObjectTemplate.createNotInGrid 1 ObjectTemplate.createdInEditor 1 rem ---BeginComp:DefaultCollisionComp --- ObjectTemplate.createComponent DefaultCollisionComp 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 38 rem ------------------------------------- ObjectTemplate.addTemplate S_Unl_Carbine_Projectile_Looping rem ------------------------------------- ObjectTemplate.timeToLive CRD_NONE/1/0/0 ObjectTemplate.material 38 ObjectTemplate.hasOnTimeEffect 0 ObjectTemplate.minDamage 20 ObjectTemplate.damage 25 ObjectTemplate.distToStartLoseDamage 25 ObjectTemplate.distToMinDamage 55 ObjectTemplate.activeSafe Sound S_unl_carbine_Fire1P ObjectTemplate.lowSamples 2147483647 ObjectTemplate.mediumSamples 2147483647 ObjectTemplate.soundFilename "sound/weapons/assaultrifles/unl_carbine_fire_1p.wav" ObjectTemplate.loopCount 0 ObjectTemplate.is3dSound 0 ObjectTemplate.stopType 1 ObjectTemplate.volume 1 ObjectTemplate.pitch 1.22 ObjectTemplate.pan 0.5 ObjectTemplate.reverbLevel 0 ObjectTemplate.pitchEnvelope 0/1/0.9/1.1/1/1/0/0.98/1.03/ ObjectTemplate.volumeEnvelope 0/1/0/1/1/1/0/0.9/1/ ObjectTemplate.position -0.00154155/0.0174675/0.474922 ObjectTemplate.activeSafe Sound S_unl_carbine_Fire1P_Outdoor ObjectTemplate.activeSafe Sound S_unl_carbine_Fire3P ObjectTemplate.lowSamples 2147483647 ObjectTemplate.mediumSamples 2147483647 ObjectTemplate.soundFilename "sound/weapons/assaultrifles/unl_carbine_fire_3p.wav" ObjectTemplate.loopCount 0 ObjectTemplate.is3dSound 1 ObjectTemplate.stopType 1 ObjectTemplate.volume 1 ObjectTemplate.pitch 1.22 ObjectTemplate.reverbLevel 1 ObjectTemplate.pitchEnvelope 0/1/0.9/1.1/1/1/0/0.98/1.03/ ObjectTemplate.volumeEnvelope 0/1/0/1/1/1/0/0.9/1/ ObjectTemplate.position -0.00107837/0.0164062/0.474377 ObjectTemplate.minDistance 2 ObjectTemplate.halfVolumeDistance 6 ObjectTemplate.soundRadius 0.5 ObjectTemplate.activeSafe Sound S_unl_carbine_BoltClick ObjectTemplate.lowSamples 2147483647 ObjectTemplate.mediumSamples 2147483647 ObjectTemplate.soundFilename "sound/weapons/common/bolt_click.wav" ObjectTemplate.loopCount 1 ObjectTemplate.is3dSound 0 ObjectTemplate.stopType 1 ObjectTemplate.volume 1 ObjectTemplate.pitch 1 ObjectTemplate.pan 0.5 ObjectTemplate.reverbLevel 1 ObjectTemplate.position 0/0.0271776/-0.108983 ObjectTemplate.activeSafe Sound S_unl_carbine_TriggerClick ObjectTemplate.lowSamples 2147483647 ObjectTemplate.mediumSamples 2147483647 ObjectTemplate.soundFilename "sound/weapons/common/trigger_click.wav" ObjectTemplate.loopCount 1 ObjectTemplate.is3dSound 0 ObjectTemplate.stopType 1 ObjectTemplate.volume 0.7 ObjectTemplate.pitch 1 ObjectTemplate.pan 0.5 ObjectTemplate.reverbLevel 1 ObjectTemplate.position 0/-0.0442018/-0.0382003 ObjectTemplate.activeSafe Sound S_unl_carbine_SwitchFireRate ObjectTemplate.lowSamples 2147483647 ObjectTemplate.mediumSamples 2147483647 ObjectTemplate.soundFilename "sound/weapons/common/fire_rate_switch.wav" ObjectTemplate.loopCount 1 ObjectTemplate.is3dSound 0 ObjectTemplate.stopType 1 ObjectTemplate.volume 0.55 ObjectTemplate.pitch 1 ObjectTemplate.pan 0.5 ObjectTemplate.reverbLevel 1 ObjectTemplate.position 0/-0.0181397/-0.0909292 ObjectTemplate.activeSafe Sound S_unl_carbine_Reload1P ObjectTemplate.lowSamples 2147483647 ObjectTemplate.mediumSamples 2147483647 ObjectTemplate.soundFilename "sound/weapons/reload_deploy/unl_carbine_reload.wav" ObjectTemplate.loopCount 1 ObjectTemplate.is3dSound 0 ObjectTemplate.stopType 1 ObjectTemplate.volume 0.8 ObjectTemplate.pitch 1 ObjectTemplate.pan 0.5 ObjectTemplate.reverbLevel 1 ObjectTemplate.position 0/-0.063823/0.0222512 ObjectTemplate.activeSafe Sound S_unl_carbine_Reload3P ObjectTemplate.lowSamples 2147483647 ObjectTemplate.mediumSamples 2147483647 ObjectTemplate.soundFilename "sound/weapons/reload_deploy/unl_carbine_reload.wav" ObjectTemplate.loopCount 1 ObjectTemplate.is3dSound 1 ObjectTemplate.stopType 1 ObjectTemplate.volume 0.8 ObjectTemplate.pitch 1 ObjectTemplate.reverbLevel 1 ObjectTemplate.position 0/-0.0582734/0.0158555 ObjectTemplate.minDistance 0.8 ObjectTemplate.halfVolumeDistance 2.5 ObjectTemplate.activeSafe Sound S_unl_carbine_Deploy1P ObjectTemplate.lowSamples 2147483647 ObjectTemplate.mediumSamples 2147483647 ObjectTemplate.soundFilename "sound/weapons/common/generic_deploy.wav" ObjectTemplate.loopCount 1 ObjectTemplate.is3dSound 0 ObjectTemplate.stopType 0 ObjectTemplate.volume 0.7 ObjectTemplate.pitch 0.88 ObjectTemplate.pan 0.5 ObjectTemplate.reverbLevel 1 ObjectTemplate.position 0/0.0595026/-0.0856211 ObjectTemplate.activeSafe Sound S_unl_carbine_Deploy3P ObjectTemplate.lowSamples 2147483647 ObjectTemplate.mediumSamples 2147483647 ObjectTemplate.soundFilename "sound/weapons/common/generic_deploy.wav" ObjectTemplate.loopCount 1 ObjectTemplate.is3dSound 1 ObjectTemplate.stopType 0 ObjectTemplate.volume 0.7 ObjectTemplate.pitch 0.88 ObjectTemplate.reverbLevel 1 ObjectTemplate.position 0/0.0159245/-0.0538461 ObjectTemplate.minDistance 0.5 ObjectTemplate.halfVolumeDistance 2 ObjectTemplate.activeSafe Sound S_unl_carbine_Zoom ObjectTemplate.lowSamples 2147483647 ObjectTemplate.mediumSamples 2147483647 ObjectTemplate.soundFilename "sound/weapons/common/small_scope_zoom.wav" ObjectTemplate.loopCount 1 ObjectTemplate.is3dSound 0 ObjectTemplate.stopType 1 ObjectTemplate.volume 0.7 ObjectTemplate.pitch 1 ObjectTemplate.pan 0.5 ObjectTemplate.reverbLevel 1 ObjectTemplate.position 0/0.0913384/-0.0160701 ObjectTemplate.activeSafe Sound S_Unl_Carbine_Projectile_Looping Edited May 25, 2009 by A-Train Quote Share this post Link to post Share on other sites
amideadyet 0 Report post Posted May 26, 2009 (edited) Thanks, but i wasn't able to get that to work...not sure if i copied your code wrong, or if there's something missing. while i was testing this i realized the reason the decals weren't showing up earlier is because i had the game set to low graphics, on medium or higher they show up. Also, is there a way to make decals stay longer, instead of just disappearing after a couple of seconds? Edited May 26, 2009 by amideadyet Quote Share this post Link to post Share on other sites
A-Train 0 Report post Posted May 27, 2009 I believe I have the answer to that question, but first, where are the decal code stored? Quote Share this post Link to post Share on other sites
amideadyet 0 Report post Posted May 27, 2009 (edited) The .tweaks are in Effects_server.zip->decals, but i didn't see anything in them like a timetolive or something Edited May 27, 2009 by amideadyet Quote Share this post Link to post Share on other sites
A-Train 0 Report post Posted May 28, 2009 Create a time to live on the decals and set it to like uh 60 seconds or something then get back to me. Quote Share this post Link to post Share on other sites
amideadyet 0 Report post Posted May 28, 2009 I'll try that, but i doubt it will work...the decals seem to disappear after X amount of shots have been fired, so after X amount of shots the first decal disappears, then the second, etc. but hopefully I'm wrong and the timetolive will work Quote Share this post Link to post Share on other sites
amideadyet 0 Report post Posted May 29, 2009 It didnt work :/ Quote Share this post Link to post Share on other sites
UberWazuSoldier 0 Report post Posted May 29, 2009 (edited) Ahh! I know how to do this! Hold on a sec while I poke around bf2_r.exe EDIT: Found the lines you'll be looking for: decalManager.timeToLive <time> (20 by default) Edited May 29, 2009 by UberWazuSoldier Quote Share this post Link to post Share on other sites
amideadyet 0 Report post Posted May 29, 2009 it worked Quote Share this post Link to post Share on other sites