Author Topic: Rear guns, side guns, ect  (Read 3757 times)

0 Members and 1 Guest are viewing this topic.

Rear guns, side guns, ect
anyone remember this... http://www.hard-light.net/forums/index.php/topic,14662.0.html

?

I was thinking (and it hurt) that someone or someones might wanna take a closer look at the Corcksrew code and maybe find out why exactly this happens.  This being weapons firing down or up... if they have no homing... and they have corkscrew properties set.

Maybe with some (severe?) tweaking of the corkscrew code, one might be able to create side guns or rear guns... which would be something we've all wanted for along time, right?

i got 3 hours of sleep.
Rayquaza?¿

 

Offline Lynx

  • 211
Rear guns, side guns, ect
That could also be achieved by modifying the code for the firing points. Right now, they can only fire straight forward, but I don't think it should be terribly hard to do that. That would allow such guns like the "Schräge Musik". In World War 2nd some german fighters had cannons installed that were pointing upwards. They attacked allied bombers with them while they stayed under them, in the blind spot where the defense guns couldn't reach them.
Give a man fire and he'll be warm for a day, but set fire to him and he'll be warm for the rest of his life.

 

Offline Taristin

  • Snipes
  • 213
  • BlueScalie
    • Skelkwank Shipyards
Rear guns, side guns, ect
Or you could just cut engines, turn up, and fire... :rolleyes:
Freelance Modeler | Amateur Artist

 

Offline Galemp

  • Actual father of Samus
  • 212
  • Ask me about GORT!
    • Steam
    • User page on the FreeSpace Wiki
Rear guns, side guns, ect
I think this would be better implemented if the game paid attention to the POF's firepoint normals, so angled guns could be made on a per-model basis.
"Anyone can do any amount of work, provided it isn't the work he's supposed to be doing at that moment." -- Robert Benchley

Members I've personally met: RedStreblo, Goober5000, Sandwich, Splinter, Su-tehp, Hippo, CP5670, Terran Emperor, Karajorma, Dekker, McCall, Admiral Wolf, mxlm, RedSniper, Stealth, Black Wolf...

 
Rear guns, side guns, ect
This would certainly be the Right Way to do things.

The only problem with this is that the FS2 models (and probably a lot of homebrew pofs too) were designed with the expectation that the engine would ignore the firepoint normal.  Thus, many models, especially Volition ones, have normals that are reversed, and there are probably ones that are pointing all sorts of odd directions, too/

It'd probably be possible to write a small little something to give all firepoints a (0,0,1) normal, then just run a list of pofs through this.


On a related note, how much useless junk (old, ignored, or outdated stuff) is there in the pof file structure?  It seems like it might be a lot!  For example, are precalculated light points used?  Is the moment of inertia matrix used, and if so, how is it different from the center of mass vector?  We already know that the firepoint normals are ignored....

 

Offline Nuke

  • Ka-Boom!
  • 212
  • Mutants Worship Me
Rear guns, side guns, ect
id like to implement gun convedrgence on ships. by default all normals on all of volitions ships are 0'0'1, all the moding tools also default the normal to 0'0'1. this means that making the game use that data would not require a massive overhaul of all the ships, just the ones that we want to have convergence on.

since someone brought it up, one problem i have with corkscrew flag is that homing is required to use it. id like a +no homing: tag to be added that will cause the missile to corkscrew without requiring homing.
I can no longer sit back and allow communist infiltration, communist indoctrination, communist subversion, and the international communist conspiracy to sap and impurify all of our precious bodily fluids.

Nuke's Scripting SVN

 
Rear guns, side guns, ect
No, the problem is that not all normals on Volition ships ARE 0,0,1.  Take a look at some models, like the Herc II, and you'll see.  These model bugs probably got overlooked simply because the model code ignored these normal values, and used 0,0,1.

Now, it doesn't require a _massive_ overhaul of all the ships, but it does require some correction.  A python script could fix this inside of fifty lines (for example).

By "gun convergence", do you mean that the normal is skewed slightly inward, but by some fixed amount, or that the normals of all guns are variable, so that their lines of fire converge on the target, regardless of its distance from you?

If the first, I'm not sure what benefit that'd get you, because the skew would have to be so small that it'd hardly be noticable.  If the second, you can still go around ignoring all the firepoint normals, like now.

However, I think the original question was about guns that fired in different directions, like backwards and such.

 

Offline Nuke

  • Ka-Boom!
  • 212
  • Mutants Worship Me
Rear guns, side guns, ect
simple solution (from a modders perspective anyway), add a use normals flag to ships table entries, any ship with that tag will use the normals specified in the pof file, any ship without it would just do things the old way.
I can no longer sit back and allow communist infiltration, communist indoctrination, communist subversion, and the international communist conspiracy to sap and impurify all of our precious bodily fluids.

Nuke's Scripting SVN

  

Offline WMCoolmon

  • Purveyor of space crack
  • 213
Rear guns, side guns, ect
IMHO, you should just have to change the normals, not add any flags. There're already a lot of new flags, and every 32 flags multiplayer has to be broken.
My suggestion would be to include an option in the launcher to set all ship normals in a vp/directory to 0-0-1, so people can fix ship normals themselves.

Or, the POF version # could be advanced and the normals on older POFs ignored (as usual).
-C

 

