Template:PatchDiff/April 29, 2011 Patch/portal2/scripts/vscripts/transitions/sp transition list.nut

353 353               return   354 354        }   355 355        initialized = true   356 N/A    N/A 356    N/A 357        // position fixup for sp_a3_01, in case player has fallen outside map   N/A 358    N/A 359        if (GetMapName == "sp_a3_01")   N/A 360        {   N/A 361                printl( "--- FIXING PLAYER POSITION FOR sp_a3_01" )   N/A 362    N/A 363                local destination_name = "knockout-teleport" // targetname of the destination entity   N/A 364    N/A 365                local player_ent = null   N/A 366    N/A 367                local destination_ent = null   N/A 368    N/A 369                // find the player   N/A 370                player_ent = Entities.FindByClassname( player_ent, "player" )     N/A 371    N/A 372                if ( player_ent == null  )   N/A 373                 {   N/A 374                        printl("*** Cannot find player. Aborting!")   N/A 375                        return;   N/A 376                }   N/A 377    N/A 378                // find the destination entity   N/A 379                destination_ent = Entities.FindByName( destination_ent, destination_name )     N/A 380    N/A 381                if ( destination_ent == null  )   N/A 382                {   N/A 383                        printl("*** Cannot find destination entity " + destination_name + ". Aborting!")  N/A 384                        return;   N/A 385                }   N/A 386    N/A 387                // move the player to the destination   N/A 388                player.SetOrigin( destination_ent.GetOrigin )         N/A 389        }   N/A 390    357 391        DumpMapList   358 392    359 393        local portalGunCommand = ""