Fighters vs. Nukes

General discussion about Defcon

Moderator: Defcon moderators

microchip08
level5
level5
Posts: 1186
Joined: Fri Aug 31, 2007 4:37 pm
Contact:

Fighters vs. Nukes

Postby microchip08 » Tue Nov 29, 2011 8:05 pm

The age-old question of lore has been answered!

Code: Select all

 static int s_attackOdds[ WorldObject::NumObjectTypes ] [ WorldObject::NumObjectTypes ] =

                                                /* ATTACKER */

                                    /* INV CTY SIL RDR NUK EXP SUB SHP AIR FTR BMR CRR TOR SAU*/

                                    {   
                                        0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  // Invalid
                                        0,  0,  0,  0, 99,  0,  0,  0,  0,  0,  0,  0,  0,  0,  // City
                                        0,  0,  0,  0, 99,  0,  0,  0,  0,  0,  0,  0,  0, 50,  // Silo
                                        0,  0,  0,  0, 99,  0,  0,  0,  0,  0,  0,  0,  0, 50,  // Radar
                                        0,  0, 25,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  // Nuke            DEFENDER
                                        0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  // Explosion
                                        0,  0,  0,  0, 99,  0, id, 30,  0,  3, 25, 30,  0, 50,  // Sub
                                        0,  0,  0,  0, 99,  0, 20, id,  0, 10, 25,  0,  0, 50,  // BattleShip
                                        0,  0,  0,  0, 99,  0,  0,  0,  0,  0,  0,  0,  0, 50,  // Airbase
                                        0,  0, 10,  0,  0,  0,  0, 30,  0, id,  0,  0,  0, 50,  // Fighter
                                        0,  0, 10,  0,  0,  0,  0, 20,  0, 30,  0,  0,  0, 50,  // Bomber
                                        0,  0,  0,  0, 99,  0, 20, 20,  0, 10, 25,  0,  0, 50,  // Carrier
                                        0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  // Tornado
                                        0,  0, 10,  0,  0,  0,  0, 10,  0, 10,  0,  0,  0,  0,  // Saucer
                                    };


    return s_attackOdds[ defenderType ][ attackerType ];

 // id = 10
Last edited by microchip08 on Mon Dec 12, 2011 6:23 pm, edited 1 time in total.
User avatar
tllotpfkamvpe
level5
level5
Posts: 1768
Joined: Fri Aug 31, 2007 12:04 am
Contact:

Postby tllotpfkamvpe » Tue Nov 29, 2011 8:20 pm

So explosions and nukes can not kill fighters or bombers. Something is not right here.
Why?
level5
level5
Posts: 1371
Joined: Thu Jun 26, 2008 11:34 pm
Location: Verona

Postby Why? » Wed Nov 30, 2011 2:02 pm

I think 'saucer' is the part of the explosion that can kill fighters, bombers, etc. The center point(Nuke) has the highest damage(99), and then the outer ring(saucer) has half the damage(50)... and cant hurt anything but other nukes and cities.

I don't understand what role the tornado plays, tho.... Tornados in defcon?
Why?
level5
level5
Posts: 1371
Joined: Thu Jun 26, 2008 11:34 pm
Location: Verona

Postby Why? » Wed Nov 30, 2011 2:08 pm

Since 'explosions' and 'tornados' do no damage on this table, maybe they are just visual effects that are already tied in with other damages. i.e. Nuke and saucer could be the bounds of damage for a nuke, and explosion could be the animation.

Still not sure about 'tornado', tho.... maybe it's the animation that causes AA fire, and fighters, to spiral like a tornado?
User avatar
xander
level5
level5
Posts: 16869
Joined: Thu Oct 21, 2004 11:41 pm
Location: Highland, CA, USA
Contact:

Postby xander » Wed Nov 30, 2011 4:31 pm

Why? wrote:Since 'explosions' and 'tornados' do no damage on this table, maybe they are just visual effects that are already tied in with other damages. i.e. Nuke and saucer could be the bounds of damage for a nuke, and explosion could be the animation.

Still not sure about 'tornado', tho.... maybe it's the animation that causes AA fire, and fighters, to spiral like a tornado?

Or they are things that were never fully implemented in the final version of the game.

xander
User avatar
trickser
level5
level5
Posts: 1826
Joined: Thu Mar 06, 2008 2:15 pm
Location: The Senate ; GMT+1
Contact:

Postby trickser » Wed Nov 30, 2011 7:11 pm

I doubt the relevance of the table. I know for sure nukes will kill bombers, while the table says otherwise.
microchip08
level5
level5
Posts: 1186
Joined: Fri Aug 31, 2007 4:37 pm
Contact:

