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.
[2026-4-29. : 2:00 am]
l)ark_ssj9kevin -- hi jamal
[2026-4-29. : 12:18 am]
Heinermann -- memes
[2026-4-28. : 10:08 pm]
NudeRaider -- skeet-skeet, motherfucker
[2026-4-28. : 4:24 pm]
Vrael -- NudeRaider
NudeRaider shouted: Vrael boy, if you're not careful I'll moderate your sorry ass too!
gotta catch me first! skeet skeet skeet
[2026-4-26. : 1:58 pm]
lil-Inferno -- ya
[2026-4-25. : 11:50 pm]
JamaL -- Glad to see SEN will never die. Kudos to whoever is paying the hosting fees these days!
[2026-4-25. : 3:37 pm]
NudeRaider -- (-.-,)
[2026-4-25. : 3:35 pm]
Zoan -- ;o I thought that was a monkey emote
[2026-4-25. : 3:34 pm]
Zoan -- :mods:
[2026-4-25. : 3:34 pm]
Zoan -- :mods"
Please log in to shout.


Members Online: Moose, DarkenedFantasies, Ojan