Angoff: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
No edit summary
mNo edit summary
 
(6 intermediate revisions by 4 users not shown)
Line 1: Line 1:
angoff <number>
<span {{code}}>'''angoff''' <value></span>


Sets the angle offset for an MD2 model assigned to an [[actor]].  When set, the [[actor]]'s MD2 model will be rendered offset by <number>. See [[angoffvar]].
<span {{code}}>'''angoffvar''' <value> </span>
 
Sets the angle offset for a 3D model assigned to the current [[actor]].  When set, the angle of the [[actor]]'s 3D model will be rendered offset by ''<number>''.
 
Can also be directly set for other sprites by accessing the ''angoff'' member of the [[Members_of_the_sprite,_hittype,_and_spriteext_structures|spriteext struct]].
 
{{varsuffix}}
 
[[Category:EDuke32 specific commands]]
[[Category:Sprite manipulation]]

Latest revision as of 01:42, 12 January 2021

angoff <value>

angoffvar <value>

Sets the angle offset for a 3D model assigned to the current actor. When set, the angle of the actor's 3D model will be rendered offset by <number>.

Can also be directly set for other sprites by accessing the angoff member of the spriteext struct.

Commands with an additional "var" suffix take gamevars rather than constants or defined labels for their inputs. As an alternate short form, "varvar" can be dropped from these commands; for example ife serves an an alias for ifvarvare.