]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/bot/bot.qc
bots: take the ability to jump into account when linking waypoints (EXPERIMENTAL)
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / bot / bot.qc
index 6bcafcb99ef0135c3daf679c76b69db085730687..9972999fc40a1274bc02210a7e750347ff807833 100644 (file)
@@ -532,6 +532,9 @@ void autoskill(float factor)
 void bot_calculate_stepheightvec(void)
 {
        stepheightvec = autocvar_sv_stepheight * '0 0 1';
+       jumpstepheightvec = stepheightvec +
+               ((autocvar_sv_jumpvelocity * autocvar_sv_jumpvelocity) / (2 * autocvar_sv_gravity)) * '0 0 0.9';
+               // 0.9 factor is for safety to make the jumps always work
 }
 
 void bot_serverframe()