-
Автор темы
- #1
not gonna spoon feed but this help alot
example
Код:
if (// use brain) {
// set something false here
g_cmd-> viewangles.y = NormalizeYaw (g_cmd-> viewangles.y + (// amount to flick * // side)); // Break lby with our desired flick distance
// To rotate our body away from the fake
// Extending our actual desync by about
// 35 degrees (new max around 90 degrees)
// Do our real next tick
// Choke the current tick so the lby flick can't be backtracked
}
if (// choke) {
g_cmd-> viewangles.y = NormalizeYaw (g_cmd-> viewangles.y + (GetMaxDesyncDelta * // side * 2)); // Make sure our desync approaches the maximum value
// Look at server SetupVelocity for why we don't just add our max desync delta
if (// choked> // magic)
// Choked too many ticks - send the next tick and run real so Do our real next tick
}
else {
}
Пожалуйста, авторизуйтесь для просмотра ссылки.
Последнее редактирование: