; params file for the SIMULA Xiphos application

P(5200000)              ; PLAYSPACE_X 8388608
P(0)              ; PLAYSPACE_Y    65536
P(2600000)              ; PLAYSPACE_Z  2894304
P(160)             ; XMAP_XORIG               3
P(49)              ; XMAP_YORIG 67            4
P(20500)          ; xmap_scale_x 21000 (see below for _y)         5
P(120)              ; 100 n_xbases             6
P(200000)         ; macloc_range 200000 300000  7
P(65536)           ; mv_step                    8
P(0)               ; pbase_class                9
P(1)               ; qbase_class                10
P(2)               ; psup_class                 11
P(3)               ; qsup_class                 12
P(4)               ; phun_class                 13
P(5)               ; qhun_class                 14
P(5)               ; base_checks_per_frame      15
P(35)              ; ECOMM_EVENT_BASE           16
P(4)               ; max_macloc                 17
P(3)               ; min_macloc                 18
P(0)               ; test_bases                 19
P(100)             ; pam_interval         (in jiffies) (100) 20
P(60)              ; vengage_pam_interval (in jiffies) (75)  21
; ray_damage: 20 has ships blowing up quite frequently
P(10)              ; 20 ray_damage (tactical strength)       22
P(100)             ; view_firepower                          23
P(100)             ; view_tolerance                          24
P(30000)           ; WEPON_RANGE                             25
P(300000)           ; VIEW_INTEREST_RANGE 300000 450000 (no ships generated or allowed beyond this)
P(50000)           ; MUTUAL_INTEREST_RANGE                   27
P(200)             ; TS_HYST                                 28
P(1400)            ; travel_time (in jiffies)                29
P(15)              ; drip_feed                               30
P(15)              ; LOG_VENGAGE_Z (1<<param) map units in front of view)
P(30)               ; dock_vrot_tol                          32
P(256)             ; dock_vvel_scale (divisable by 16)       33
P(0)               ; docking_point (utility point in objects)  34
P(90)              ; dock_interact_timeout                     35
P(96)              ; dock_eject_vel                            36
P(79)              ; text_x (text window)                      37
P(8)               ; text_y                                    38
P(1)               ; ip_text_color                             39
P(2)               ; op_text_color                             40
P(48)              ; MX_IO_TEXT_LEN                            41
P(-7)               ; -7 mboff_x                                   42
P(-3)               ; -1 mboff_y                                   43

P(0)               ; mcol1  (P supply) 4                       44
P(5)               ; mcol2  (P fighter)                        45
P(6)               ; mcol3  (Q supply)                         46
P(7)               ; mcol4  (Q fighter)                        47

P(500000)         ; max_macloc_range                           48
P(100000)         ; min_macloc_range                           49
P(50000)          ; macloc_range_adjust                        50

P(17)              ; 17 n_xsecs (best if odd)                     51
P(9)              ; 9 n_zsecs (best if odd)                     52
P(4250)          ; 4250 base_secrnd_x (shifted <<5)
P(255)            ; 255 base_secrnd_y
P(4000)          ; 4000 base_secrnd_z (shifted <<5)

P(1500)             ; pop_time
P(4)              ; mx_ships (remember to set start_ships)
P(-5)             ; flee_vel_adjust
P(300)            ; flee_time
P(100)            ; 150 viewtrack_pam_interval 100

P(0)              ; guage0 off color  (fuel)
P(1)             ; guage0 on  color
P(0)              ; guage1 off color  (energy)
P(1)             ; guage1 on  color
P(5)              ; guage2 back color  (pscore)
P(23)             ; guage2 on  color
P(5)              ; guage3 back color  (qscore)
P(24)             ; guage3 on  color

P(8)              ; ship_domcol1
P(9)              ; ship_domcol2
P(10)              ; base_domcol1
P(11)              ; base_domcol2

P(18)              ; gtext_lx
P(13)              ; gtext_ly
P(271)             ; gtext_rx
P(13)              ; gtext_ry

P(4300)             ; text_buf_size
P(1)                ; n_text_files
P(60000)            ; BAGRESS_VRANGE

