Posted: Wed Sep 07, 2011 6:23 am Post subject:
Bombing Run Weapon Not Working
I'm using LKO's bombing run weapon from that link, but I can't seem to get it to work. Everything exists, everything is referenced, the animations exist and it doesn't crash. Shit just doesn't work at all. The plane refuses to fire the weapon.
There be the code for it. Like I said, it doesn't crash. Nothing happens. The plane won't even lift off the pad. Any ideas? I can't think of what I could have missed. _________________ KGR | AT
AZUR
Discord: theastronomer1836
Steam QUICK_EDIT
I fixed all of the typos. I had it crashing pretty hard before, but I'll try the Range right now. And that would make sense since the FlightLevel is the default.
[EDIT] Yep. That got it to fire the weapon. I just need to tweak the shit out of things since it doesn't drop many bombs. XD
[EDIT2] Alright. Thanks for the projectile update. I'll try that right now. _________________ KGR | AT
AZUR
Discord: theastronomer1836
Steam Last edited by FurryQueen on Wed Sep 07, 2011 7:05 am; edited 1 time in total QUICK_EDIT
Since the weapon is by default fired 5 times in a overrun attack, you can also give it a particlesystem to make it shoot only once.
Here's the DTA code (i hope Bittah doesn't mind)
Code:
[A10]
Elite=NapalmE
[NapalmE]
Damage=0 ;just a dummy (real damage done in art)
ROF=1
Range=5
Projectile=Invisible2 ;do the overrun attack
Speed=0
Warhead=NapalmHE
Floater=yes
Anim=SCTRBOMB ;play the scatterbomb anim that fires the minibombs over certain duration
UseSparkParticles=yes
AttachedParticleSystem=OneShotSys ;do only one shot during the overrun attack
[Invisible2]
Image=none
ROT=1
AA=yes
AG=yes
[ParticleSystems]
xx=OneShotSys
;dummy particlesystem that spawns only 1 invisible particle that keeps the unit from firing for time the particle is active
[OneShotSys]
HoldsWhat=OneShotPart
Spawns=yes
SpawnFrames=1
SpawnRadius=0
Slowdown=0
ParticleCap=30
SpawnCutoff=100
SpawnTranslucencyCutoff=100
BehavesLike=Smoke
Lifetime=1
[Particles]
xx=OneShotPart
[OneShotPart]
Image=CLRANIM ;just an shp with 20 clear frames
MaxEC=40 ;prevent further aircraft overrun shots for this duration after the first shot
Translucency=0
Velocity=5.0
Deacc=.05
WindEffect=0
BehavesLike=Smoke
DeleteOnStateLimit=yes
StartStateAI=0
EndStateAI=5
StateAIAdvance=30
art.ini
Code:
;Scatter bomb
[SCTRBOMB]
Image=CLRANIM ;just an invisible dummy anim used to fire the minibombs
Rate=200 ;how long should it fire bombs (lower value means longer)
TrailerAnim=MINIBOMB
TrailerSeperation=1 ;how often should small bombs be fired (higher means less bombs)
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum