Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: x3110 on June 16, 2010, 09:49:12 am

Title: uestion about Missing textures Behaviour.
Post by: x3110 on June 16, 2010, 09:49:12 am
Well,i have noticed that when a texture is missing from a model the game engine lets weapons fire pass the model but does not allow ships(They just collide with nothing).
I haven't got a problem with that,but I wanted to know can we alter this behavior(or just add a feature request),I want a model flag that enables ships to pass through the model but stops everything else i.e.weapons.

Is this possible.I see a great future in this type of models as capital ship sheilds(you could just enlarge the model a little bit,set an invisible texture,set the abovementioned flag and place the model over the orignal model in fred).My point is that type of sheild could also stop beams).
Please bring me down to earth if I'm dreaming too wildly :)!

In summary:

I would like to design a ship which is uncollideable but weapons still impact it.
Title: Re: Question about Missing textures Behaviour.
Post by: Nx on June 16, 2010, 09:55:37 am
Well,i have noticed that when a texture is missing from a model the game engine lets weapons fire pass the model but does not allow ships(They just collide with nothing).
I haven't got a problem with that,but I wanted to know can we alter this behavior(or just add a feature request),I want a model flag that enables ships to pass through the model but stops everything else i.e.weapons.

Is this possible.I see a great future in this type of models as capital ship sheilds(you could just enlarge the model a little bit,set an invisible texture,set the abovementioned flag and place the model over the orignal model in fred).My point is that type of sheild could also stop beams).
Please bring me down to earth if I'm dreaming too wildly :)!

