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
-
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.
-
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)
-
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.
-
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.
-
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)
-
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.
-
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.
-
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.
-
How do you shoot a ship having a nocollide flag?
-
How do you shoot a ship having a nocollide flag?
You don't. But maybe you can damage its shields?
-
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?
-
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.
-
It also may be possible to make a single quadrant shield (I've seen two quadrants ones).
-
It's the first Uestion I've seen on the entire forum.
-
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).
-
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.
-
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.
-
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.
-
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.
-
So what is the alternative?
-
So what is the alternative?
A four-quadrant shield.
-
I'm confused. He wants ships to collide but not collide?
-
I want a ship to collide with weapons but not with other ships(other ships pass through it).
-
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.
-
"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).