A FaceConsolePlayer: Difference between revisions
DrinkyBird (talk | contribs) No edit summary |
DrinkyBird (talk | contribs) (Remove an annoying empty paragraph at the start of the page) Tag: Source edit |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:{{PAGENAMEE}}}} | {{DISPLAYTITLE:{{PAGENAMEE}}}}{{DECORATEWarning}} | ||
{{DECORATEWarning}} | |||
'''A_FaceConsolePlayer''' [(float MaxTurnAngle)] | '''A_FaceConsolePlayer''' [(float MaxTurnAngle)] | ||
Line 11: | Line 10: | ||
== Examples == | == Examples == | ||
Hissy uses this codepointer to turn towards the local player: | Hissy uses this codepointer to turn towards the local player: | ||
< | <pre> | ||
Spawn: | Spawn: | ||
HISY B 1 [[A_FaceConsolePlayer]](5) | HISY B 1 [[A_FaceConsolePlayer]](5) | ||
Line 17: | Line 16: | ||
HISY A 1 [[A_FaceConsolePlayer]](5) | HISY A 1 [[A_FaceConsolePlayer]](5) | ||
wait | wait | ||
</ | </pre> | ||
[[Category:DECORATE | [[Category:DECORATE functions]] |
Latest revision as of 20:38, 2 January 2023
This article documents a Zandronum-specific DECORATE feature which may not be supported by ZDoom and its other child ports. |
A_FaceConsolePlayer [(float MaxTurnAngle)]
Makes the calling actor turn towards the local player - even if the player is for instance coop spying on another player. The MaxTurnAngle is the max turn angle in degrees the actor can make.
Because this is client-specific behavior (the actor will turn to a different direction on every client machine), this will cause a desync of the actor's angle. Thus, it is not recommended to be used on non-decorative actors.
This codepointer encapsulates Hissy's behavior, which was moved to a code-pointer because Hissy was moved out to skulltag_actors.pk3.
Examples
Hissy uses this codepointer to turn towards the local player:
Spawn: HISY B 1 [[A_FaceConsolePlayer]](5) wait HISY A 1 [[A_FaceConsolePlayer]](5) wait