Staredit Network > Forums > Modding Assistance > Topic: Goliath turret acts crazy
Goliath turret acts crazy
Jan 17 2009, 6:10 pm
By: Lunes Madness  

Jan 17 2009, 6:10 pm Lunes Madness Post #1



my goliath turret often faces the opposite direction of where hes heading from. lets say hes walking from left to right the turret will face left or some angles that makes it kinda stupid. heres the iscript and which is infleunced by BSTRhino.

Code
Goliath_Turret_Init:
    playfram           0x77     # frame set 7
    goto               Goliath_Turret_Local00

Goliath_Turret_Local00:
    wait               125
    goto               Goliath_Turret_Local00

Goliath_Turret_Death:
    wait               1
    end                

Goliath_Turret_GndAttkInit:
    playfram           0xaa     # frame set 10
    playsnd             70     # Bullet\TGoFir00.wav
    attackwith         1
    wait               1
    playfram           0x77     # frame set 7
    wait               1
    playfram           0xaa     # frame set 10
    wait               1
    playfram           0x77     # frame set 7
    wait               1
    playfram           0xaa     # frame set 10
    wait               1
    randcondjmp         128 Goliath_Turret_Local01
    randcondjmp         128 Goliath_Turret_Local02
    gotorepeatattk    
    goto               Goliath_Turret_Init
Goliath_Turret_Local01:
playsndrand         4 242 244 245 246     # Terran\GOLIATH\TGoPss00.wav, Terran\GOLIATH\TGoPss02.WAV, Terran\GOLIATH\TGoPss03.WAV, Terran\GOLIATH\TGoPss04.WAV
    wait               1
    gotorepeatattk    
    goto               Goliath_Turret_Init
Goliath_Turret_Local02:
    imgol               537 8 0     # Unknown537 (thingy\esiFire.grp)
    wait               1
    useweapon           129     # Gauss Rifle
    wait               1
    useweapon           129     # Gauss Rifle
    wait               1
    useweapon           129     # Gauss Rifle
    wait               1
    useweapon           129     # Gauss Rifle
    gotorepeatattk    
    goto               Goliath_Turret_Init
Goliath_Turret_AirAttkInit:
    wait               1
    playsnd             80     # Bullet\HKMISSLE.wav
    attackwith         2
    gotorepeatattk    
    goto               Goliath_Turret_Init

Goliath_Turret_Walking:
    move               0
    wait               1
    playfram           0x88     # frame set 8
    move               0
    wait               1
    playfram           0x99     # frame set 9
    move               0
    wait               1
    playfram           0x00     # frame set 0
    move               0
    wait               1
    playfram           0x11     # frame set 1
    move               0
    wait               1
    playfram           0x22     # frame set 2
    move               0
    wait               1
    playfram           0x33     # frame set 3
    move               0
    wait               1
    playfram           0x44     # frame set 4
    move               0
    wait               1
    playfram           0x55     # frame set 5
    move               0
    wait               1
    playfram           0x66     # frame set 6
    move               0
    wait               1
    playfram           0x77     # frame set 7
    goto               Goliath_Turret_Walking


just out of curiosity why does almost all units has a wait value of 125 (well can't it be done with some other valuse than 125?)



None.

Jan 18 2009, 12:27 am Hercanic Post #2

STF mod creator, Modcrafters.com admin, CampaignCreations.org staff

The 125 Wait script where the animation goes to wait for an order.




Jan 18 2009, 10:25 pm Lunes Madness Post #3



so iscript is not the problem why my goliath doesnt act normally then??



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[02:41 am]
Oh_Man -- i used to play TF2 competitive in that clan, and also was PR manager (ie: i wrote all the website posts)
[02:41 am]
Oh_Man -- another fun fact iaguz actually joined the clan i was part of - Frenetic Array
[02:40 am]
Symmetry -- Human memory is a fragile, fallible thing
[02:39 am]
Oh_Man -- i realised all his shit was halluc and i wiped out his measly army of fake hallucs and he called GG - yeah thts wat actually happened damn false memory strikes again
[02:38 am]
Oh_Man -- i was zerg, the toss guy did a bunch of hallucinates, and i was like, welp, i guess i'm dead, but i have that mindset of never giving up, so attacked him anyway, then tht was wen
[02:38 am]
Oh_Man -- coz i was actually a zerg main, so wat ACTUALLY happened was a complete reverse of this
[02:37 am]
Oh_Man -- i found an old comment of mine i actually think the idra thing over-ride my own memory
[02:22 am]
Symmetry -- was it idra
[01:52 am]
NudeRaider -- Oh_Man
Oh_Man shouted: and i went on to win the tournament, and a pair of steelseries headphones. i even reember how i won the final match - hallucinated a fck-tonne of units and my opponent thought i had way more than he did and GGed
classic
[2026-8-05. : 2:56 pm]
Oh_Man -- long story short - patience is a virtue!
Please log in to shout.


Members Online: Excalibur