Trace coming out of a bomb
Posted: Sat Dec 11, 2010 7:02 pm
Hi to everyone!
Well i have been looking at your forum for a few months now, found it interesting and decided to post my first topic. I have been playing with the objects.rfa for some time now, making a Mod to help instruct pilots on basic piloting skills like bombing and strafing. I have done the bomb make a trace of smoke, so i can see where it landed and how the trayectory was. The thing is the trace only works when i can see the actual bomb flying, like using chasecam when dropping it or quickly changing from nosecam to another cam where i can see it. if i keep in nosecam, when i drop the bomb and after it has impacted, the trace is not shown.
here is the code:
Any ideas?
Well i have been looking at your forum for a few months now, found it interesting and decided to post my first topic. I have been playing with the objects.rfa for some time now, making a Mod to help instruct pilots on basic piloting skills like bombing and strafing. I have done the bomb make a trace of smoke, so i can see where it landed and how the trayectory was. The thing is the trace only works when i can see the actual bomb flying, like using chasecam when dropping it or quickly changing from nosecam to another cam where i can see it. if i keep in nosecam, when i drop the bomb and after it has impacted, the trace is not shown.
here is the code:
Code: Select all
rem *** e_PanzShootTrail ***
ObjectTemplate.create EffectBundle e_PanzShootTrail2
ObjectTemplate.saveInSeparateFile 1
rem -------------------------------------
ObjectTemplate.addTemplate Em_PanzShootTrail2
ObjectTemplate.addTemplate Em_PanzShootTrail3
rem ObjectTemplate.addTemplate Em_PanzShootTrail4
ObjectTemplate.timeToLive CRD_NONE/30/0/0
rem -------------------------------------
rem *** Em_PanzShootTrail***
ObjectTemplate.create Emitter Em_PanzShootTrail2
ObjectTemplate.template Fx_PanzShootTrail2
ObjectTemplate.looping 0
ObjectTemplate.startAtCreation 1
ObjectTemplate.addEmitterSpeed 0
ObjectTemplate.emitterSpeedScale 1
ObjectTemplate.startProbability 1
ObjectTemplate.lodDistance 900
ObjectTemplate.timeToLive CRD_NONE/10/0/0
ObjectTemplate.intensity CRD_NONE/50/0/0
ObjectTemplate.startRotation CRD_NONE/1/0/0
ObjectTemplate.relativePositionInDof CRD_NONE/-2.5/0/0
ObjectTemplate.relativePositionInUp CRD_NONE/0/0/0
ObjectTemplate.relativePositionInRight CRD_NONE/0/0/0
ObjectTemplate.CullRadiusScale 1
ObjectTemplate.create SpriteParticle Fx_PanzShootTrail2
ObjectTemplate.timeToLive CRD_NONE/120/0/0
ObjectTemplate.size CRD_NONE/0.4006/0/0
ObjectTemplate.lodDistance 900
ObjectTemplate.gravityModifier CRD_NONE/0/0/0
ObjectTemplate.drag CRD_NONE/3/0/0
rem ObjectTemplate.sizeOverTime 0/0.40006|5/1|100/10
ObjectTemplate.texture e_muzs2_I
ObjectTemplate.useMipMaps 1
ObjectTemplate.CullRadiusScale 1
ObjectTemplate.initRotation CRD_UNIFORM/0/180/1
ObjectTemplate.XYSizeRatio CRD_NONE/1/0/0
ObjectTemplate.destBlendMode BMInvSourceAlpha
ObjectTemplate.rotationSpeed CRD_UNIFORM/50/100/1
ObjectTemplate.colorRGBAOverTime 0/255/0/0/99|90/255/0/0/70|100/255/0/0/0
rem *** Em_PanzShootTrail***
ObjectTemplate.create Emitter Em_PanzShootTrail3
ObjectTemplate.template Puto
rem Fx_PanzShootTrail3
ObjectTemplate.looping 0
ObjectTemplate.addEmitterSpeed 0
ObjectTemplate.startAtCreation 1
ObjectTemplate.emitterSpeedScale 1
ObjectTemplate.startProbability 1
ObjectTemplate.lodDistance 900
ObjectTemplate.timeToLive CRD_NONE/0.1/0/0
ObjectTemplate.intensity CRD_NONE/1000/0/0
ObjectTemplate.positionalSpeedInDof CRD_EXPONENTIAL/2000/1000/0
ObjectTemplate.positionalSpeedInUp CRD_NONE/0/0/0
ObjectTemplate.positionalSpeedInRight CRD_NONE/0/0/0
ObjectTemplate.startRotation CRD_NONE/1/0/0
ObjectTemplate.CullRadiusScale 1
ObjectTemplate.create SpriteParticle Puto
rem Fx_PanzShootTrail3
ObjectTemplate.timeToLive CRD_UNIFORM/30/1/0
ObjectTemplate.size CRD_NONE/0.4006/0/0
ObjectTemplate.lodDistance 900
ObjectTemplate.gravityModifier CRD_NONE/0/0/0
ObjectTemplate.addEmitterSpeed 0
ObjectTemplate.drag CRD_NONE/50/0/0
ObjectTemplate.DragOverTime 0/0.5|1/1|2/1
rem ObjectTemplate.sizeOverTime 0/0.40006|5/1|100/10
ObjectTemplate.texture e_muzs2_I
ObjectTemplate.useMipMaps 1
ObjectTemplate.initRotation CRD_UNIFORM/0/180/1
ObjectTemplate.XYSizeRatio CRD_NONE/1/0/0
ObjectTemplate.destBlendMode BMInvSourceAlpha
ObjectTemplate.rotationSpeed CRD_UNIFORM/50/100/1
ObjectTemplate.colorRGBAOverTime 0/255/255/0/99|90/255/255/0/70|100/255/255/0/0
rem ObjectTemplate.colorRGBAOverTime 0/255/255/0/0|4/255/255/0/56|15/255/255/0/212|55/255/255/0/208|100/255/255/0/50
ObjectTemplate.CullRadiusScale 1