P(10)              ; polebase_class
P(50)              ; dock_passage_vel
P(28000)           ; sv_mis_prop (nrnd16's > this allow ship to view missiles)
P(60)              ; vengage_travel_time;
P(0)               ; xtrace_on

P(5)               ; 4 log_vengage_acc_scale (smaller for greater effect)
P(8000)           ; 10000 vengage_min_rz
P(10800)             ; dock_agress_timeout 
P(60)              ; hud_time
P(15)              ; hud_y (ras_lines) (>=8)
P(100)              ; start_missile0
P(100)              ; start_missile1
P(0)              ; start_missile2
P(0)               ; start_missile3
P(0)               ; start_missile4

P(2)               ; xfade_step
P(200000)           ; playspace_margin
P(8)               ; 8 POLE_SECTOR_X
P(0)               ; 0 POLE_SECTOR_Z
P(80)              ; max_vel_engaged
P(100)             ; max_vel_travel
P(100)             ; max_vel_vel_begin
P(80)              ; max_vel_vengage

; the (abs) legal bounds should be set to 1/2 the PLAYSPACE
; values + margin
P(3000000)         ; legal_x (must be<x_orig0)
P(800000)          ; legal_y
P(1600000)         ; legal_z

P(1)               ; ship_projcol1
P(24)               ; ship_projcol2
P(2)               ; base_projcol1
P(24)               ; base_projcol2

; Eray and Emis are the energy cost associated with rays and missiles
; hitting the view. Eray is increased as follows
; ship to view      Eray
; base to view      Eray<<2 (response to fire prior to full base_agress)
; base_agress       Eray<<1
P(12)               ; Eray
P(45)              ; Emis
P(5)               ; NPEstages
P(800)             ; 600 PEstage
P(0)               ; Nks

P(1200)             ; start_fuel
P(1500)             ; start_energy
; cheat: 1-infinite fuel/energy, 2-init_res on clr, 4-show pole
;        8-allow saves at all bases  16-don't disable kbd when disable_iorot
;       32-allow multiple helps from a single base
;       64-non random Z for pole base
;      128-don't flag killed bases XB_DEAD
P(0)              ; cheat
P(0)            ; start_info
P(200000)          ; fof_max_range
P(30000)           ; fof_min_range
P(63000)           ; fof_hit_range (now a rnd prop 16bitu< this to succeed)

P(0)               ; start_pscore
P(0)               ; start_qscore
P(600)               ; pre_passage_time
P(500000)          ; bound_y
P(0)               ; text_back_color
P(1)             ; takeoff_countdown full-160, no ship but 'under control' message 1
P(32)              ; takeoff_vel
P(26515)               ; 27000 xmap_scale_y
P(2)               ; creature_class
P(4)               ; DAMAGE1 (out of date, now in objects)
P(40000)           ; creature_view_range
P(3)              ; mx_creature_count
P(10)               ; mx_creature_ret_count
P(126)               ; mapx0
P(47)               ; mapy0
P(15)               ; map_secw
P(11)               ; map_sech
P(0)               ; final level

P(3471)            ; win_theta
P(-1308)           ; win_alpha
; Energy drains assiciated with fireing missiles 0,1,2,3,4
P(5)               ; mis0  (lock)
P(10)              ; mis1  (los)
P(100)             ; mis2  (fof)
P(250)             ; mis3  (nuke)
P(20)              ; mis4  (ring)
P(7000)            ; min_intermis_range  (provided ships not closer than this)
P(50000)           ; intermis_prop       (rnd16>this yeilds missile)
P(12)              ; bat class

P(99)               ; map_text_x
P(16)               ; map_text_y
P(15)               ; map_text_col
P(2)               ; start_ships
P(3)               ; mx_xfields (starting at E49)
P(2099201)               ; extra_vfire_mask (32bit) (3 per 32)
P(0)               ; unused
P(0)               ; unused
P(0)               ; unused
P(0)               ; unused

P(0)               ; unused
P(0)               ; unused
P(0)               ; unused
P(0)               ; unused
P(0)               ; unused
P(0)               ; unused
P(0)               ; unused
P(0)               ; unused
P(0)               ; unused
P(0)               ; unused

; simula system params

P(2)               ; cmode_toggle 0-zero 2-dot
P(16384)           ; starting_theta
P(0)               ; starting_alpha
P(0)               ; unused
P(0)               ; unused
P(0)               ; unused
P(0)               ; unused
P(0)               ; unused
P(0)               ; unused
P(0)               ; unused

P(9999)           ; check

;l(0,0,15,15,1) l(0,0,-15,15,1) l(10000,0,0,0,0)
l(0,0,8,8,2) l(0,0,-8,8,2) l(10000,0,0,0,0)

; 0-Passage 1-fuel 2-energy 3-mis0 4-mis1 5-mis2 6-mis3 7-mis4 8-info 9-power
; Cindex(comodoty,price), .... )
; index 0..5  max 6 items per list. C0 is the pole base

; C0(5,(0,1005),(1,15),(2,33),(3,5),(4,10),(5,30),(6,250),(7,500))

C0(6,(0,1060),(1,16),(2,22),(3,6),(5,32),(6,400))
C1(5,(1,15),(2,22), (3,7),(5,35),(8,170),(0,0))
C2(5,(1,16),(2,23), (4,7),(6,350),(9,250), (0,0))
C3(5,(3,15),(2,24), (5,40),(7,16), (8,190),(0,0))
C4(5,(1,16),(2,21), (3,7),(5,32),  (8,165),(0,0))
X
