#This file is processed when a new game is started.

#Syntax:
#type var_name_suffix init_value
#Acceptable types: b, i, f, s, v.
#If var_name_suffix is X, then the variable created
#will be "game.globals.X".
#You should put the game of your game/package somewhere
#in each var_name_suffix (preferably at the beginning).

######################################
#       CREATING A STARTING POS
######################################

s xar.create_start_pos.state        "done"
i xar.create_start_pos.which_try    0
i xar.create_start_pos.next_seed    0
f xar.create_start_pos.frac         0.0
s xar.create_start_pos.splash       ""
i xar.create_start_pos.cur_level    -1
b xar.create_start_pos.fast_track   true

#May want to change these.
i xar.create_start_pos.global_tries_max 200
i xar.create_start_pos.global_tries     200

######################################
#                HUD
######################################

s xar.messages.slot1.msg
f xar.messages.slot1.ttl
s xar.messages.slot2.msg
f xar.messages.slot2.ttl
s xar.messages.slot3.msg
f xar.messages.slot3.ttl
s xar.messages.slot4.msg
f xar.messages.slot4.ttl
s xar.messages.slot5.msg
f xar.messages.slot5.ttl

#The user can change these to customize
#their experience.
b xar.hud.disable_hud                    false

#The next two are only in genesis.
b xar.hud.show_game_time                 true
b xar.hud.show_play_time                 true

b xar.hud.msg.disable_msgs               false
b xar.hud.msg.show_saved_game_msg        true
b xar.hud.msg.show_spiral_of_death_msg   false
#more!!!

b xar.hud.show_health true
b xar.hud.show_ammo true
b xar.hud.show_markers true
b xar.hud.show_gold true
b xar.hud.show_experience true
b xar.hud.show_icons true

d xar.hud.flash.last_time -1.0
d xar.hud.flash.duration 1.0
f xar.hud.flash.alpha 1.0
v xar.hud.flash.color 1.0 1.0 1.0

--If the red boarder showing low health is here.
--This is here for epilepsy saftey.
b xar.hud.showing_border false
-- If the stats are all below these ratios,
-- then the red boarder around the screen will be shown.
-- The player can configure these.
f xar.hud.shield_danger_cutoff 0.1
f xar.hud.health_danger_cutoff 1.1
f xar.hud.armor_danger_cutoff  0.5

######################################
#                SOUND
######################################

#Nothing here,
#but see package state.

######################################
#               Credits
######################################

b xar.credits.won_game            false
d xar.credits.won_game_game_time    -1.0
d xar.credits.won_game_play_time    -1.0

######################################
#              Difficulty
######################################

b xar.difficulty.locked_in             false
b xar.difficulty.easy_2                false
b xar.difficulty.easy_2_once           false
b xar.difficulty.easy_1                true
b xar.difficulty.easy_1_once           true
b xar.difficulty.normal                false
b xar.difficulty.normal_once           false
b xar.difficulty.hard_1                false
b xar.difficulty.hard_1_once           false
b xar.difficulty.hard_2                false
b xar.difficulty.hard_2_once           false
b xar.difficulty.hard_3                false
b xar.difficulty.hard_3_once           false
b xar.difficulty.hard_4                false
b xar.difficulty.hard_4_once           false

b xar.difficulty.hardcore              false
b xar.first_life                       true

b xar.difficulty.curve.enabled         false

i xar.difficulty.curve.player_in_damage.total     0
d xar.difficulty.curve.player_in_damage.last_time 0.0

d xar.difficulty.speedrun_start     0.0

######################################
#          EXPERIENCE POINTS
######################################

i xar.experience.total 0
i xar.experience.level 0

#These next 3 should all be the same.
i xar.experience.level_step        500
i xar.experience.to_next_level     500
i xar.experience.to_next_level_max 500

f xar.experience.last_time   0.0
i xar.experience.last_second 0
i xar.experience.this_second 0

# Every 10th level is a milestone level,
# where the player gets bonus upgrades.
# This var represents that last miltstone level
# that the player claimed the upgrades from.
i xar.experience.last_claimed_milestone_level

######################################
#              Cheating
######################################

b xar.cheat.free_markers false

b xar.cheat.inf2.enabled false
s xar.cheat.inf2.primary_bt "SOLID_BORING"
s xar.cheat.inf2.secondary_bt "EMPTY_BORING"
s xar.inf2.movement.mod ""

b xar.inf2.movement.moving_in_plane false
b xar.inf2.movement.in_air          false

######################################
#             Hurt Sounds
######################################

d xar.hurt_sound.last_time 0.0
i xar.hurt_sound.damage    0

#######################################
#         Non-Weapon Inventory
#######################################

i xar.player.health.level
i xar.player.health.amount 100
i xar.player.health.max

f xar.player.health.counter
f xar.player.health.too_much_counter

i xar.player.health.regen_level
f xar.player.health.regen

i xar.player.health.extra_regen_level
f xar.player.health.extra_regen

i xar.player.shield.amount
i xar.player.shield.max
f xar.player.shield.counter

i xar.player.armor.amount
i xar.player.armor.max

i xar.player.armor.regen_level
f xar.player.armor.regen
f xar.player.armor.counter

i xar.player.gold.amount 200
i xar.player.gold.max    1000000

i xar.player.markers.num_short 10

f xar.key_time.yellow          0.0
f xar.key_time.blue            0.0
f xar.key_time.green           0.0
s xar.key_time.green_combo     ""
f xar.key_time.universe        0.0
f xar.key_time.laser_genesis   0.0
f xar.key_time.dans_house      0.0
f xar.emp_end_time             0.0

# Should probably get rid of word stacking.
d xar.xp_5x_stacking_time      0.0
d xar.damage_5x_stacking_time  0.0
d xar.invun_stacking_time      0.0

b xar.rocket_mode false

#######################################
#            World state
#######################################

b xar.door_unlocked.i1          false
b xar.door_unlocked.i2          false
b xar.door_unlocked.i3          false
b xar.door_unlocked.hell        false
b xar.door_unlocked.burlington  false

#######################################
#               Input
#######################################

b xar.input.holding_drop_marker false
d xar.input.holding_drop_marker_start 0.0

d xar.input.holding_telekinesis_start

#These determine if left and right clicking
#result in the use object being used.
#Otherwise, the player needs to press F
#to use the use object.
b xar.input.use_primary_uses_object true
b xar.input.use_secondary_uses_object true

#######################################
#             Movement
#######################################

b xar.movement.forward  false
b xar.movement.back     false
b xar.movement.left     false
b xar.movement.right    false
b xar.movement.up       false
b xar.movement.down     false
b xar.movement.spin_ccw false
b xar.movement.spin_cw  false
b xar.movement.rocket   false
b xar.movement.brake    false

f xar.movement.spin_value 0.0

v xar.movement.extra_impulse 0.0 0.0 0.0

#######################################
#         Inventory Execution
#######################################

i xar.inv_exec.cur_wep -1
b xar.inv_exec.primary
b xar.inv_exec.starting_shoot false
d xar.inv_exec.last_fire_time 0.0

b xar.inv_exec.wep_script_in false
i xar.inv_exec.wep_script_last_wep 1

#######################################
#             Cur Weapon
#######################################

#Should only be set by the lua game.
i xar.player.cur_wep 1

#######################################
#             Markers
#######################################

i xar.player.tracking_marker -1
b xar.player.tracking_marker_hide 0
i xar.player.tracking_marker_last_id 0
d xar.player.tracking_marker_last_time 0.0
v xar.player.tracking_marker_dir
d xar.player.tracking_marker_dist
s xar.player.tracking_marker_path

b xar.player.cheat_comon_markers false

#######################################
#           Moving Entities
#######################################

f xar.player.hive_attack.meter      0.0
f xar.player.hive_attack.last_time  0.0

#######################################
#             World vars
#######################################

#When this variable is changed,
#the game needs to be restarted for
#the effect to occur.
f xar.normal_bent_touch_dist 1.5

#######################################
#               Plasma
#######################################
i xar.player.gun1.ammo
i xar.player.gun1.ammo_level
i xar.player.gun1.ammo_regen_level
f xar.player.gun1.counter
i xar.player.gun1.speed_level
i xar.player.gun1.fire_period_level
i xar.player.gun1.damage_level
#
b xar.player.gun1.mode1.has      true
b xar.player.gun1.mode1.equipped true
b xar.player.gun1.mode2.has      true
b xar.player.gun1.mode2.equipped true
b xar.player.gun1.mode3.has      false
b xar.player.gun1.mode3.equipped false
b xar.player.gun1.mode4.has      false
b xar.player.gun1.mode4.equipped false
b xar.player.gun1.mode5.has      false
b xar.player.gun1.mode5.equipped false
#
i xar.player.gun1.last_mode      1
i xar.player.gun1.last_last_mode 2

