]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/bot/default/bot.qc
Bot waypoints: teach bots to jump gaps by implementing jump waypoints. Spawn it with...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / bot / default / bot.qc
index 90338d20214e1e0ec3132f7af1c3b597bba4f4a3..fc6e1d171275dacd18bbb1c4c03706a560283f49 100644 (file)
@@ -580,6 +580,7 @@ void bot_calculate_stepheightvec()
        stepheightvec = autocvar_sv_stepheight * '0 0 1';
        jumpheight_vec = (autocvar_sv_jumpvelocity ** 2) / (2 * autocvar_sv_gravity) * '0 0 1';
        jumpstepheightvec = stepheightvec + jumpheight_vec * 0.85; // reduce it a bit to make the jumps easy
+       jumpheight_time = autocvar_sv_jumpvelocity / autocvar_sv_gravity;
 }
 
 bool bot_fixcount()