fix: crash with hl25 structs on xash3d again

fix: %t placeholder should return damage inflictor when used in team attack section of chat
fix: all arguments in bot commands are lowercased (resolves #680)
bot: disable threads when engine's timescale is active
bot: a little refactor for the code all over the places
linkage: resolved crash due to sse alignment on ancient engines (resolves #614)
utils move wave parse into crlib
practice: move loading practice to thread pool
build: allow to build with static linkents instead of hooking dlsym

Co-Authored-By: Max <161382234+dyspose@users.noreply.github.com>
This commit is contained in:
jeefo 2025-03-16 18:25:15 +03:00
commit 38c45aff9a
No known key found for this signature in database
GPG key ID: D696786B81B667C8
37 changed files with 348 additions and 304 deletions

View file

@ -3712,20 +3712,20 @@ void Bot::takeBlind (int alpha) {
if (m_difficulty <= Difficulty::Normal) {
m_blindMoveSpeed = 0.0f;
m_blindSidemoveSpeed = 0.0f;
m_blindSideMoveSpeed = 0.0f;
m_blindButton = IN_DUCK;
return;
}
m_blindNodeIndex = findCoverNode (512.0f);
m_blindMoveSpeed = -pev->maxspeed;
m_blindSidemoveSpeed = 0.0f;
m_blindSideMoveSpeed = 0.0f;
if (rg.chance (50)) {
m_blindSidemoveSpeed = pev->maxspeed;
m_blindSideMoveSpeed = pev->maxspeed;
}
else {
m_blindSidemoveSpeed = -pev->maxspeed;
m_blindSideMoveSpeed = -pev->maxspeed;
}
if (m_healthValue < 85.0f) {
@ -3994,7 +3994,7 @@ void Bot::runMovement () {
// translate bot buttons
translateInput ();
engfuncs.pfnRunPlayerMove (pev->pContainingEntity,
engfuncs.pfnRunPlayerMove (ent (),
getRpmAngles (), m_moveSpeed, m_strafeSpeed,
0.0f, static_cast <uint16_t> (pev->button), static_cast <uint8_t> (pev->impulse), msecVal);