flare stuff :

flare stuff :

Discuss game development here, from a distinct game project to an accessible third-party mutator, down to the interaction and design of individual units if you like.

Moderator: Moderators

Post Reply
maestro
Posts: 352
Joined: 08 Jun 2005, 11:10

flare stuff :

Post by maestro »

FlareDelay
FlareDropVector float
FlareEfficiency float
FlareReload float
FlareSalvoDelay
FlareSalvoSize
FlareTime

Hi I wanna know how all those combined work
1. is the flareefficiency = flare 'hit probability' ?
2. Also flare do work only for guided weapon ?
3. Is the flareefficiency is for each flare (so if I have flaresalvo=4 with flareefficiency=50% mean 200% probability that the flare will stop the missile ?
4. Can we have custom model or even no model for the flare ?
5. thx in advance
Elmokki
Posts: 23
Joined: 30 Jun 2006, 22:13

Post by Elmokki »

While I don't generally know anything about this, I'd like to point out that if you have 4 chances that something happens at 50% chance it doesn't mean there's 200% chance it happens. You could well not get any tails with 4 coins, and the probability of getting tails if you throw a coin is approximately 50%.

The formula would be 1-(0.5x0.5x0.5x0.5) = 93.75% to stop the missile.
maestro
Posts: 352
Joined: 08 Jun 2005, 11:10

Post by maestro »

weird math... that is the permutation combination right ?
why not 200% ? I dont understand math very well (actually I dont understand math at all and have trouble counting number of my fingers :shock: )
Elmokki
Posts: 23
Joined: 30 Jun 2006, 22:13

Post by Elmokki »

Heavily edited:

If you have a flare, it has 50% chance to succeed. Well, if it didn't succeed, you have a second one with 50% succeed. The chance for you using two flares and not succeeding is 0.5*0.5, because if first flare succeeded you wouldn't be calculating any more, and since the chance to not succeed is 50%, it's 0.5. Second flare is 0.5 too, if you didn't succeed with the first you have a 50% chance to not succeed with the second in the same manner. When you continue this, you get 0.5*0.5*0.5*0.5 or 0.5^4

So, that, or 0.0625 = 6.25%, is the probability of none of the four flares succeeding in fending off a missile. "Atleast one flare succeeds" means the same as "all of the flares do not fail", chance of all flares failing is 6.25%, negative of that (the not part of the later sentence) is 1 - 6.25% = 1 - 0.0625 = 0.9375 = 93.75%

That's probably the best I can explain with my english :)
Last edited by Elmokki on 01 Jan 2007, 04:54, edited 2 times in total.
User avatar
ILMTitan
Spring Developer
Posts: 410
Joined: 13 Nov 2004, 08:35

Post by ILMTitan »

There is a 50% chance the missile gets past the first flare. Then there is a 50% chance the missile gets past the second flare, meaning a 0.5*0.5 chance it gets past both flares. Keep going, and you see that there is a 0.5*0.5*0.5*0.5 chance of getting past all flares.

The missile will only get past the flares or not, so the chance of that is 100%, or 1.

To get the probability that the missile does not get past the flares, we take the probability that it does or does not and subtract the probability that it does, leaving only the probability that the missile was intercepted: 1 - .5*.5*.5*.5.

Edit: Beaten to it. Dag nabitt.
User avatar
PauloMorfeo
Posts: 2004
Joined: 15 Dec 2004, 20:53

Post by PauloMorfeo »

What they said.

You have 50% change the missile will miss. That is, divide 1 with 2 (or multiply with 0,5). If he still goes to target, you devide those chances with 2 again, and so on until ala flares are used, that is, you do not add them, the probability of the folowing is a continuation of the previous.
Post Reply

Return to “Game Development”