#######################################
#                Cannon
#######################################
i xar.player.gun2.ammo
i xar.player.gun2.ammo_level
i xar.player.gun2.speed_level
i xar.player.gun2.fire_period_level
i xar.player.gun2.damage_level
i xar.player.gun2.num_level
#
b xar.player.gun2.mode1.has      true
b xar.player.gun2.mode1.equipped true
b xar.player.gun2.mode2.has      false
b xar.player.gun2.mode2.equipped false
b xar.player.gun2.mode3.has      true
b xar.player.gun2.mode3.equipped true
#
i xar.player.gun2.last_mode      1
i xar.player.gun2.last_last_mode 2

#######################################
#                Laser
#######################################
i xar.player.gun3.ammo
i xar.player.gun3.ammo_level
i xar.player.gun3.freeze_time_level
i xar.player.gun3.damage_level
i xar.player.gun3.num_level
#
b xar.player.gun3.mode1.has      true
b xar.player.gun3.mode1.equipped true
b xar.player.gun3.mode2.has      true
b xar.player.gun3.mode2.equipped true
#
i xar.player.gun3.last_mode      1
i xar.player.gun3.last_last_mode 2

#######################################
#               Rocket
#######################################
i xar.player.gun4.ammo
i xar.player.gun4.ammo_level
i xar.player.gun4.speed_level
i xar.player.gun4.fire_period_level
i xar.player.gun4.damage_level
i xar.player.gun4.radius_level
#
b xar.player.gun4.mode1.has      true
b xar.player.gun4.mode1.equipped true
b xar.player.gun4.mode2.has      false
b xar.player.gun4.mode2.equipped false
b xar.player.gun4.mode3.has      false
b xar.player.gun4.mode3.equipped false
b xar.player.gun4.mode4.has      true
b xar.player.gun4.mode4.equipped true
b xar.player.gun4.mode5.has      false
b xar.player.gun4.mode5.equipped false
#
i xar.player.gun4.last_mode      1
i xar.player.gun4.last_last_mode 4

#######################################
#            Homing Rocket
#######################################
i xar.player.gun5.ammo
i xar.player.gun5.ammo_level
i xar.player.gun5.speed_level
i xar.player.gun5.fire_period_level
i xar.player.gun5.damage_level
#
b xar.player.gun5.mode1.has      true
b xar.player.gun5.mode1.equipped true
b xar.player.gun5.mode2.has      true
b xar.player.gun5.mode2.equipped true
#
i xar.player.gun5.last_mode      1
i xar.player.gun5.last_last_mode 2
#
#Shooting:
d xar.player.gun5.bucket.next_release_time 0.0
i xar.player.gun5.bucket.1  0
i xar.player.gun5.bucket.2  0
i xar.player.gun5.bucket.3  0
i xar.player.gun5.bucket.4  0
i xar.player.gun5.bucket.5  0
i xar.player.gun5.bucket.6  0
i xar.player.gun5.bucket.7  0
i xar.player.gun5.bucket.8  0
i xar.player.gun5.bucket.9  0
i xar.player.gun5.bucket.10 0
i xar.player.gun5.bucket.11 0
i xar.player.gun5.bucket.12 0
i xar.player.gun5.bucket.13 0
i xar.player.gun5.bucket.14 0
i xar.player.gun5.bucket.15 0
i xar.player.gun5.bucket.16 0
i xar.player.gun5.bucket.17 0
i xar.player.gun5.bucket.18 0
i xar.player.gun5.bucket.19 0
i xar.player.gun5.bucket.20 0

#######################################
#               Minigun
#######################################
i xar.player.gun6.ammo
i xar.player.gun6.ammo_level
i xar.player.gun6.speed_level
i xar.player.gun6.fire_period_level
i xar.player.gun6.damage_level
i xar.player.gun6.num_level
#
b xar.player.gun6.mode1.has      true
b xar.player.gun6.mode1.equipped true
b xar.player.gun6.mode2.has      true
b xar.player.gun6.mode2.equipped true
#
i xar.player.gun6.last_mode      1
i xar.player.gun6.last_last_mode 2

