Staredit Network > Forums > Modding Assistance > Topic: Help with Ion Cannon
Help with Ion Cannon
Jun 21 2008, 6:43 pm
By: Lord Jafud  

Jun 21 2008, 6:43 pm Lord Jafud Post #1



Hey, I need some help with the Eternal Duel Ion Cannon. It just shoots one time, if its used again, the game crashes.

Code
# This header is used by images.dat entries:
# 271 ComsatStation (terran\ComSat.grp)
.headerstart
IsId               99
Type               20
Init               ComsatStationInit
Death               ComsatStationDeath
GndAttkInit         ComsatStationGndAttkInit
AirAttkInit         ComsatStationGndAttkInit
Unused1             [NONE]
GndAttkRpt         ComsatStationGndAttkInit
AirAttkRpt         ComsatStationGndAttkInit
CastSpell           ComsatStationCastSpell
GndAttkToIdle       ComsatStationGndAttkInit
AirAttkToIdle       ComsatStationGndAttkInit
Unused2             [NONE]
Walking             [NONE]
WalkingToIdle       [NONE]
SpecialState1       [NONE]
SpecialState2       [NONE]
AlmostBuilt         ComsatStationAlmostBuilt
Built               ComsatStationBuilt
Landing             ComsatStationLanding
LiftOff             ComsatStationGndAttkInit
IsWorking           ComsatStationGndAttkInit
WorkingToIdle       ComsatStationWorkingToIdle
WarpIn             [NONE]
.headerend
# ----------------------------------------------------------------------------- #
ComsatStationInit:
    playfram           0
    imgul               274 0 0     # ComsatStationShad (terran\tcsShad.grp)
    goto               ComsatStationGndAttkInit

ComsatStationGndAttkInit:
    wait               125
    goto               ComsatStationGndAttkInit

ComsatStationDeath:
    playsnd             7     # Misc\ExploLrg.wav
    imgol               334 0 0     # TerranBuildingExplosionlarge (thingy\tBangX.grp)
    wait               3
    liftoffcondjmp     ComsatStationLocal00
    lowsprul           273 0 0     # TerranBuildingRubblesmall (thingy\RubbleS.grp)
    wait               1
    end                

ComsatStationLocal00:
    wait               1
    end                

ComsatStationCastSpell:
    wait               1
    playfram     0
    nobrkcodestart    
    wait               1
    playsnd             76     # Bullet\LASRHIT2.wav
    wait               10
    playsnd             179     # Terran\BATTLE\tBaYam02.wav
    imgol               443 5 -5     # ScarabTrail (thingy\HKTrail.grp)
    wait               1
    imgol               443 10 -10     # ScarabTrail (thingy\HKTrail.grp)
    wait               1
    imgol               443 18 -18     # ScarabTrail (thingy\HKTrail.grp)
    wait               1
    imgol               443 26 -26     # ScarabTrail (thingy\HKTrail.grp)
    wait               1
    imgol               443 34 -34     # ScarabTrail (thingy\HKTrail.grp)
    wait               1
    imgol               443 42 -42     # ScarabTrail (thingy\HKTrail.grp)
    wait               1
    imgol               443 50 -50     # ScarabTrail (thingy\HKTrail.grp)
    wait               1
    imgol               443 58 -58     # ScarabTrail (thingy\HKTrail.grp)
    wait               1
    imgol               443 66 -66     # ScarabTrail (thingy\HKTrail.grp)
    wait               1
    imgol               443 74 -74     # ScarabTrail (thingy\HKTrail.grp)
    wait               1
    imgol               443 82 -82     # ScarabTrail (thingy\HKTrail.grp)
    wait               1
    imgol               443 90 -90     # ScarabTrail (thingy\HKTrail.grp)
    wait               1
    imgol               443 98 -98     # ScarabTrail (thingy\HKTrail.grp)
    wait               1
    imgol               443 106 -106     # ScarabTrail (thingy\HKTrail.grp)
    wait               1
    imgol               443 114 -114     # ScarabTrail (thingy\HKTrail.grp)
    wait               1
    imgol               443 122 -122     # ScarabTrail (thingy\HKTrail.grp)
    wait               10
    castspell          
    wait               1
    nobrkcodeend      
    wait         1
    goto               ComsatStationWorkingToIdle

ComsatStationBuilt:
    imgol               200 0 0     # StargateGlow (protoss\psgGlow.grp)
    playfram           0
    wait               1
ComsatStationWorkingToIdle:
    playfram           0
    goto               ComsatStationGndAttkInit

ComsatStationAlmostBuilt:
    playfram           1
    goto               ComsatStationGndAttkInit

ComsatStationLanding:
    imgol               272 0 0     # ComsatStationAttachment (terran\ComSatC.grp)
    goto               ComsatStationGndAttkInit


Any suggestions?

Post has been edited 1 time(s), last time on Jun 21 2008, 7:33 pm by Lord Jafud.



None.

Jun 21 2008, 7:08 pm Fisty Post #2



It would help to have the header listing as well.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[01:24 pm]
Vrael -- NEED SOME SPORTBALL> WE GOT YOUR SPORTBALL EQUIPMENT MANUFACTURING
[2024-4-30. : 5:08 pm]
Oh_Man -- https://youtu.be/lGxUOgfmUCQ
[2024-4-30. : 7:43 am]
NudeRaider -- Vrael
Vrael shouted: if you're gonna link that shit at least link some quality shit: https://www.youtube.com/watch?v=uUV3KvnvT-w
Yeah I'm not a big fan of Westernhagen either, Fanta vier much better! But they didn't drop the lyrics that fit the situation. Farty: Ich bin wieder hier; nobody: in meinem Revier; Me: war nie wirklich weg
[2024-4-29. : 6:36 pm]
RIVE -- Nah, I'm still on Orange Box.
[2024-4-29. : 4:36 pm]
Oh_Man -- anyone play Outside the Box yet? it was a fun time
[2024-4-29. : 12:52 pm]
Vrael -- if you're gonna link that shit at least link some quality shit: https://www.youtube.com/watch?v=uUV3KvnvT-w
[2024-4-29. : 11:17 am]
Zycorax -- :wob:
[2024-4-27. : 9:38 pm]
NudeRaider -- Ultraviolet
Ultraviolet shouted: NudeRaider sing it brother
trust me, you don't wanna hear that. I defer that to the pros.
[2024-4-27. : 7:56 pm]
Ultraviolet -- NudeRaider
NudeRaider shouted: "War nie wirklich weg" 🎵
sing it brother
[2024-4-27. : 6:24 pm]
NudeRaider -- "War nie wirklich weg" 🎵
Please log in to shout.


Members Online: Roy, jun3hong