Player (Portal series): Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Two CDs, because this entity is different between Portals 1 and 2. Also, Stanley and Beginner's Guide as extras.)
 
(→‎Inputs: Add SetMoveSpeed input from The Stanley Parable and The Beginner's Guide)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{LanguageBar}}
{{LanguageBar}}
{{TabsBar|main=Player}}
{{TabsBar|main=Player}}
{{Ent not in fgd|nolink=1}}
{{Ent not in fgd|codeonly=1}}
{{Preserved entity|.|in={{portal2}}}}
{{CD|CPortal_Player|base=CHL2_Player}} <!-- {{src13}} -->
{{CD|CPortal_Player|base=CHL2_Player}} <!-- {{src13}} -->
{{CD|CPortal_Player|base=CBaseMultiplayerPlayer}} <!-- {{p2branch}} -->
{{CD|CPortal_Player|base=CBaseMultiplayerPlayer}} <!-- {{p2branch}} -->
Line 7: Line 8:


==Inputs==
==Inputs==
{{IO|AllowNormalWalking|Allows movement other than just backwards.|only={{tsp}}, {{tbg}}}}
{{I|AllowNormalWalking|Allows movement other than just backwards.|only={{tsp}}, {{tbg}}}}
{{IO|ForceBackwardsWalking|Disallows other movement besides backwards.|only={{tsp}}, {{tbg}}}}
{{I|ForceBackwardsWalking|Disallows other movement besides backwards.|only={{tsp}}, {{tbg}}}}
{{IO|EndFloating|Returns player's view to default client-side view.|only={{tsp}}, {{tbg}}}}
{{I|EndFloating|Returns player's view to default client-side view.|only={{tsp}}, {{tbg}}}}
{{IO|StartFloating|Makes the player appear to float client-side.|only={{tsp}}, {{tbg}}}}
{{I|StartFloating|Makes the player appear to float client-side.|only={{tsp}}, {{tbg}}}}
{{I|SetMoveSpeed|param=int|Set's the player's movement speed|only={{tsp}}, {{tbg}}}}

Latest revision as of 00:42, 25 June 2025

English (en)Translate (Translate)
edit
Icon-NotInFGD.png
This entity is not in the FGD by default.
It should not be put directly in a map because it can only be configured through code.
Recycle-warning.png
This is a preserved entity in Portal 2
If the game has round restart mechanics this entity may not behave as expected.
C++ Class hierarchy
CPortal_Player
CHL2_Player
CBasePlayer
CBaseCombatCharacter
CBaseFlex
CBaseAnimatingOverlay
CBaseAnimating
CBaseEntity
C++ Class hierarchy
CPortal_Player
CBaseMultiplayerPlayer
CBasePlayer
CBaseCombatCharacter
CBaseFlex
CBaseAnimatingOverlay
CBaseAnimating
CBaseEntity

player is an entity available in Portal series Portal series, The Stanley Parable The Stanley Parable, and The Beginner's Guide The Beginner's Guide. The player themself. This entity still exists even if the player is dead.

Inputs

AllowNormalWalking  (only in The Stanley Parable, The Beginner's Guide)
Allows movement other than just backwards.
ForceBackwardsWalking  (only in The Stanley Parable, The Beginner's Guide)
Disallows other movement besides backwards.
EndFloating  (only in The Stanley Parable, The Beginner's Guide)
Returns player's view to default client-side view.
StartFloating  (only in The Stanley Parable, The Beginner's Guide)
Makes the player appear to float client-side.
SetMoveSpeed <integerRedirectInput/integer> (only in The Stanley Parable, The Beginner's Guide)
Set's the player's movement speed