#######################################
#               Railgun
#######################################
i xar.player.gun7.ammo
i xar.player.gun7.ammo_level
i xar.player.gun7.fire_period_level
i xar.player.gun7.damage_level
#
b xar.player.gun7.mode1.has      true
b xar.player.gun7.mode1.equipped true
b xar.player.gun7.mode2.has      false
b xar.player.gun7.mode2.equipped false
b xar.player.gun7.mode3.has      true
b xar.player.gun7.mode3.equipped true
b xar.player.gun7.mode4.has      false
b xar.player.gun7.mode4.equipped false
#
i xar.player.gun7.last_mode      1
i xar.player.gun7.last_last_mode 2

#######################################
#                 EMP
#######################################
i xar.player.gun8.ammo
i xar.player.gun8.ammo_level
i xar.player.gun8.damage_level
i xar.player.gun8.radius_level
i xar.player.gun8.freeze_time_level
#
b xar.player.gun8.mode1.has      true
b xar.player.gun8.mode1.equipped true
b xar.player.gun8.mode2.has      true
b xar.player.gun8.mode2.equipped true
#
i xar.player.gun8.last_mode      1
i xar.player.gun8.last_last_mode 2
#
#Shooting:
f xar.player.gun8.last_sound_time 0.0

#######################################
#                Nuke
#######################################
i xar.player.gun9.ammo
i xar.player.gun9.ammo_level
i xar.player.gun9.speed_level
i xar.player.gun9.damage_level
i xar.player.gun9.radius_level
#
b xar.player.gun9.mode1.has      true
b xar.player.gun9.mode1.equipped true
b xar.player.gun9.mode2.has      true
b xar.player.gun9.mode2.equipped true
b xar.player.gun9.mode3.has      false
b xar.player.gun9.mode3.equipped false
#
i xar.player.gun9.last_mode      1
i xar.player.gun9.last_last_mode 2

#######################################
#              Dark Hole
#######################################
i xar.player.gun0.ammo
i xar.player.gun0.ammo_level
i xar.player.gun0.speed_level
i xar.player.gun0.damage_level
#
b xar.player.gun0.mode1.has      true
b xar.player.gun0.mode1.equipped true
b xar.player.gun0.mode2.has      true
b xar.player.gun0.mode2.equipped true
#
i xar.player.gun0.last_mode      1
i xar.player.gun0.last_last_mode 2
#
#Shooting.
f xar.player.gun0.start_shoot_time 0.0
i xar.player.gun0.charge           0

#######################################
#               Arcade
#######################################

b xar.player.arcade.inside false
i xar.player.arcade.ammo.1  0
i xar.player.arcade.ammo.2  0
i xar.player.arcade.ammo.3  0
i xar.player.arcade.ammo.4  0
i xar.player.arcade.ammo.5  0
i xar.player.arcade.ammo.6  0
i xar.player.arcade.ammo.7  0
i xar.player.arcade.ammo.8  0
i xar.player.arcade.ammo.9  0
i xar.player.arcade.ammo.0  0

#######################################
#               Trophies
#######################################