Postby microchip08 » Wed Nov 30, 2011 8:29 pm

trickser wrote:I doubt the relevance of the table. I know for sure nukes will kill bombers, while the table says otherwise.


I assume that the nuke detonations are covered elsewhere, and this merely deals with the nukes whilst they are in transit (but I haven't checked).

Why? wrote:'tornado'


There's an unused tornado texture in the game. According to IRC yesterday, it's simple to reimplement (apart from the small matter of crashing the client). There's also unused code regarding alien attacks on cities ("ALIEN ATTACK ON LONDON, 12.2M DEAD"). Obviously, these are both features that were abandoned in alpha.[size=0] <snuggles xander>[/size]
User avatar
tllotpfkamvpe
level5
level5
Posts: 1768
Joined: Fri Aug 31, 2007 12:04 am
Contact:

Postby tllotpfkamvpe » Wed Nov 30, 2011 8:43 pm

It could be the game knows when certain things are hit. When a nuke reaches a city it is classed as a hit, 99 odds damage. Same with ships, I remember steam version of defcon can actually keep track of how many ships are killed by sea nukes.

With planes the game doesn't know, it just assumes nuke landed somewhere on the map thats not a city, airbase, radar etc. So why do they still die?

Is explosion what causes splash damage?
User avatar
tllotpfkamvpe
level5
level5
Posts: 1768
Joined: Fri Aug 31, 2007 12:04 am
Contact:

Postby tllotpfkamvpe » Wed Nov 30, 2011 9:27 pm

Besides, fighters can kill nukes. They kill bombers which carry nukes therefore they kill nukes. Since all nukes are the same, from silos or subs or bombers, fighters can kill all nukes.

QED mvpe 8)
User avatar
Zorotama
level5
level5
Posts: 1508
Joined: Thu Nov 13, 2008 4:03 am
Location: 64x80

Postby Zorotama » Thu Dec 01, 2011 1:12 pm

tllotpfkamvpe wrote:Besides, fighters can kill nukes. They kill bombers which carry nukes therefore they kill nukes. Since all nukes are the same, from silos or subs or bombers, fighters can kill all nukes.

QED mvpe 8)


:P
User avatar
xander
level5
level5
Posts: 16869
Joined: Thu Oct 21, 2004 11:41 pm
Location: Highland, CA, USA
Contact:

Postby xander » Thu Dec 01, 2011 7:04 pm

I have been trying to convince my department that the correct abbreviation is "QEDB," for "quod erat demonstratum, bitches." It isn't really catching on, though I think that "Therefore P is a projective R-module. QEDB" has a nice ring to it.

xander
Weps
level3
level3
Posts: 250
Joined: Wed Oct 04, 2006 10:25 pm

Postby Weps » Wed Dec 14, 2011 6:20 pm

The table shows only the hitpercentage per shot, however, the table is incomplete.

There is at least one unit that must be hit -at least- twice before it is destroyed. I thought it was a bb, am too lazy to look it up right now.
User avatar
xander
level5
level5
Posts: 16869
Joined: Thu Oct 21, 2004 11:41 pm
Location: Highland, CA, USA
Contact:

Postby xander » Wed Dec 14, 2011 9:47 pm

Weps wrote:The table shows only the hitpercentage per shot, however, the table is incomplete.

There is at least one unit that must be hit -at least- twice before it is destroyed. I thought it was a bb, am too lazy to look it up right now.

Airbases have to be hit twice. Silos must be hit three times.

xander
Weps
level3
level3
Posts: 250
Joined: Wed Oct 04, 2006 10:25 pm

Postby Weps » Thu Dec 15, 2011 4:32 pm

Ah noes,

the table shows the value for a submerged sub.

For a surfaced sub, the value should be doubled. (So not hit twice as I assumed I remembered)

Code: Select all

        if( targetObject->m_type == WorldObject::TypeSub &&
            targetObject->m_currentState == 2 )
        {
            m_attackOdds *= 2;
        }



And also, carrier vrs (submerged) sub, the table says 30, but it's actually depending on the distance between the carrier and the sub:

Code: Select all

                if( rangeSqd <= 5 * 5 )
                {
                    if( wobj->m_currentState == 2 )
                    {
                        m_attackOdds = 0;
                    }
                    Fixed factor = 2 - rangeSqd/(5 * 5);
                    int odds = (m_attackOdds * factor).IntValue();
                    if( odds > syncrand() % 100 )
                    {
                        wobj->m_life = 0; 
                  wobj->m_lastHitByTeamId = m_teamId;
                    }
                }



This information is not in that table, hence it is incomplete.

Return to “General”

Who is online

Users browsing this forum: No registered users and 2 guests