;;-*-Lisp-*-
(in-package goal)

;; name: pilot-h.gc
;; name in dgo: pilot-h
;; dgos: GAME

;; +++vehicle-controls-flag
(defenum vehicle-controls-flag
  :type uint8
  :bitfield #t
  (vcf0 0)
  (vcf1 1)
  (vcf2 2)
  (vcf3 3)
  (vcf4 4)
  (vcf5 5)
  (vcf6 6)
  (vcf7 7)
  )
;; ---vehicle-controls-flag


;; DECOMP BEGINS

(deftype vehicle-controls (structure)
  ((steering    float)
   (throttle    float)
   (brake       float)
   (lean-z      float)
   (handbrake   float)
   (flags       vehicle-controls-flag)
   (prev-flags  vehicle-controls-flag)
   (pad0        uint8  2)
   )
  :pack-me
  )


(deftype pilot-info (basic)
  ((entity                   entity)
   (vehicle                  handle)
   (left-right-bias          float)
   (left-right-min           float)
   (left-right-max           float)
   (left-right-interp        float)
   (front-back-interp        float)
   (up-down-interp           float)
   (up-down-accel-factor     float)
   (front-back-accel-factor  float)
   (left-right-accel-factor  float)
   (stance                   uint8)
   (seat-index               int8)
   (backup-nav-radius        float)
   (cam-side-shift           float)
   (enable-cam-side-shift    symbol)
   (gun?                     symbol)
   (controls                 vehicle-controls  :inline)
   (accel-array              vector            8 :inline)
   (local-accel              vector            :inline)
   (pilot-trans              vector            :inline)
   (pilot-quat               vector            :inline)
   (pilot-scale              vector            :inline)
   (underwater-time          time-frame)
   (as-daxter?               symbol)
   (art-group-backup         art-group)
   (hud-health               handle)
   (hud-turbo                handle)
   (jumping?                 symbol)
   )
  )
