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
-
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
-
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.
-
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?
-
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.
-
Can you modify the timing between the cycles?
-
I don't know. Might be just the refire wait time.
-
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?
-
oh he wants fire supression, the good old m-16 effect.
-
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?
-
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
-
*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).
-
Does swarm work on primaries? If so, that'd do what you want.
-
...
I doubt it but I will check it out anyway...
If this works I'm going to jump off a small cliff...
-
I'm fairly sure it does.
-
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
-
Yeah, Swarm is what you want. I imagine if we were to code it for primaries as well it would be swell.
-
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.
-
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.
-
Ah k.
In which case it just needs to be adjusted to work with primaries.
How hard can it be?
-
Dunno. I suggest PM'ing Bobbaou, Goober, Phreak, or WMCoolmon. They have all messed around with weapon flags, IIRC.
-
What about Taylor?
Has he touched it?
-
Not that I know of. I think Phreak is the one who implemented the expanded capabilities for $Swarm, so you might try him first.
-
actually i did the corkscrew stuff, which is similar but separate
*runs*
-
any chance of geting cycle as a ship flag?
It seams to me that's where it belongs, not on guns.
-
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.
-
*Attempts to box PhReAk in*
Would you consider enabling Swarm code for primaries as well? :D
Pleasssee...