One eighty count

From EDukeWiki
Jump to navigation Jump to search

If one_eighty_count is less than zero, then 128 is added to one_eighty_count and ang. (this lets the player turn a set angle over time...) This is set on key TURNAROUND to -1024. To completely emulate what is being done during EVENT_TURNAROUND, just set one_eighty_count to -1024.

actor APLAYER MAXPLAYERHEALTH PSTAND 0 0

  ifhitspace
    setplayer[THISACTOR].one_eighty_count -1024

  ifaction 0
    action PSTAND
...