Staredit Network > Forums > Modding Assistance > Topic: spread shot
spread shot
Feb 15 2009, 1:55 am
By: thunderaga  

Feb 15 2009, 1:55 am thunderaga Post #1



i saw a few mods that when a unit fired, a bunch on bullets came out instead of one. How is this done?



None.

Feb 15 2009, 2:00 am Corbo Post #2

ALL PRAISE YOUR SUPREME LORD CORBO

You modify the weapon behaviour to be valkyrie-like. Use "attack 3x3 cell" or something.
Then go to the unit attack iscript and find the line that says "attackwith1" and copy it as many times as you wish.



fuck you all

Feb 15 2009, 2:01 am EzDay281 Post #3



Spread can be achieved by having a missile sprite set to "Attack Target 3x3 Area". This'll cause them to choose a location offset from the target by a certain distance, which changes with each shot ( i.e., this is what the Valkyrie's Halo Rockets do ) .
To have a unit fire multiple shots at once, you copy and paste their attack opcode in their attack animation however many times desired, possibly with waits in between. Similarly, setting a factor of 2 in the weapons.dat will cause two projectiles to fire per opcode ( though 3 or higher do the same as 1 ) .



None.

Feb 15 2009, 2:21 am thunderaga Post #4



so what will i look for if i wanted to change the terran missile turret's attack to the spread shot?

darn! should of put that in my first post!



None.

Feb 15 2009, 4:12 am Sand Wraith Post #5

she/her

For the Terran Missile Turret to shoot two randomly-landing missiles:

Go to its weapon, the Lockdown Missiles. Look for "Weapon Behaviour" or "Flies to Target." Change that to "Attack 3x3 Area" (or something along the lines of that). Set the "Factor" value below the "Damage" value to 2.

You're finished! (This follows EzDay's second part of his tip.)




Feb 15 2009, 5:00 am thunderaga Post #6



thanks!
BTW: the mod is going excellent so far



None.

Feb 15 2009, 6:23 am ShadowFlare Post #7



That may not be the kind of attack he means. He may mean the kind of attack where the unit fires shots at multiple angles at once, with the shots all going straight. I've seen it done in at least one mod. It involves using an attack with splash damage and that doesn't follow the target. In the iscript, it does multiple attacks, turning a different angle between each attack.



None.

Feb 15 2009, 8:21 am Sand Wraith Post #8

she/her

I've done that quite a few times, SF, usually with Firebats (I did so also in my NGGYU mod, if you want to check it out: Mod Projects forum). I think I tried doing that with Lurkers too once, but I can't remember if it worked or not.




Feb 15 2009, 12:55 pm Symmetry Post #9

Dungeon Master

Quote from name:New-.Hydrolisk
I've done that quite a few times, SF, usually with Firebats (I did so also in my NGGYU mod, if you want to check it out: Mod Projects forum). I think I tried doing that with Lurkers too once, but I can't remember if it worked or not.

It does. I've made lurkers that fire in all directions. It's lulzy.



:voy: :jaff: :voy: :jaff:

Feb 15 2009, 4:32 pm Fisty Post #10



Quote from ShadowFlare
That may not be the kind of attack he means. He may mean the kind of attack where the unit fires shots at multiple angles at once, with the shots all going straight. I've seen it done in at least one mod. It involves using an attack with splash damage and that doesn't follow the target. In the iscript, it does multiple attacks, turning a different angle between each attack.
Yeah, that's how you do it. The command used to turn is turncwise and turnccwise. You may think these commands need waits to go with them, but they do not. You'd accomplish the spead by using turnc(c)wise followed by an attackwith. Stack these commands until you achieve the desired effect. *trots off to find his Iscript file for BoB*



None.

Feb 15 2009, 9:24 pm Yawgmoth Post #11



Quote from thunderaga
i saw a few mods that when a unit fired, a bunch on bullets came out instead of one. How is this done?

He means the type of attack like a "bunch of bullets", so it's note referring to many directions, necessarily.

Well, also you can try to play with the "launch angle" in the entry "Longbolt Missile" from the weapons.dat. That'll make the missiles to take nice trays before they hit. also yo can make the Missile Turret to get the Ground Weapon, they change the Iscript.bin and make the Turret attack with both weapons to the air in the AirAttkRpt animation (and then adding the new weapon to the Turret).



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[06:47 am]
NudeRaider -- lil-Inferno
lil-Inferno shouted: nah
strong
[05:41 am]
Ultraviolet -- 🤔 so inf is in you?
[04:57 am]
O)FaRTy1billion[MM] -- my name is mud
[04:35 am]
Ultraviolet -- mud, meet my friend, the stick
[10:07 pm]
lil-Inferno -- nah
[08:36 pm]
Ultraviolet -- Inf, we've got a job for you. ASUS has been very naughty and we need our lil guy to go do their mom's to teach them if they fuck around, they gon' find out
[05:25 pm]
NudeRaider -- there he is, right on time! Go UV! :D
[05:24 pm]
lil-Inferno -- poopoo
[05:14 pm]
UndeadStar -- I wonder if that's what happened to me. A returned product (screen) was "officially lost" for a while before being found and refunded. Maybe it would have remained "lost" if I didn't communicate?
[03:36 pm]
NudeRaider -- :lol:
Please log in to shout.


Members Online: 9alicee132yB2