X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=common.h;h=9eda6f67ae0e59dfcf76c8fd39b0f26d46d7d8ae;hb=6e29d444f89478d5965fc652373272e5d70e84e4;hp=0621e7caba99232342d78aec4bd628f8190bac2b;hpb=9a751c9645f63a4e324ef2ea486efb7b669fddc5;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/common.h b/common.h index 0621e7c..9eda6f6 100644 --- a/common.h +++ b/common.h @@ -47,7 +47,7 @@ VG_STATIC float k_steer_ground = 2.5f, k_steer_air = 3.6f, - k_jump_charge_speed = (1.0f/1.0f), + k_jump_charge_speed = (1.0f/0.4f), k_jump_force = 5.0f, k_pitch_limit = 1.5f, @@ -77,7 +77,7 @@ VG_STATIC float k_board_interia = 8.0f, k_grind_decayxy = 30.0f, - k_grind_axel_min_vel = 3.0f, + k_grind_axel_min_vel = 1.0f, k_grind_axel_max_angle = 0.95f, /* cosine(|a|) */ k_grind_axel_max_vangle = 0.4f, k_grind_max_friction = 3.0f, @@ -86,7 +86,9 @@ VG_STATIC float k_board_length = 0.45f, k_board_width = 0.13f, k_board_end_radius = 0.1f, - k_board_radius = 0.14f; /* 0.07 */ + k_board_radius = 0.14f, /* 0.07 */ + + k_grind_balance = -40.0f; VG_STATIC float k_walkspeed = 10.0f, @@ -102,6 +104,9 @@ VG_STATIC float k_cam_spring = 20.0f, k_cam_damp = 6.7f; +VG_STATIC float + k_day_length = 30.0f; /* minutes */ + VG_STATIC float k_ragdoll_floatyiness = 20.0f, k_ragdoll_floatydrag = 1.0f, k_ragdoll_limit_scale = 1.0f; @@ -111,6 +116,9 @@ VG_STATIC int k_ragdoll_div = 1, k_ragdoll_debug_collider = 1, k_ragdoll_debug_constraints = 0; +VG_STATIC int k_debug_light_indices = 0, + k_debug_light_complexity = 0, + k_light_preview = 0; VG_STATIC int freecam = 0; VG_STATIC int walk_grid_iterations = 1; @@ -119,6 +127,8 @@ VG_STATIC int cl_thirdperson = 0; VG_STATIC void common_var_temp(void) { + VG_VAR_F32( k_day_length ); + VG_VAR_F32( k_cam_punch ); VG_VAR_F32( k_cam_damp ); VG_VAR_F32( k_cam_spring ); @@ -133,6 +143,7 @@ VG_STATIC void common_var_temp(void) VG_VAR_F32( k_grind_axel_min_vel ); VG_VAR_F32( k_grind_axel_max_angle ); VG_VAR_F32( k_grind_max_friction ); + VG_VAR_F32( k_grind_balance ); VG_VAR_F32( k_walkspeed ); VG_VAR_F32( k_stopspeed ); @@ -145,11 +156,13 @@ VG_STATIC void common_var_temp(void) VG_VAR_I32( cl_thirdperson ); VG_VAR_F32_PERSISTENT( fc_speed ); - /* TODO: NOT PERSISTENT */ VG_VAR_F32( k_ragdoll_limit_scale ); VG_VAR_I32( k_ragdoll_div ); VG_VAR_I32( k_ragdoll_debug_collider ); VG_VAR_I32( k_ragdoll_debug_constraints ); + VG_VAR_I32( k_debug_light_indices ); + VG_VAR_I32( k_debug_light_complexity ); + VG_VAR_I32( k_light_preview ); VG_VAR_F32( k_friction_lat );