Warp and epic explosion scripts, my gift to you
Posted: Sun Jul 03, 2011 8:31 pm
Well, because my computer hates Starcraft and many other issues that all combined equal "Your Starcraft mod will never be finished." I give up. I doubt I will finish my Starcraft mod... ever. My mind is constantly throwing out current ideas and finding the ones I want to implement... impossible. So, basically, I'm going to either step out of modding entirely and wait until I get a chance to work with others to make a brand new engine from the ground up or I'm going to work with others (/shudder) make some lesser projects that won't touch my Iron Wars ships because I don't want anyone to mess with those, story, etc. However, I don't want this to be an entire loss, so I'm going to share with you the warp script that I made for ships that couldn't have happened without the help of the helpful people here. I hope to see this script put to good use. I've included comments with it to try to explain what does what. Feel free the ask questions, I will try to check in on this thread once in a while to answer, but don't expect immediate responses.
I also think I should include the basic idea for my multiple explosions on death scripts. I feel that any large ship that takes up the full size of a sprite deserves more than one big explosion, so I put this together.
Code: Select all
DropshipWalkingToIdle:
setvertpos 1
setflspeed 864 #used to set the speed back to normal after the ship exits warp because of the acceleration period shown later
waitrand 8 10
setvertpos 2
waitrand 8 10
setvertpos 1
waitrand 8 10
setvertpos 0
waitrand 8 10
goto DropshipWalkingToIdle
DropshipWalking:
imgol 225 0 0 # DropshipGlow (thingy\tdrGlow.grp)
setvertpos 0
wait 425 #warp charging time, adjust as you like
goto DropshipLocal03
DropshipLocal03:
setflspeed 3200 #temporarily raises max velocity for the unit so it appears to accelerate into warp
setvertpos 0
wait 92 #unit will start to accelerate at this period before going into actual warp, consider extending
playsnd 110 # Deflier Attack? (bullet\zdeatt00.wav)
imgol 555 0 0 # EMP Shockwave Hit Part 1 (thingy\emp.grp)
imgol 556 0 0 # EMP Shockwave Hit Part 1 (thingy\emp.grp)
goto DropshipMidwarp #this goes to the part where the unit is actively warping across the map and it loops this next part until the unit stops.
DropshipMidwarp:
wait 1
move 25 #Turn this value up or down to increase or decrease the warp speed
imgol 555 0 0 # EMP Shockwave Hit Part 1 (thingy\emp.grp) #multiple of these are used because this one was written for a larger ship, needed to cover the whole thing
imgol 555 0 -32 # EMP Shockwave Hit Part 1 (thingy\emp.grp)
imgol 555 0 32 # EMP Shockwave Hit Part 1 (thingy\emp.grp)
imgol 555 64 0 # EMP Shockwave Hit Part 1 (thingy\emp.grp)
imgol 555 -64 0 # EMP Shockwave Hit Part 1 (thingy\emp.grp)
goto DropshipMidwarp #loops this part until the unit stops
Code: Select all
BattlecruiserDeath:
playsnd 177 # Terran\BATTLE\tbaDth00.wav
wait 2
move 5
playsnd 7 # Misc\ExploLrg.wav
imgol 333 42 0 # TerranBuildingExplosionlarge (thingy\tBangX.grp)
waitrand 7 12
move 5
playsnd 7 # Misc\ExploLrg.wav
imgol 334 0 -32 # TerranBuildingExplosionlarge (thingy\tBangX.grp)
waitrand 2 10
move 5
playsnd 7 # Misc\ExploLrg.wav
imgol 334 0 42 # TerranBuildingExplosionlarge (thingy\tBangX.grp)
waitrand 2 8
imgol 334 0 -42 # TerranBuildingExplosionlarge (thingy\tBangX.grp)
move 5
wait 4
end