Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: magatsu1 on March 04, 2004, 03:05:27 pm

Title: Turret Default Position
Post by: magatsu1 on March 04, 2004, 03:05:27 pm
Is it really necessary to have turret barrels standing to attention at the start of a mission ?
Could they be set to say, mid elevation or something ?

Venom mentioned this in the mod forum and my P & J 'vette would look better with barrels in the forward position.
Title: Turret Default Position
Post by: redmenace on March 04, 2004, 03:08:18 pm
HAHAHAHAHAHA
:lol:
http://www.hard-light.net/forums/index.php/topic,13424.0.html
sorry but this has alot to do with the AI code. Currently none of the coders on staff wish to loose their minds about trying and get that to work. The AI code is way to complex. I heard it resembles spagetti.
Title: Turret Default Position
Post by: magatsu1 on March 04, 2004, 03:16:54 pm
guess that's a negative then.:doubt:
Title: Turret Default Position
Post by: redmenace on March 04, 2004, 03:19:36 pm
I wish it were easier to implement personally. I hate seeing the turrets on a nova point straight up and down in the air.
Title: Turret Default Position
Post by: magatsu1 on March 04, 2004, 03:26:53 pm
Feck.
Title: Turret Default Position
Post by: Kazan on March 04, 2004, 03:28:49 pm
if we could find an instruction to TELL the AI subsystem to make them change their position
Title: Turret Default Position
Post by: redmenace on March 04, 2004, 03:33:18 pm
what are the chances that there is one?
Title: Turret Default Position
Post by: Kazan on March 04, 2004, 03:44:50 pm
between zero and none
Title: Turret Default Position
Post by: Flipside on March 04, 2004, 03:56:14 pm
It's a pity they can't be made to track the nearest enemy but just not fire until the enemy are in range, yes the mission would start with erect guns, but they'd soon move :D
Title: Turret Default Position
Post by: redmenace on March 04, 2004, 04:38:12 pm
I am guessing that it would require rewriting the entire AI turret code much less any code refering to the turrets, which is far and wide. One reason to support ferrium.
Title: Turret Default Position
Post by: Nuke on March 04, 2004, 05:23:34 pm
would it be possible to give the turret a dummy targer to follow, kinda trick the turret ai to point at something that doesnt really exist. during WWII bomber gunners were ordered to keep their turrets moving, to prevent being taken by supprise. it would be nice to be able to make the turrets scan the sky when they are not in use.

alternitavely i dont see why turret ai needs to be all that complex, they just need to know how to lead and when to shoot. would it be possible to make new turret ai from scratch to allow for more versitility.
Title: Turret Default Position
Post by: Rga_Noris on March 04, 2004, 06:19:20 pm
Quote
Originally posted by Flipside
It's a pity they can't be made to track the nearest enemy but just not fire until the enemy are in range, yes the mission would start with erect guns, but they'd soon move :D


Erm, bad idea. Let's say we have a Herc approaching a Fenris from 3 clicks off. One of its turrets starts the out-of-range tracking bit. Then a Perseus jumps in 1 click off and eleminates the turret, because the turret was far too busy tracking an out-of-range Herc then the now-in-range Pegasus.

But I guess it would look cool, or if it just prioritized and tracked the closest one.

--Rga
Title: Turret Default Position
Post by: redmenace on March 04, 2004, 06:20:48 pm
it is on a low list of priorities for the SCP
Title: Turret Default Position
Post by: Bobboau on March 04, 2004, 06:35:51 pm
I have an idea of how to fix this, but I'm not going to do it for a while (and it would require exsisting models to be edited)
Title: Turret Default Position
Post by: redmenace on March 04, 2004, 06:46:26 pm
how much editing?
Title: Turret Default Position
Post by: Bobboau on March 04, 2004, 06:50:25 pm
adding a

$defalt_ang: 0,0,0
(pitch bank roll)

to the submodel's properties
Title: Turret Default Position
Post by: KARMA on March 04, 2004, 07:59:31 pm
can't you define a "rest position" whith the turretts facing 90° to normal in the direction of the viewpoint normal and switch between "rest position" and "attack position" (the common one with turretts pointing up/backward) depending if an enemy is in range?
I suppose that like all the apparently easy solutions there will be n^10 lines of code to check:)
Title: Turret Default Position
Post by: KARMA on March 04, 2004, 08:00:06 pm
double post
Title: Turret Default Position
Post by: Goober5000 on March 04, 2004, 08:14:01 pm
It might be a complicated fix, it might be an easy fix.  I have an idea too,  but we're not going to look into this until after 3.6.
Title: Turret Default Position
Post by: redmenace on March 04, 2004, 08:30:23 pm
Quote
Originally posted by Bobboau
adding a

$defalt_ang: 0,0,0
(pitch bank roll)

to the submodel's properties

*dumb question*
Unless other wise specified in the POF, the code would assume it is the standard position of up and down right? Or would we have to edit all models?
Obviously, it would be considerably past 3.6 in my mind though.
Title: Turret Default Position
Post by: Bobboau on March 04, 2004, 08:53:35 pm
defalt ang would be reletive to what you have it in the model, you would still make your models with the turret in the center position, but in game they would get pushed down into a position reletive to the center position
Title: Turret Default Position
Post by: redmenace on March 04, 2004, 09:11:17 pm
oh ok, I see what you want to do, but will we have to edit all the V models?
Title: Turret Default Position
Post by: Bobboau on March 04, 2004, 09:51:13 pm
no
Title: Turret Default Position
Post by: diamondgeezer on March 04, 2004, 10:42:00 pm
Bobboau, this large bunch of bananas (http://www.maria-brazil.org/newimages/bananas.jpg) can be yours if you can sort this turret thing :nod:
Title: Turret Default Position
Post by: redmenace on March 04, 2004, 10:49:36 pm
sort it out AFTER 3.6 though :D
Though this is very productive thread.
I think we should close the subject till after 3.6 is released.
If that sounds stupid, shoot me.
Title: Turret Default Position
Post by: Goober5000 on March 05, 2004, 12:42:38 am
Redmenace said it.