Info transitioning player: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(-gif example)
m (Classifying as model entity)
 
(8 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{ent not in fgd|nolink=1}}
{{ent not in fgd|nolink=1}}
{{CD|CTransitioningPlayer}}
{{CD|CTransitioningPlayer}}
{{entity|type=e0|info_transitioning_player|series=Left 4 Dead}} This entity will be used as placeholder for players loading during map transition if cvar <code>sb_transition</code> is set to 0.
{{this is a|model entity|name=info_transitioning_player|series=Left 4 Dead}} This entity will be used as a placeholder for players loading during map transition if the [[ConVar]] <code>sb_transition</code> is set to <code>0</code>.
{{bug|In maps with L4D1 survivor set game will crash with model not precached error. This is because the entity is trying to use L4D2 survivor models}}
{{bug|In {{l4d2|4}} maps with the L4D1 survivor set (<code>"survivor_set" "1"</code>in the [[L4D2 Mission Files|mission file]]), the game will crash with the model not precached error. This is because the entity is trying to use L4D2 survivor models}}
{{idea|In {{l4d2|4}} if you want to use <code>sb_transition 0</code> cvar this precache issue can be fixed by creating <code>mapspawn_addon.nut</code> and precaching the l4d2 survivors if it's needed. See [[L4D2_Vscripts]] for more info about <code>mapspawn_addon.nut</code>}}
{{ModernIdea|If you want to use the <code>sb_transition 0</code> ConVar this precache issue can be fixed by creating '''mapspawn_addon.nut''' and precaching the L4D2 survivors in there if it's needed. See [[L4D2 VScripts]] for more info about '''mapspawn_addon.nut'''. If using a [[Mutation_Gametype_(L4D2)#Example_game_mode_definition_file|mode file]] is an option then setting <code>precache_all_survivors 1</code> ConVar there will do the trick too. }}
{{Bug|This entity will remain for the whole chapter if the player it was replacing disconnects during loading. {{confirm}} }}


== Convars ==
== ConVars ==
{{varcom|start}}
{{varcom|start}}
{{varcom|sb_transition|1|boolean|If true, survivor bots will be used as placeholders for survivors who are still changing levels}}
{{varcom|sb_transition|1|boolean|If true, survivor bots will be used as placeholders for survivors who are still changing levels}}
Line 11: Line 12:


== Example ==
== Example ==
The entity in action. VScript precache fix was used here otherwise it would be a crash.
The entity in action. The VScript precache fix was used here; otherwise, there would be a crash.
[[File:Info transitioning player.gif|none|center]]
[[File:Info transitioning player.gif|none|center]]




== See Also ==
== See also ==
* [[player]]
* [[player]]

Latest revision as of 04:31, 19 May 2025

Icon-NotInFGD.png
This entity is not in the FGD by default.
It should not be put directly in a map.
C++ Class hierarchy
CTransitioningPlayer
CBaseCombatCharacter
CBaseFlex
CBaseAnimatingOverlay
CBaseAnimating
CBaseEntity

info_transitioning_player is a model entity available in Left 4 Dead seriesLeft 4 Dead series Left 4 Dead series. This entity will be used as a placeholder for players loading during map transition if the ConVar sb_transition is set to 0.

Icon-Bug.pngBug:In Left 4 Dead 2 Left 4 Dead 2 maps with the L4D1 survivor set ("survivor_set" "1"in the mission file), the game will crash with the model not precached error. This is because the entity is trying to use L4D2 survivor models  [todo tested in ?]
Tip.pngIdea:If you want to use the sb_transition 0 ConVar this precache issue can be fixed by creating mapspawn_addon.nut and precaching the L4D2 survivors in there if it's needed. See L4D2 VScripts for more info about mapspawn_addon.nut. If using a mode file is an option then setting precache_all_survivors 1 ConVar there will do the trick too.
Icon-Bug.pngBug:This entity will remain for the whole chapter if the player it was replacing disconnects during loading. [confirm]   [todo tested in ?]

ConVars

Cvar/Command Parameters or default value Descriptor Effect
sb_transition 1 boolean If true, survivor bots will be used as placeholders for survivors who are still changing levels

Example

The entity in action. The VScript precache fix was used here; otherwise, there would be a crash.

Info transitioning player.gif


See also