Advertisement
ronglucky583

stop hit (no armor) attacker + victim

May 10th, 2024
600
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.96 KB | None | 0 0
  1. else if(info->m_MessageId == GE_SosStartSoundEvent)
  2.     {
  3.         CMsgSosStartSoundEvent* msg = (CMsgSosStartSoundEvent*)pData;
  4.  
  5.         /*if (msg->soundevent_hash() != -527125825 && msg->soundevent_hash() != 62938228)
  6.         {
  7.             Message("CMsgSosStartSoundEvent: soundevent_guid:%d --- soundevent_hash:%d --- start_time:%f\n", msg->soundevent_guid(),
  8.                 msg->soundevent_hash(), msg->start_time());
  9.         }*/
  10.  
  11.         if (msg->soundevent_hash() == 62938228 || msg->soundevent_hash() == -527125825) // Attacker headshot / body shot sound call back.
  12.             *(uint64*)clients &= ~g_playerManager->GetStopSoundMask();
  13.        
  14.         if (msg->soundevent_hash() == 2019962436 || msg->soundevent_hash() == -2010269021) // victim headshot shot sound call back.
  15.             *(uint64*)clients &= ~g_playerManager->GetStopSoundMask();
  16.        
  17.         if (msg->soundevent_hash() == -1847647044 || msg->soundevent_hash() == 856190898) // victim body shot sound call back.
  18.             *(uint64*)clients &= ~g_playerManager->GetStopSoundMask();
  19.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement