Minefield Formula

Questions / Announcements area for beta tests of Allegiance's future updates.
Xeretov
Posts: 1633
Joined: Sat Nov 24, 2007 5:50 pm
Location: Canada

Post by Xeretov »

Edit: Solved, thanks guys.

When one of you who can understand the code (I don't) has time for this, I need you to look up the formula that calculates mine damage for me.

I found this in an old cadet post:QUOTE Damage = ( 1 - exp( -Amount / Max Endurance ) ) * Current Endurance
where: Amount = timeInMines * shipSpeed^2 * minePower * shipRadius^2 / ( 5000.0 * mineRadius )[/quote]
I've got everything there figured out except "exp". For that I cannot find an answer as to what the variable is based off of. It definitely changes based on some of the mine stats in the core, but which ones and how are a mystery.
Last edited by Xeretov on Wed Aug 25, 2010 11:21 pm, edited 1 time in total.
FreeBeer
Posts: 10902
Joined: Tue Dec 27, 2005 8:00 am
Location: New Brunswick, Canada

Post by FreeBeer »

I'm no C or C++ person, but that should probable be the exponent (base e).
[img]http://www.freeallegiance.org/forums/st ... erator.gif" alt="IPB Image">

chown -R us base
Xeretov
Posts: 1633
Joined: Sat Nov 24, 2007 5:50 pm
Location: Canada

Post by Xeretov »

Exponential would make sense. That still doesn't help me though because I'm not sure what to do with it. Edit: Math is not something I'm good with so bear with me if I'm missing something obvious.

What I'd like here is a method (even another formula I can use) to get a value for exp or what/how its supposed to affect so I can plug in the rest of the values for the mine equation and get a number.
Last edited by Xeretov on Wed Aug 25, 2010 10:50 pm, edited 1 time in total.
snufkin
Posts: 388
Joined: Sat Dec 29, 2007 11:38 pm
Location: starbase ialthar

Post by snufkin »

exp(x) is e^x which is approximately 2.7^x
Image
Xeretov
Posts: 1633
Joined: Sat Nov 24, 2007 5:50 pm
Location: Canada

Post by Xeretov »

I think I've got it figured out now.

Thanks FreeB & Snufkin for your help. :cool:
juckto
Posts: 2332
Joined: Sat Jul 30, 2005 7:00 am
Location: NZ

Post by juckto »

Awwww. I was hoping for an interesting discussion about

Image
Usually though, "skill" is used to covertly mean "match the game exactly to my level of competence." Anyone who is at all worse than me should fail utterly (and humorously!) and anyone better is clearly too caught up in the game and their opinions shouldn't count.
TheBored
Posts: 4680
Joined: Thu Jun 24, 2004 7:00 am
Location: At my desk staring at my monitor...

Post by TheBored »

Can you fix your first post so people searching for this in the future will have an answer?

TB
Image
spideycw wrote:QUOTE (spideycw @ Nov 28 2008, 02:50 PM) All the retards are contained in one squad mostly (System X)
[18:48] <Imago> dont take me seriously
madpeople
Posts: 4787
Joined: Tue Dec 16, 2003 8:00 am
Location: England

Post by madpeople »

would it be something suitable for the wiki?
lexaal
Posts: 2612
Joined: Sun Oct 07, 2007 12:58 pm

Post by lexaal »

You want a rough estimate of how much damage a mine does, compared to guns and missiles?
I have a johnson photo in my profile since 2010.
Seymor
Posts: 342
Joined: Sun Nov 20, 2005 8:00 am
Location: Infiltrating a Women's Prison

Post by Seymor »

I recall an excel sheet that calculated how much damage you take going through a minefield. I believe MadP was the creator of that and it may have been lost. If it has been lost, consult pkk.
Image
All in all you are a very dying race // Placing trust upon a cruel world. // You never had the things you thought you should have had //
And you'll not get them now, // And all the while in perfect time // Your tears are falling on the ground. -- Squonk, Genesis
Post Reply