-
Автор темы
- #1
let me show you how its done lets take a look at that shit
first step
find your voice
Step 2
from this site convert this voice to byte and copy all byte code
Step 3
find lw source resources/customsound.cpp
Step 4
customsound.cpp create as in the example and remove //byte and copy all byte code
Step5
find resources/customsound.hpp create as in the example
Step8
find resources/sounds.hpp create as in the example
Step9
find constchars.h const char* sounds[] =
create as in the example
Step10
find hook/hooks/hooked_events.cpp
finsh this shit lets try
first step
find your voice
Step 2
from this site convert this voice to byte and copy all byte code
Пожалуйста, авторизуйтесь для просмотра ссылки.
Step 3
find lw source resources/customsound.cpp
Step 4
customsound.cpp create as in the example and remove //byte and copy all byte code
C++:
unsigned char customsound[] =
{
//byte
};
find resources/customsound.hpp create as in the example
C++:
extern unsigned char customsound[];
find resources/sounds.hpp create as in the example
C++:
file = fopen(crypt_str("csgo\\sound\\customsound.wav"), crypt_str("wb"));
fwrite(customsound, sizeof(unsigned char), 765558, file); //-V575
fclose(file);
find constchars.h const char* sounds[] =
Код:
"custom sound",
Step10
find hook/hooks/hooked_events.cpp
C++:
case 7:
m_surface()->PlaySound_(crypt_str("customsound.wav"));
break;