Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: Grug on March 03, 2005, 08:31:52 am

Title: $shot field - An addition?
Post by: Grug on March 03, 2005, 08:31:52 am
Effect of the shots field:

With beams it fires in sequence: 1,2,3.

In non-beam weapons it fires x shots at the same time, shotgun style.

Is it possible to set the shots to fire in sequence on non-beam weapons as well?
Maybe another flag with the time difference between them?

Thus creating a burst weapon effect.

Would this be easily implemented?
If so can it be...? :D
Title: $shot field - An addition?
Post by: Nuke on March 03, 2005, 09:38:35 am
shots has many uses.

what you want is to use it with "cycle", then shots will specify how many weapons will fire at once. if shots is more than the number of guns on the ship you will get the shotgun effect. using cycle by itself will create the chain fire mode, firing a single shot at a time and rotating like missile points.
Title: $shot field - An addition?
Post by: Grug on March 03, 2005, 09:55:41 am
What does cycle do?

Not quite sure on what your saying there.

The ship in question has only 1 primary firing point.

Is it already possibly to make a burst fire effect?
Title: $shot field - An addition?
Post by: aldo_14 on March 03, 2005, 10:15:08 am
IIRC 'cycle' means that the ship fires out of each firing point (on the same bank) one after the other, rather than all at once as by default.
Title: $shot field - An addition?
Post by: Grug on March 03, 2005, 10:44:57 am
Can you modify the timing between the cycles?
Title: $shot field - An addition?
Post by: aldo_14 on March 03, 2005, 10:59:43 am
I don't know.  Might be just the refire wait time.
Title: $shot field - An addition?
Post by: Grug on March 03, 2005, 11:52:22 am
That wouldn't work.

Basically I wan to pull the trigger once, fire 1,2,3 shots not all at once though. In sequence. So each time the trigger is pulled it fires x number of shots in sequence with t wait time in the sequence.

Say for eg:
$WaitTime: 0.6
$Shots: 2
$SequenceWaitTime: 0.1

So you shoot like this:
- - , - - ,  - - ,

Rather than:
= , = ,  = ,

Aka like the battle rifle in Halo2.

Is there anyway this can be done currently?
If not, is it possible to have it implemented?
Title: $shot field - An addition?
Post by: Nuke on March 03, 2005, 04:31:43 pm
oh he wants fire supression, the good old m-16 effect.
Title: $shot field - An addition?
Post by: Grug on March 03, 2005, 04:48:23 pm
Yes.
*Light beams down from clouds*

*voices ring out* "HALL-A-ULYA!"
*Giant beard appears* "Shhh!"
*everything goes silent*


....

weeee...

So son, can it be done?
Title: $shot field - An addition?
Post by: Nuke on March 03, 2005, 09:51:47 pm
probibly, probibly an easy implement too. its just a mater of finding a coder who has time to implement it. id use it, hell i use everything :D
Title: $shot field - An addition?
Post by: Grug on March 03, 2005, 09:56:09 pm
*Taps foot on floor and waits for volunteer coder to jump in*

I've had a nap now, so I'm feeling a little better... kinda.

Anyway, what's the chances this is going to happen?
I guess its not that vital, I've got bigger issues with wanting features implemented, such as the 'surface shields' flag.

I really, really need to get that flag working with all ships (ones without shield meshes, and the player ship).
Title: $shot field - An addition?
Post by: Sesquipedalian on March 03, 2005, 11:41:22 pm
Does swarm work on primaries?  If so, that'd do what you want.
Title: $shot field - An addition?
Post by: Grug on March 03, 2005, 11:51:50 pm
...

I doubt it but I will check it out anyway...

If this works I'm going to jump off a small cliff...
Title: $shot field - An addition?
Post by: FireCrack on March 04, 2005, 12:11:03 am
I'm fairly sure it does.
Title: $shot field - An addition?
Post by: Grug on March 07, 2005, 11:54:18 pm
I tested it and the Swarm does nothing for Primary Weapons.

I don't suppose I could request someone from the SCP team to add another field to tie in with the Shots field.

Something like:

$Shots: 3 ;Number of shots fired.
$Burst Delay: 0.12 ;Time delay between each shot in seconds

Only downside is that Burst Delay x Shots has to be under FireWait or else overlapping would occur. But that's upto modders.

Would this be an easy thing to implement? If so, would someone be willing?
:D
Title: $shot field - An addition?
Post by: Galemp on March 08, 2005, 02:03:07 am
Yeah, Swarm is what you want. I imagine if we were to code it for primaries as well it would be swell.
Title: $shot field - An addition?
Post by: Grug on March 08, 2005, 03:20:16 am
Still need some way to control the delay between each shot.
The only thing you couldn't do with the above suggested method, would be have burst fire shotguns.

So maybe swarm is what we need. But still need some way to control the burst delay.
Title: $shot field - An addition?
Post by: Trivial Psychic on March 08, 2005, 07:26:55 pm
You can adjust the delay between swarm shots.  Just add "+SwarmWait:" right underneath the "$Swarm:" entry and add a x.x number, which is in seconds I believe.
Title: $shot field - An addition?
Post by: Grug on March 08, 2005, 08:56:10 pm
Ah k.

In which case it just needs to be adjusted to work with primaries.
How hard can it be?
Title: $shot field - An addition?
Post by: Sesquipedalian on March 08, 2005, 11:47:50 pm
Dunno.  I suggest PM'ing Bobbaou, Goober, Phreak, or WMCoolmon.  They have all messed around with weapon flags, IIRC.
Title: $shot field - An addition?
Post by: Grug on March 09, 2005, 12:21:45 am
What about Taylor?
Has he touched it?
Title: $shot field - An addition?
Post by: Sesquipedalian on March 09, 2005, 01:20:51 am
Not that I know of.  I think Phreak is the one who implemented the expanded capabilities for $Swarm, so you might try him first.
Title: $shot field - An addition?
Post by: phreak on March 09, 2005, 11:52:03 am
actually i did the corkscrew stuff, which is similar but separate

*runs*
Title: $shot field - An addition?
Post by: terren on March 09, 2005, 04:58:12 pm
any  chance of geting cycle as a ship flag?
It seams to me that's where it belongs, not on guns.
Title: $shot field - An addition?
Post by: Nuke on March 09, 2005, 06:36:42 pm
well not really, after working with them for some time now i find it far more convenient as a weapon flag. before it was implemented i had suggested making it a ship flag, however after seeing the way they implemented it i like it the way it is better.
Title: $shot field - An addition?
Post by: Grug on March 09, 2005, 11:45:48 pm
*Attempts to box PhReAk in*

Would you consider enabling Swarm code for primaries as well? :D

Pleasssee...