Offline Galemp

  • Actual father of Samus
  • 212
  • Ask me about GORT!
    • Steam
    • User page on the FreeSpace Wiki
Rear guns, side guns, ect
Or we could include models with fixed firepoints in the media VP and make it mandatory.
"Anyone can do any amount of work, provided it isn't the work he's supposed to be doing at that moment." -- Robert Benchley

Members I've personally met: RedStreblo, Goober5000, Sandwich, Splinter, Su-tehp, Hippo, CP5670, Terran Emperor, Karajorma, Dekker, McCall, Admiral Wolf, mxlm, RedSniper, Stealth, Black Wolf...

 
Rear guns, side guns, ect
Two problems.

One: not sure about the legality of distributing trivially-modified Volition data.  (I.e., I'm pretty sure it's not legal.)

Two: It's stupid to give out megabytes upon megabytes of stuff when maybe no more than 50 bytes per fighter model need changing.


It reeks of a hack, but a tbl flag is probably a better way to deal with this.  Least amount of effort, most effective, eliminates duplicated data, backward compatable, etc, with minor cost in code cruftiness.

 

Offline LAW ENFORCER

  • Turret Fiend
  • 210
    • http://www.armouredstar.com
Rear guns, side guns, ect
whatever, we need guns that point diffrent ways and convergene why? cos its new!! we NEED it!:p :rolleyes:

Really it would be useful for, like, tons of fighters that are just asking for backwards firing missiles (anyone wanna get asspect seeking based on normals rather than ship direction?:D )
Conflict GRDLA:
Operation Return To Riker
www.ARMOUREDSTAR.com - the latest site is not finished yet!
[What we have here is the source to the Freespace ENGINE, not the Freespace GAME. By allowing the ENGINE to support all kinds of cool stuff, we're allowing the creation of all new GAMES] - TurboNed

 
Rear guns, side guns, ect
One side of me sees this feature being used only sparingly.  And it would get very tiresome if it were used alot.

The other side is driven mad by the fact that there is this data in the pof that is never being used.  Further, at least for gunpoints, this is an easy feature to add.  (For missle points it'll probably be harder, because of the "locking" code.  At the very least it will have to fire missiles the way missle turrets fire missles: without locking.)

 

Offline Nuke

  • Ka-Boom!
  • 212
  • Mutants Worship Me
Rear guns, side guns, ect
i think we will need to tweak the fire control code so we could have more weapons banks. possibly implement tertiary slots as well. it would look kinda crappy to have guns firing in multiple directions in one bank. for convergence all this stuff is not nessisary, but if we want to have aft guns and stuff like that then it is required. it would also be cool if we could get a rearview rendering in the targeting box as well, complete with aft lead indicator.
I can no longer sit back and allow communist infiltration, communist indoctrination, communist subversion, and the international communist conspiracy to sap and impurify all of our precious bodily fluids.

Nuke's Scripting SVN

 

Offline Lightspeed

  • Light Years Ahead
  • 212
Rear guns, side guns, ect
nah, no rear view.

And putting aspect missiles in the back slot could simply make them useless -- they lock on the target you have selected (so its in front of you) and theyll fire, try to turn and lose the lock... After all they're 'video locked' so you should only be able to use heat seeking and dumbfire missiles on any rear slots.

I think rear firing missiles could be somewhat useful whereas things like side guns are pretty useless.

As for the # of banks. Yes, it would be useful to be able to have more than 2 banks -- take a look at the seraphim bomber for example. It has 3 Primary Weapon Banks. The player can take the ship, will not be able to use one of the weapon banks though. :)
Modern man is the missing link between ape and human being.

 

Offline Flipside

  • əp!sd!l£
  • 212
Rear guns, side guns, ect
Well, I suppose what we really need is a 'Mine' tag for models, where you can specify activation radius, blast range/force etc ;) That way you would have a really good use for rear missile launchers ;) (yes, I know you can do that with Sexp's, but if you ever flew an anti 'mine' mission in Xwing or the like, you'd know how long it would take to do it properly :D )

Flipside

 

Offline LAW ENFORCER

  • Turret Fiend
  • 210
    • http://www.armouredstar.com
Rear guns, side guns, ect
I was hoping to have a gunship with side fireing "SunStorm" Photon Charges from the side at cap ships...

side guns/missiles WILL be useful to someone, trust me:yes:
Conflict GRDLA:
Operation Return To Riker
www.ARMOUREDSTAR.com - the latest site is not finished yet!
[What we have here is the source to the Freespace ENGINE, not the Freespace GAME. By allowing the ENGINE to support all kinds of cool stuff, we're allowing the creation of all new GAMES] - TurboNed

 
Rear guns, side guns, ect
Quote
Originally posted by LAW ENFORCER
I was hoping to have a gunship with side fireing "SunStorm" Photon Charges from the side at cap ships...

side guns/missiles WILL be useful to someone, trust me:yes:


Yes this is what I need for my total convertion alonge with a wav  like flag that makes the Beam cannon effect Curve in an arch but still hit the other ship for me Gothin Lightning anti-capship gun.
« Last Edit: August 09, 2003, 06:25:18 pm by 194 »
The Ancients a old and proud reace, one that is not all alone, and I am not one of them, but I am Nouben.