From: Mario Date: Mon, 9 Sep 2024 05:38:04 +0000 (+1000) Subject: Remove sprint option from the Spiderbot vehicle X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ca2f85dc3e7eaf32fa7dd4f1aaf431dfb22e3cd2;p=xonotic%2Fxonotic-data.pk3dir.git Remove sprint option from the Spiderbot vehicle --- diff --git a/qcsrc/common/vehicles/vehicle/spiderbot.qc b/qcsrc/common/vehicles/vehicle/spiderbot.qc index 460f6edf4..be1229da2 100644 --- a/qcsrc/common/vehicles/vehicle/spiderbot.qc +++ b/qcsrc/common/vehicles/vehicle/spiderbot.qc @@ -20,7 +20,6 @@ float autocvar_g_vehicle_spiderbot_respawntime = 45; float autocvar_g_vehicle_spiderbot_speed_stop = 50; float autocvar_g_vehicle_spiderbot_speed_strafe = 400; float autocvar_g_vehicle_spiderbot_speed_walk = 500; -float autocvar_g_vehicle_spiderbot_speed_run = 700; float autocvar_g_vehicle_spiderbot_turnspeed = 90; float autocvar_g_vehicle_spiderbot_turnspeed_strafe = 300; float autocvar_g_vehicle_spiderbot_movement_inertia = 0.15; @@ -201,7 +200,7 @@ bool spiderbot_frame(entity this, float dt) } CS(this).movement_y = 0; float oldvelz = vehic.velocity_z; - movelib_move_simple(vehic, normalize(v_forward * CS(this).movement_x),((PHYS_INPUT_BUTTON_JUMP(this)) ? autocvar_g_vehicle_spiderbot_speed_run : autocvar_g_vehicle_spiderbot_speed_walk),autocvar_g_vehicle_spiderbot_movement_inertia); + movelib_move_simple(vehic, normalize(v_forward * CS(this).movement_x), autocvar_g_vehicle_spiderbot_speed_walk, autocvar_g_vehicle_spiderbot_movement_inertia); vehic.velocity_z = oldvelz; float g = ((autocvar_sv_gameplayfix_gravityunaffectedbyticrate) ? 0.5 : 1); if(vehic.velocity_z <= 20) // not while jumping diff --git a/vehicles.cfg b/vehicles.cfg index 7aa6e888f..26119cc80 100644 --- a/vehicles.cfg +++ b/vehicles.cfg @@ -255,7 +255,6 @@ set g_vehicle_spiderbot_respawntime 45 set g_vehicle_spiderbot_speed_stop 50 set g_vehicle_spiderbot_speed_strafe 400 set g_vehicle_spiderbot_speed_walk 500 -set g_vehicle_spiderbot_speed_run 700 set g_vehicle_spiderbot_turnspeed 90 set g_vehicle_spiderbot_turnspeed_strafe 300 set g_vehicle_spiderbot_movement_inertia 0.15