Jump to content

One eighty count

From EDukeWiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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
...