Template:PatchDiff/October 4, 2011 Patch/update/scripts/vscripts/panels/coop dlc select panel flip.nut

N/A 1 //////////////////////////////////// CONSTANTS //////////////////////////////////////////   N/A 2 m_nBranch <- 0   N/A 3    N/A 4 m_bAskedClose <- false   N/A 5 m_bAskedOpen <- false   N/A 6 m_bOpening <- false   N/A 7 m_bClosing <- false   N/A 8    N/A 9 ///////////////////////////////////  FUNCTION DEFINITIONS ////////////////////////////////   N/A 10 //   N/A 11 // Sets the local branch #   N/A 12 //   N/A 13 function SetLocalDLCNumber( nBranch )   N/A 14 {   N/A 15        m_nBranch = nBranch   N/A 16 }   N/A 17    N/A 18 //   N/A 19 // Open Start   N/A 20 //   N/A 21 function OpenScreenStart   N/A 22 {   N/A 23        m_bAskedOpen = true   N/A 24        m_bAskedClose = false   N/A 25 }   N/A 26    N/A 27 //   N/A 28 // Close Start   N/A 29 //   N/A 30 function CloseScreenStart   N/A 31 {   N/A 32        m_bAskedClose = true   N/A 33        m_bAskedOpen = false   N/A 34 }   N/A 35    N/A 36 //   N/A 37 // Close Animating   N/A 38 //   N/A 39 function ScreenFinish   N/A 40 {   N/A 41        m_bOpening = false   N/A 42        m_bClosing = false   N/A 43 }   N/A 44    N/A 45 function Think   N/A 46 {   N/A 47        if ( m_bAskedOpen == true )   N/A 48        {   N/A 49                if ( m_bOpening == true )   N/A 50                {   N/A 51                        m_bAskedOpen = false   N/A 52                        return   N/A 53                }   N/A 54    N/A 55                if ( m_bClosing == true )   N/A 56                {   N/A 57                        return   N/A 58                }   N/A 59    N/A 60                m_bOpening = true   N/A 61                m_bAskedOpen = false                  N/A 62    N/A 63    N/A 64                EntFire( EntityGroup[2].GetName, "Enable", "", 0)   N/A 65    N/A 66                EntFire( EntityGroup[0].GetName, "Trigger", "", 0.01)          N/A 67        }   N/A 68    N/A 69        if ( m_bAskedClose == true )   N/A 70        {   N/A 71                if ( m_bClosing == true )   N/A 72                {   N/A 73                        m_bAskedClose = false   N/A 74                        return   N/A 75                }   N/A 76    N/A 77                if ( m_bOpening == true )   N/A 78                {   N/A 79                        return   N/A 80                }   N/A 81    N/A 82                m_bClosing = true   N/A 83                m_bAskedClose = false   N/A 84    N/A 85    N/A 86                EntFire( EntityGroup[3].GetName, "Enable", "", 0)   N/A 87    N/A 88                EntFire( EntityGroup[1].GetName, "Trigger", "", 0)          N/A 89        }   N/A 90 }   0 91  + true