]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Remove sprint option from the Spiderbot vehicle
authorMario <mario.mario@y7mail.com>
Mon, 9 Sep 2024 05:38:04 +0000 (15:38 +1000)
committerMario <mario.mario@y7mail.com>
Mon, 9 Sep 2024 05:38:04 +0000 (15:38 +1000)
qcsrc/common/vehicles/vehicle/spiderbot.qc
vehicles.cfg

index 460f6edf4bc377561c3a132c3b7eae032b977b4f..be1229da29faa290854d1c8cfd7617db3feb3813 100644 (file)
@@ -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
index 7aa6e888f9f0fb4007421595b3fc96ea1b7d7b76..26119cc8094de2905a2ca5cc0584368cddd78788 100644 (file)
@@ -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