Posted: Mon Feb 17, 2014 6:30 pm Post subject:
Gattling firing logic question.
Subject description: strange sounds and firings
Hello, Everyone! Today I tryed to make the Apocalypse Tank use a gattling logic. Here is what I tryed:
;-----Gattling stuff-------
;GEF There is a _lot_ of stuff in this section, hope it's worth it
;Do I have a gattling gun or not
IsGattling=yes
Gattling.Cycle=yes
;How weapons does it have? Currently, all Gattling Units have had anti-air
;capability, so the mechanics currently depends on having twice the number
;of stages in weapons, alternating anti-ground first, and anti-air second.
TurretCount=1
WeaponCount=6
;How many stages does this gattling gun have, and how long does it
;take to progress through these stages;
WeaponStages=3
Stage1=200
Stage2=400
;This last stage is used to determine what the maximum fireing timer can be. Once it
;hits this it will stop increasing. If this is larger than the previous stage, then
;it will have a grace period once the unit stops firing before it needs to drop
;down to the lower weapon.
Stage3=600
EliteStage1=100
EliteStage2=200
EliteStage3=300
;How many increments or decrements does the timer get per frame?
;If RateDown is zero, then it overrides the previous stage vaules,
;causing the tank to instantly go to zero when it stops firing
;if it can't find a new target
RateUp=1
RateDown=50
;-----End Gattling stuff-------
Note: this is just for testing, I've not changed stages or anything else. Just the weapons.
I decided that it will be bad for the targeting if the weapons have deferent range, so I made the 120mmx have the same range as Para.
Everything is ok, until it starts firing. When it fires it fires its primary cannon from the center of the vehicle(this is not a problem, I can fix that). Now the real problem for me is that when the projectile reaches its destination it blows up without a sound. O.O And the firing sounds are not played when they should be played.
Using the Gatling's Sound System isn't gonna work really well on non-looping Weapons. AKA Gatlings...
basically like this...
Rules...
[WEAPON]
Anim=TANKPEW
Art...
[TANKPEW]
Image=ORIGEXP
Report=PewPew
You need to do this for every Gatling-Based unit that would function as a regular style weapon. As Gatling System was originally designed to be used in conjunction with looping sfx. _________________ ~ Excelsior ~ QUICK_EDIT
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