Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: Krackers87 on September 18, 2003, 06:21:29 pm

Title: Barrel Backlash
Post by: Krackers87 on September 18, 2003, 06:21:29 pm
Wouldnt it be cool if certain barrels on turrets would sort of move backwards when they fired?

Sort of as if the just fired a massive round.

Also if we could have animations on ship. Like a weapon can unfold from an sexp then be able to fire like a normal turret? Or maybe on a massive beam turrets spinning pylons would aline themselves before the gun fires?
Title: Barrel Backlash
Post by: Taristin on September 18, 2003, 07:00:39 pm
It'd probably be a waste of resources... Who sits around staring at turrets the way I stare at the Anuket? I doubt anyone...
Title: Barrel Backlash
Post by: Krackers87 on September 18, 2003, 09:21:02 pm
i would realy help for the TA stuff im porting.
Title: Barrel Backlash
Post by: Deepblue on September 18, 2003, 09:49:47 pm
I think this has already been discussed, and pushed away by SCP people.
Title: Re: Barrel Backlash
Post by: mikhael on September 18, 2003, 10:05:48 pm
Quote
Originally posted by Krackers87
Wouldnt it be cool if certain barrels on turrets would sort of move backwards when they fired?

Sort of as if the just fired a massive round.

Also if we could have animations on ship. Like a weapon can unfold from an sexp then be able to fire like a normal turret? Or maybe on a massive beam turrets spinning pylons would aline themselves before the gun fires?


[brokenrecord]
You know, you can do that by tying an animation channel to the FireWeapon event in Iwar2. And you can animate things unfolding too. That, however, takes a lot more work. ;)
[/brokenrecord]
Title: Barrel Backlash
Post by: Nico on September 19, 2003, 02:15:12 am
Quote
Originally posted by Raa Tor'h
It'd probably be a waste of resources... Who sits around staring at turrets the way I stare at the Anuket? I doubt anyone...


That's how I kill them :p ( turrets are too strong in FS2, I'm not gonna fly around in circle idioticly a couple dozen times just to destroy one turret, so I go in front of it, and I shoot until it dies :p ) so I have plenty of time looking for that.

but as Deepblue said, this has already been discussed, and the SCP team has ignored it just like they ignore anything that they didn't decide to do by themselves in the first place ( to the exception of Bob who did a few requests ).
Ask for a Fred sexp, then you'll get heard :doubt: .
Title: Barrel Backlash
Post by: TrashMan on September 19, 2003, 06:21:43 am
Yeah...this was discussed earlyer and alltough the SCP people rejected it, they did say how to make it, and it was farly easy...

Too bad none of them put a theory to the test. They say it's a waste of resources, but anything that enhances the game atmosphere is no waist, I say.....Especially if you have BIG turrets that can be seen from quite a distance

the thread was Turrer Recoil.....try and find it somewhere:D
Title: Barrel Backlash
Post by: Krackers87 on September 19, 2003, 11:14:45 am
how about a flag that does it then?
Title: Barrel Backlash
Post by: Krackers87 on September 19, 2003, 11:24:38 am
Quote
Originally posted by Kazan
you could specify



quote:
--------------------------------------------------------------------------------

{ Scalar} Recoil Magnitude (m)
{ Scalar} Recoil Velocity (Vr)
{ Scalar} Return Velocity (Vc)

--------------------------------------------------------------------------------



in the subojbect properties


code:--------------------------------------------------------------------------------
$recoil_mag=10
$recoil_velocity=200
$recoil_return=50
--------------------------------------------------------------------------------


recoil mag being in game units (meters)
the other two being in game units per second (meters/sec)
Title: Barrel Backlash
Post by: Sesquipedalian on September 19, 2003, 11:25:11 am
No no, Krackers.  In order to make it work at all, a bunch of pof code would need to be rewritten, and as I understand it, doing so without breaking compatibility with all the currently existing pofs would not be easy.  It is the creation of the feature at all that is the issue, not how to implement it if it existed.
Title: Barrel Backlash
Post by: Woolie Wool on September 19, 2003, 12:28:06 pm
Yeah, but it would be cool to see the turbolasers in the SW Mod recoil.
Title: Barrel Backlash
Post by: Flaser on September 19, 2003, 01:02:54 pm
IIRC FS engine uses a static mesh object format - namly pof - with the exception of rotating parts (so you could create hangar doors), so it can use static data for collision detection.
A complicated code be created to handle axially moving parts, however your hands would still be tied as long as the current format is used. Moving on to a more dynamic format with numeral moving subobjects and a dynamic collision detection to go witht it would open up a huge range of possibilities.

The hard part would be converting all the old crafts, but even if I'm optimist enough to think that a simple converter could be devised, the huge work is still present that most of the base of rendering would have to be reworked, along with the already complicated collision code.

So you can ask for axially moving parts, but even coding those could lead to a range of problems, and doing the major new format would be a project as big as the DX8 branch or the HT&L, while such important things like AI upgrade or the new interface are still wainting to be created - without speaking of simulated speech or Bob's current projects.
Title: Barrel Backlash
Post by: Flipside on September 19, 2003, 01:18:47 pm
I think the main problem is that to the FS2 engine, there is no such thing as a 'Barrel'. There are rotating shapes(sometimes), based on a Normal, and there are firing points. You would have to create something in the Geometry of the ship to tell the Engine that 'this' group of polygons should be used for barrel recoil. This could be done, I think, like subsystems, so you would create a subobject called 'Barrel', and if the ship had this, it could 'recoil' when it shot? You would have to assign the barrel to a particular firing point though?

Flipside :D
Title: Barrel Backlash
Post by: LAW ENFORCER on September 19, 2003, 07:31:50 pm
its was originaly my thread (turret recoil) and I still want it bad :(
Title: Barrel Backlash
Post by: Deepblue on September 20, 2003, 04:53:07 pm
Speaking of hangar bay doors would it be possible to have a roundish door as a rotating subobject but be able to tie in how long or far it rotates before stopping?
Title: Barrel Backlash
Post by: Nico on September 20, 2003, 06:26:23 pm
Quote
Originally posted by Flipside
I think the main problem is that to the FS2 engine, there is no such thing as a 'Barrel'. There are rotating shapes(sometimes), based on a Normal, and there are firing points. You would have to create something in the Geometry of the ship to tell the Engine that 'this' group of polygons should be used for barrel recoil. This could be done, I think, like subsystems, so you would create a subobject called 'Barrel', and if the ship had this, it could 'recoil' when it shot? You would have to assign the barrel to a particular firing point though?

Flipside :D


if I'm not mistaken, all the "barrels" are objects named turretXXa.
Title: Barrel Backlash
Post by: StratComm on September 20, 2003, 10:49:25 pm
Barrels are named whatever the shipbuilder wants to name them.  I use turretarmxx, some people use turretxx-barrel, whatever.  You just have to set it up to use that model as the rotational subobject on a turret that already rotates.  TurretXXa though will give you a LOD'd turret.
Title: Barrel Backlash
Post by: Nico on September 21, 2003, 04:12:53 am
ah well, so I was mistaken :p