There's a command line option to stop beam piercing. There's also this weapons.tbl flag (http://www.hard-light.net/wiki/index.php/Weapons.tbl#.22no_pierce_shields.22)
Title: Re: uestion about Missing textures Behaviour.
Post by: x3110 on June 16, 2010, 09:59:20 am
That is way off the topic.
I did not ask aout that.
Perhaps you cannot understand my post.

Just for better understanding of my concept-
I would like to design a ship which is uncollideable but weapons still impact it.
Title: Re: uestion about Missing textures Behaviour.
Post by: Nx on June 16, 2010, 10:03:19 am
That is way off the topic.
I did not ask aout that.
Perhaps you cannot understand my post.

Just for understanding the my concept-
I would like to design a ship which is uncollideable but weapons still impact it.

From what I understood you want to use that "ship" as a shield over another ship, right? But why when you can just have a shield mesh on a ship?

Btw, there's  no_collide (http://www.hard-light.net/wiki/index.php/Ships.tbl#.22no_collide.22), but I don't know how that works with shields.
Title: Re: uestion about Missing textures Behaviour.
Post by: x3110 on June 16, 2010, 10:19:22 am
Well then shields don't stop beams,do they :confused:?
I want beams fire to be stopped by shields as well.
 and I have a couple of more uses for them.
(A light textuxe on that model can make a mystery subspace ship,for example)
Title: Re: uestion about Missing textures Behaviour.
Post by: Nx on June 16, 2010, 10:24:26 am
Well then shields don't stop beams,do they :confused:?
I want beams fire to be stopped by shields as well.
 and I have a couple of more uses for them.
(A light textuxe on that model can make a mystery subspace ship,for example)

That's what the no pierce shields (http://www.hard-light.net/wiki/index.php/Weapons.tbl#.22no_pierce_shields.22) flag is for.

Also, armor.tbl (http://www.hard-light.net/wiki/index.php/Armor.tbl), if you want to do complicated stuff.
Title: Re: uestion about Missing textures Behaviour.
Post by: x3110 on June 16, 2010, 10:29:17 am
I think the pierce shields flag makes ships with shields invincible for beams?(Correct me if wrong)
Also,i am more interested in it's other uses.
Title: Re: uestion about Missing textures Behaviour.
Post by: Nx on June 16, 2010, 10:31:09 am
I think the pierce shields flag makes ships with shields invincible for beams?(Correct me if wrong)
Also,i am more interested in it's other uses.

No, they are still damaged by beams.
For the other uses a suggest you try the no_collide flag.
Title: Re: uestion about Missing textures Behaviour.
Post by: x3110 on June 16, 2010, 10:36:43 am
How do you shoot a ship having a nocollide flag?
Title: Re: uestion about Missing textures Behaviour.
Post by: Nx on June 16, 2010, 10:38:46 am
How do you shoot a ship having a nocollide flag?

You don't. But maybe you can damage its shields?
Title: Re: uestion about Missing textures Behaviour.
Post by: x3110 on June 16, 2010, 10:43:22 am
but,i want to use it for other purposes.
for example:A light textuxe on that model can make a mystery subspace ship.I also got other hidden uses for it.I just wantted to know if it is possible?
Title: Re: uestion about Missing textures Behaviour.
Post by: FreeSpaceFreak on June 16, 2010, 11:40:51 am
Uncollideable, but weapons still impact it? Shields do that. You can make them not recharge via ships.tbl, and if you're fine with it having four quadrants, you can just make a ship with the "invisible" texture and a shield.

Or, do you want the hull of the ship to be visible but fly-through? In that case, use the $nocollide_this_only flag on the detail0 subobject and kill the ship via SEXP when its shields are down. Or something.
Title: Re: uestion about Missing textures Behaviour.
Post by: Dragon on June 16, 2010, 03:50:26 pm
It also may be possible to make a single quadrant shield (I've seen two quadrants ones).
Title: Re: uestion about Missing textures Behaviour.
Post by: Colonol Dekker on June 16, 2010, 03:59:04 pm
It's the first Uestion I've seen on the entire forum.
Title: Re: uestion about Missing textures Behaviour.
Post by: x3110 on June 16, 2010, 10:08:32 pm
I figured eccentricity will gather more attention so i left out the Q
And how can you create a single Quadrant shield?
Where did you see 2 Quadrant shield?
How and where do i use the nocollide this only--in model properties or table file(please answer tables).
Title: Re: uestion about Missing textures Behaviour.
Post by: FreeSpaceFreak on June 17, 2010, 01:06:42 am
How and where do i use the nocollide this only--in model properties or table file(please answer tables).
Nope, in model properties :P

Open the model in PCS2, look at the list on your left - under "Subobjects", select something named like "detail0" or "hulla". It should be the most detailed version of the ship, which you see by default. With that selected, look at the white box to your right, and type $nocollide_this_only in it. Repeat for every subobject (turrets and stuff) that you do not want to collide with. Save and close.

BUT, like Starwolf1991 recently discovered, this may not work as expected. Using $nocollide_this_only on the main hull may affect the shields as well. This is probably a bug in the engine which you'll have to work around, or wait till it gets fixed.
Title: Re: uestion about Missing textures Behaviour.
Post by: Wanderer on June 17, 2010, 01:40:14 am
Single and two quadrant shields (as well as some other shield changes) are not in trunk - that is they are in the code base in an outdated branch but not in the main code base that is most often used.
Title: Re: uestion about Missing textures Behaviour.
Post by: x3110 on June 17, 2010, 08:02:01 am
So what should i do?
(I like the 1 shield Quadrant idea but warderer's comment went way above my head,i couldn't understand anything.Please elaborate.
Title: Re: uestion about Missing textures Behaviour.
Post by: The E on June 17, 2010, 08:04:27 am
He was simply saying that 1- or 2-quadrant shields have been implemented, but that the code is not publically available at the moment. So you won't be able to use them.
Title: Re: uestion about Missing textures Behaviour.
Post by: x3110 on June 17, 2010, 09:20:53 am
So what is the alternative?
Title: Re: uestion about Missing textures Behaviour.
Post by: FreeSpaceFreak on June 17, 2010, 12:01:57 pm
So what is the alternative?
A four-quadrant shield.
Title: Re: uestion about Missing textures Behaviour.
Post by: Aardwolf on June 18, 2010, 01:06:26 am
I'm confused. He wants ships to collide but not collide?
Title: Re: uestion about Missing textures Behaviour.
Post by: x3110 on June 19, 2010, 08:04:23 am
I want a ship to collide with weapons but not with other ships(other ships pass through it).
Title: Re: uestion about Missing textures Behaviour.
Post by: Trivial Psychic on June 19, 2010, 08:56:22 am
In Star Trek terms, he wants his ship to be equipped with a Molecular Phase Inverter (but no cloak), bit it still maintains a shield projected into standard universal phase.
Title: Re: uestion about Missing textures Behaviour.
Post by: Jeff Vader on June 19, 2010, 09:00:22 am
"If you uncouple the Heisenberg compensator and reverse the quantum flux capacitor and boost the annular confinement beam..." No wait.

Basically that sounds like the "cloaking device" or somesuch in Kops (http://jet.ro/kops/index.html).