Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/game/server/neo/neo_player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1293,6 +1293,9 @@ void CNEO_Player::PlayCloakSound(bool removeLocalPlayer)
// effect lasts 0.5 seconds, but allow 200-300ms leeway with GetFogObscuredRatio cache window
m_botThermOpticCamoDisruptedTimer.Start(0.2f);
}

// For bots to notice cloak sound
CSoundEnt::InsertSound(SOUND_COMBAT, GetAbsOrigin(), 600, 0.2, this);
}

void CNEO_Player::SetCloakState(bool state)
Expand Down Expand Up @@ -2949,6 +2952,8 @@ void CNEO_Player::PickupObject( CBaseEntity *pObject,
void CNEO_Player::PlayStepSound( Vector &vecOrigin,
surfacedata_t *psurface, float fvol, bool force )
{
// For bots to hear footsteps
CSoundEnt::InsertSound(SOUND_PLAYER, GetAbsOrigin(), 150, 0.1, this);

@sunzenshen sunzenshen Jul 16, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I honestly have no idea if the distance numbers I chose for these InsertSound calls make sense. I estimated them assuming that a player width is 32 units.

BaseClass::PlayStepSound(vecOrigin, psurface, fvol, force);
}

Expand Down