玩家

From Valve Developer Community
< Zh
Jump to navigation Jump to search
English (en)中文 (zh)Translate (Translate)
Create new tabs bar with this page as mainEdit Tabs
Icon-NotInFGD.png
此实体默认存在于 FGD
请参阅下面的内容以获取有关使其可用的说明。
Recycle-warning.png
This is a preserved entity in 传送门2
If the game has round restart mechanics this entity may not behave as expected.
C++ 类层级
CPortal_Player
CHL2_Player
CBasePlayer
CBaseCombatCharacter
CBaseFlex
CBaseAnimatingOverlay
CBaseAnimating
CBaseEntity
C++ 类层级
CPortal_Player
CBaseMultiplayerPlayer
CBasePlayer
CBaseCombatCharacter
CBaseFlex
CBaseAnimatingOverlay
CBaseAnimating
CBaseEntity

玩家实体(en),可在传送门(系列)传送门(系列) 传送门(系列)史丹利的语言 史丹利的语言新手指南 新手指南中使用。 玩家自身即使玩家死亡,此实体仍然存在。

输入

AllowNormalWalking  (存在于 史丹利的语言, 新手指南 之中)
允许除后退外的其他移动方式。
ForceBackwardsWalking  (存在于 史丹利的语言, 新手指南 之中)
只允许后退移动,禁止其他移动方式。
EndFloating  (存在于 史丹利的语言, 新手指南 之中)
将玩家的视角恢复到默认的客户端视角。
StartFloating  (存在于 史丹利的语言, 新手指南 之中)
使玩家在客户端看起来像是在漂浮。
SetMoveSpeed <整数(en)> (存在于 史丹利的语言, 新手指南 之中)
设置玩家的移动速度。