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

From the Portal Wiki
Jump to: navigation, search
353353 return
354354 }
355355 initialized = true
356N/A 
N/A356 
N/A357 // position fixup for sp_a3_01, in case player has fallen outside map
N/A358 
N/A359 if (GetMapName() == "sp_a3_01")
N/A360 {
N/A361 printl( "--------------- FIXING PLAYER POSITION FOR sp_a3_01" )
N/A362 
N/A363 local destination_name = "knockout-teleport" // targetname of the destination entity
N/A364 
N/A365 local player_ent = null
N/A366 
N/A367 local destination_ent = null
N/A368 
N/A369 // find the player
N/A370 player_ent = Entities.FindByClassname( player_ent, "player" )
N/A371 
N/A372 if ( player_ent == null )
N/A373 {
N/A374 printl("*** Cannot find player. Aborting!")
N/A375 return;
N/A376 }
N/A377 
N/A378 // find the destination entity
N/A379 destination_ent = Entities.FindByName( destination_ent, destination_name )
N/A380 
N/A381 if ( destination_ent == null )
N/A382 {
N/A383 printl("*** Cannot find destination entity " + destination_name + ". Aborting!")
N/A384 return;
N/A385 }
N/A386 
N/A387 // move the player to the destination
N/A388 player.SetOrigin( destination_ent.GetOrigin() )
N/A389 }
N/A390 
357391 DumpMapList()
358392 
359393 local portalGunCommand = ""