eselect news
to read about itc++
Tuning()->Set("ground_jump_impulse", (g + std::sqrt(g * (g + 1341.12))) / 2);
Tuning()->Set("air_jump_impulse",(g + std::sqrt(g * (g + 1104.f))) / 2);
this is my function to calculate the jump impulses resulting in the default jump height based on the gravity#include <iostream>
#define TICKS 50
#define Gravity 0.5
int main() {
float pos = 0.f;
float vel = 0.f;
for (int i = 0; i < TICKS; ++i) {
vel += Gravity;
pos += vel;
}
std::cout << "pos: " << pos << std::endl;
return 0;
}
made a little minimal example to try out on godbolt#include <iostream>
#define TICKS 50.0f
#define GRAVITY 0.5f
float predict() {
// h = (1 / 2) * g * (t * t)
return 0.5f * GRAVITY * TICKS * TICKS;
}
int main() {
float pos = 0.f;
float vel = 0.f;
for (int i = 0; i < TICKS; ++i) {
vel += GRAVITY;
pos += vel;
}
std::cout << "pos: " << pos << std::endl;
std::cout << "prediction: " << predict() << std::endl;
return 0;
}
hmm.. why is this not the same?
output:
pos: 637.5
prediction: 625
(edited)return 0.5f * GRAVITY * TICKS * (TICKS - 1.f)
vel += GRAVITY * TICKS;
should do the trickvel += GRAVITY * TICKS;
should do the trick import std;
import std;
that isquery = 'SELECT timestamp, points FROM stats_finishes WHERE name = $1 ORDER BY timestamp;'
this is what i found in codehttp: i/o error, cannot create folder for: downloadedskins/...
even though the downloadedskins
folder exists. Deleting the downloadedskins
folder and having the client recreate it did not fix it.AntiPing -> Anti-Ping
for now.