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.
[11:45 pm]
ClansAreForGays -- Anyone wanna played Skewed StarCraft?
[2026-4-14. : 12:07 am]
Vrael -- NudeRaider
NudeRaider shouted: Vrael ranting still is though
you're a gentleman and a scholar, thank you
[2026-4-13. : 10:07 pm]
NudeRaider -- ya why phone people when you can just write letters
[2026-4-13. : 9:37 pm]
IskatuMesk -- I have never and will never own a phone
[2026-4-13. : 9:15 pm]
NudeRaider -- Vrael ranting still is though
[2026-4-13. : 9:14 pm]
ClansAreForGays -- anticapitalism isnt edgy anymore
[2026-4-13. : 3:31 pm]
Vrael -- it only costs 50% of my post-tax salary for life and in return I get to also become a drone whose sole purpose is CAPITALISM
[2026-4-13. : 3:30 pm]
Vrael -- pssht, you're still using a phone? I just record 100% of my life using my ElonBrainChip
[2026-4-13. : 2:13 pm]
NudeRaider -- bro I don't go anywhere without my phone to record anything significant
[2026-4-13. : 1:28 pm]
Vrael -- Zoan
Zoan shouted: not if u wer there
id say even if you were there its tricky, human memory can be very faulty
Please log in to shout.


Members Online: RIVE, Zycorax