#Ying World.
b xar.player.trophy.noob_flower             false
b xar.player.trophy.library_ying            false
b xar.player.trophy.small_yellow_flower     false
b xar.player.trophy.jumbo_yellow_flower     false
b xar.player.trophy.small_cannon_pyramid    false
b xar.player.trophy.large_cannon_pyramid    false
b xar.player.trophy.ying_island_1           false
b xar.player.trophy.ying_island_2           false
b xar.player.trophy.ying_island_3           false
b xar.player.trophy.ying_island_4           false
b xar.player.trophy.ying_exit_maze          false
b xar.player.trophy.ying_flower             false
b xar.player.trophy.ying_tower              false
b xar.player.trophy.sponge_pure             false
#Midway.
b xar.player.trophy.richmond                false
b xar.player.trophy.richmond_sewers         false
b xar.player.trophy.tau_caves_map           false
b xar.player.trophy.richmond_caves          false
b xar.player.trophy.stoney_cave_1           false
b xar.player.trophy.stoney_cave_2           false
b xar.player.trophy.stoney_cave_3           false
b xar.player.trophy.stoney_church           false
b xar.player.trophy.blackberry              false
b xar.player.trophy.black_cube              false
b xar.player.trophy.jericho                 false
b xar.player.trophy.catacombs               false
b xar.player.trophy.orange                  false
b xar.player.trophy.tweed_cave              false
b xar.player.trophy.ice_cube                false
b xar.player.trophy.blue_bubble             false
#I1.
b xar.player.trophy.blue_bubble_breach      false
b xar.player.trophy.botany_lab_1            false
b xar.player.trophy.botany_lab_2            false
b xar.player.trophy.botany_lab_3            false
b xar.player.trophy.botany_lab_4            false
b xar.player.trophy.botany_lab_5            false
b xar.player.trophy.botany_lab_6            false
b xar.player.trophy.library_i1              false
b xar.player.trophy.lighthouse              false
b xar.player.trophy.infinity_flower         false
b xar.player.trophy.williston               false
b xar.player.trophy.williston_caves         false
b xar.player.trophy.bristol                 false
b xar.player.trophy.emp_castle              false
b xar.player.trophy.zube_castle             false
#I2.
b xar.player.trophy.library_i2              false
b xar.player.trophy.wig_prison              false
b xar.player.trophy.montreal                false
b xar.player.trophy.toronto                 false
b xar.player.trophy.toronto_underground     false
b xar.player.trophy.danville                false
b xar.player.trophy.small_blue_flower_1     false
b xar.player.trophy.small_blue_flower_2     false
b xar.player.trophy.willow_tree             false
b xar.player.trophy.willow_tree_dark        false
b xar.player.trophy.mystic_vine             false
b xar.player.trophy.raspberry               false
b xar.player.trophy.weed_rings              false
b xar.player.trophy.blue_mushroom           false
b xar.player.trophy.fanatic_spire           false
b xar.player.trophy.creeping_jeni           false
b xar.player.trophy.violets                 false
#I3.
b xar.player.trophy.library_i3              false
b xar.player.trophy.colchester              false
b xar.player.trophy.red_maze_flower         false
b xar.player.trophy.jackfruit               false
b xar.player.trophy.large_white_flower      false
b xar.player.trophy.cactus                  false
b xar.player.trophy.aladdin_cave            false
b xar.player.trophy.desert_cave             false
b xar.player.trophy.desert_flower           false
b xar.player.trophy.salmon_mushroom         false
b xar.player.trophy.black_mushroom          false
b xar.player.trophy.yellow_mushroom         false
b xar.player.trophy.red_mushroom            false
b xar.player.trophy.river                   false
b xar.player.trophy.tangerine               false
#Burlington.
b xar.player.trophy.burlington_cols         false
b xar.player.trophy.burlington              false
b xar.player.trophy.tegan_garden            false
b xar.player.trophy.green_apple_club        false
#Space.
b xar.player.trophy.library_space           false
b xar.player.trophy.moon_alpha              false
b xar.player.trophy.moon_beta               false
b xar.player.trophy.moon_gamma              false
b xar.player.trophy.moon_tau                false
b xar.player.trophy.moon_ice                false
b xar.player.trophy.moon_fire_rate          false
b xar.player.trophy.planet_small_minigun    false
b xar.player.trophy.planet_clay             false
b xar.player.trophy.sun                     false
b xar.player.trophy.sponge_alpha            false
#The Bulk.
b xar.player.trophy.ice_castle              false
#Mylantis.
b xar.player.trophy.mylantis                false
b xar.player.trophy.farmhouse               false
b xar.player.trophy.laser_genesis           false
b xar.player.trophy.sapphire_maze           false
b xar.player.trophy.sponge_beta             false
b xar.player.trophy.topaz                   false
b xar.player.trophy.iolite                  false
b xar.player.trophy.emerald                 false
b xar.player.trophy.denver                  false
b xar.player.trophy.amethyst_maze           false
b xar.player.trophy.edge_of_world           false
#Hell.
b xar.player.trophy.hell_flower             false
b xar.player.trophy.inner_core              false
b xar.player.trophy.credits                 false
#No Waypoint.
b xar.player.trophy.small_white_flower      false
b xar.player.trophy.small_black_flower      false
b xar.player.trophy.apple_tree              false
b xar.player.trophy.health_tower            false
b xar.player.trophy.alpha_cube              false
# more!!!
