-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dormant.h
47 lines (40 loc) · 933 Bytes
/
Dormant.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#pragma once
#include "VMT_Manager.h"
#include "cMainStruct.h"
class IBasePlayer;
class CDormantEsp
{
public:
void Start();
bool AdjustSound(IBasePlayer* player);
void StartAdjust(IBasePlayer* player, SndInfo_t& sound);
bool IsValidSound(SndInfo_t& sound);
struct SoundPlayer
{
void reset(bool store_data = false, const Vector& origin = Vector(), int flags = 0)
{
if (store_data)
{
m_iReceiveTime = interfaces.global_vars->realtime;
m_vecOrigin = origin;
m_nFlags = flags;
}
else
{
m_iReceiveTime = 0.0f;
m_vecOrigin.Zero();
m_nFlags = 0;
}
}
void Override(SndInfo_t& sound)
{
m_iReceiveTime = interfaces.global_vars->realtime;
m_vecOrigin = *sound.m_pOrigin;
}
float m_iReceiveTime = 0.0f;
Vector m_vecOrigin = Vector();
int m_nFlags = 0;
} m_cSoundPlayers[65];
CUtlVector <SndInfo_t> m_utlvecSoundBuffer;
CUtlVector <SndInfo_t> m_utlCurSoundList;
};