Bridge Commander Central

BC Forums => BC Scripting => Topic started by: Kirk on November 24, 2008, 08:46:12 PM

Title: Collisions problems - any way to remove them?
Post by: Kirk on November 24, 2008, 08:46:12 PM
Basically, I want to remove the ability to collide with objects and cause damage removed from the game. I know there is a mutator that comes with the game, but it doesn't always work. There have been instances where I spent a great deal of time setting up a picture, or a video scene, only to come out of edit mode and have half of my work blow up and collide with everything around it. So, how to I kill the collisions forever (or at least until I want them back?)
Title: Re: Collisions problems - any way to remove them?
Post by: MLeo on November 25, 2008, 01:26:32 PM
There are various ways.

There is the a -> b collision (dis|en)abling, which, btw, isn't the same as b -> a.

Then there is the "global" (ok, it's per set) disabling. And that's for anything -> anything, including phaser beams.


Ok, here is how you do it:

First way: pA.EnableCollisionsWith(pB, 0)
And you better also do:
pB.EnableCollisionsWith(pA, 0)

To enable them again use 1 instead of 0.

Then there is the following way:
pA.GetContainingSet().GetProximityManager().RemoveObject(pA)

Or, and this is what I think you want:
pA.GetContainingSet().SetProximityManagerActive(0)
Title: Re: Collisions problems - any way to remove them?
Post by: Dalek on November 25, 2008, 01:28:40 PM
Or...

When ingame (or out of QB), go to "Configure"--> "General". There should be Collisions, Subtitles, Character descriptions and Collsion Alert. There should be yellow or black holes in the boxes the text is in. If it's yellow, its on. If its black, its off.

If that is the mutator you wer talking about, weird. My BC always works with it off when its meant to be off.
Title: Re: Collisions problems - any way to remove them?
Post by: MLeo on November 25, 2008, 01:30:26 PM
It's possible that the Edit mode turns it on again after it's done. I can think of why it would turn it on again, it would first turn it off, and when it's done it turns it on again.

Do note that the edit mode was never to be used outside of Totally Games.
Title: Re: Collisions problems - any way to remove them?
Post by: tiqhud on November 25, 2008, 02:08:28 PM
Maybe EDIT mode will turn off collisions if he leaves it on[at the button] I don't know for sure, just something to try.
Title: Re: Collisions problems - any way to remove them?
Post by: MLeo on November 25, 2008, 02:12:13 PM
Maybe EDIT mode will turn off collisions if he leaves it on[at the button] I don't know for sure, just something to try.
Um, it's far more logical that it would just turn it off when it starts, and then turns it on when it stops.

That type of logic is, in 99% of all cases, really unlikely.
Title: Re: Collisions problems - any way to remove them?
Post by: vonfrank on November 30, 2009, 09:58:35 PM
With some large ships in the game, such as the Borg Cube, ships collide with them all of the time, especially if there are multiple Borg Cubes on the map at one time. to stop this i tried to turn collisions off but even though the button in the config menu is clearly off, the ships still collide with things sometimes.

is there a way to make all collisions go off when I want?
Title: Re: Collisions problems - any way to remove them?
Post by: 086gf on December 01, 2009, 01:08:02 PM
That button is for the player only. And I have already seen a thread for this in the scripting section.
Title: Re: Collisions problems - any way to remove them?
Post by: vonfrank on December 01, 2009, 01:19:19 PM
yes, i found that but i need a litle help with it still and i didn't want to revive the thread after a year of inactivity
Title: Re: Collisions problems - any way to remove them?
Post by: Nebula on December 01, 2009, 01:20:15 PM
That button is for the player only. And I have already seen a thread for this in the scripting section.

Are you sure about that?? I don't think it's player only.
Title: Re: Collisions problems - any way to remove them?
Post by: JimmyB76 on December 01, 2009, 02:06:10 PM
And I have already seen a thread for this in the scripting section.
please link to that thread, that one and this one could be merged together...

thx :)
Title: Re: Collisions problems - any way to remove them?
Post by: Dalek on December 01, 2009, 02:49:31 PM
It is player only. I always have collisions of yet I've always got friendly ships smashing into one another.
Title: Re: Collisions problems - any way to remove them?
Post by: vonfrank on December 01, 2009, 05:28:30 PM
It is player only. I always have collisions of yet I've always got friendly ships smashing into one another.

exactly. that's the problem right there!

enemy ships sometimes smash into eachother too. For example, i was DS9 and i was fighting 60 dominion ships. About 10 of the Dominion ships died from crashing into eachother while they were flying toward me. collisions were off and they could pass through me, but not eachother.

here is that other thread:
http://bc-central.net/forums/index.php/topic,4737.0.html
Title: Re: Collisions problems - any way to remove them?
Post by: JimmyB76 on December 01, 2009, 05:57:44 PM
*threads merged*

indeed - the collisions thing is a pain in the ass, surely there must be a way to solve it?
Title: Re: Collisions problems - any way to remove them?
Post by: Morgan on December 28, 2009, 11:20:41 PM
Aren't collisions handled by the game engine itself? If that's true there would be no way to modify them what so ever (at least legally)...