This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
extern int accountcampaignchoices[10][5000];
/********************> Tick() <*****/
extern FSOUND_STREAM * strm[20];
extern int accountcampaignchoices[10][5000];
/********************> Tick() <*****/
extern FSOUND_STREAM * strm[20];
-extern "C" void PlaySoundEx(int channel, FSOUND_SAMPLE *sptr, FSOUND_DSPUNIT *dsp, signed char startpaused);
+extern "C" void PlaySoundEx(int channel, FSOUND_SAMPLE *sptr, FSOUND_DSPUNIT *dsp, signed char startpaused);
extern "C" void PlayStreamEx(int chan, FSOUND_STREAM *sptr, FSOUND_DSPUNIT *dsp, signed char startpaused);
extern void ScreenShot(const char * fname);
extern "C" void PlayStreamEx(int chan, FSOUND_STREAM *sptr, FSOUND_DSPUNIT *dsp, signed char startpaused);
extern void ScreenShot(const char * fname);
struct tm *tme = localtime(&t);
sprintf(temp, "Screenshots\\Screenshot_%04d_%02d_%02d--%02d_%02d_%02d.png", tme->tm_year + 1900, tme->tm_mon + 1, tme->tm_mday, tme->tm_hour, tme->tm_min, tme->tm_sec);
struct tm *tme = localtime(&t);
sprintf(temp, "Screenshots\\Screenshot_%04d_%02d_%02d--%02d_%02d_%02d.png", tme->tm_year + 1900, tme->tm_mon + 1, tme->tm_mday, tme->tm_hour, tme->tm_min, tme->tm_sec);
OSErr MAC_error_code;
CGrafPtr MAC_currentPort;
GDHandle MAC_currentDevice;
unsigned char* MAC_pixels;
Rect MAC_picture_rectangle;
OSErr MAC_error_code;
CGrafPtr MAC_currentPort;
GDHandle MAC_currentDevice;
unsigned char* MAC_pixels;
Rect MAC_picture_rectangle;
// Make a picture Rectangle
MAC_picture_rectangle.left = 0;
MAC_picture_rectangle.right = screenwidth;
MAC_picture_rectangle.top = 0;
// Make a picture Rectangle
MAC_picture_rectangle.left = 0;
MAC_picture_rectangle.right = screenwidth;
MAC_picture_rectangle.top = 0;
// Create new offscreen GWorld
MAC_error_code = ::QTNewGWorldFromPtr (&MAC_offscreen_graphics_port, k32ARGBPixelFormat, &MAC_picture_rectangle, NULL, NULL, 0, (char *) MAC_pixels, screenwidth * 4);
if (MAC_error_code) {
// Create new offscreen GWorld
MAC_error_code = ::QTNewGWorldFromPtr (&MAC_offscreen_graphics_port, k32ARGBPixelFormat, &MAC_picture_rectangle, NULL, NULL, 0, (char *) MAC_pixels, screenwidth * 4);
if (MAC_error_code) {
glReadPixels(0,0,screenwidth,screenheight,GL_RGBA,GL_UNSIGNED_BYTE,MAC_pixels);
// Swizzle texture
glReadPixels(0,0,screenwidth,screenheight,GL_RGBA,GL_UNSIGNED_BYTE,MAC_pixels);
// Swizzle texture
src_index = (screenwidth * vert + horz) * 4;
dst_index = (screenwidth * (screenheight - vert - 1) + horz) * 4;
src_index = (screenwidth * vert + horz) * 4;
dst_index = (screenwidth * (screenheight - vert - 1) + horz) * 4;
// Export the Gworld
MAC_error_code = OpenADefaultComponent(GraphicsExporterComponentType, kQTFileTypeBMP, &QT_exporter);
if (MAC_error_code) {
// Export the Gworld
MAC_error_code = OpenADefaultComponent(GraphicsExporterComponentType, kQTFileTypeBMP, &QT_exporter);
if (MAC_error_code) {
- //UTIL_Warning("Unable to export screenshot.");
- ::SetGWorld(MAC_currentPort, MAC_currentDevice);
+ //UTIL_Warning("Unable to export screenshot.");
+ ::SetGWorld(MAC_currentPort, MAC_currentDevice);
MAC_error_code = GraphicsExportSetOutputFile(QT_exporter,&MAC_file);
if (MAC_error_code) {
::CloseComponent(QT_exporter);
MAC_error_code = GraphicsExportSetOutputFile(QT_exporter,&MAC_file);
if (MAC_error_code) {
::CloseComponent(QT_exporter);
MAC_error_code = GraphicsExportDoExport(QT_exporter,NULL);
if (MAC_error_code) {
::CloseComponent(QT_exporter);
MAC_error_code = GraphicsExportDoExport(QT_exporter,NULL);
if (MAC_error_code) {
::CloseComponent(QT_exporter);
::CloseComponent(QT_exporter);
::SetGWorld(MAC_currentPort, MAC_currentDevice);
::CloseComponent(QT_exporter);
::SetGWorld(MAC_currentPort, MAC_currentDevice);
light.color[2]*=(skyboxlightb+average)/2;
light.ambient[0]=light.ambient[0]*(skyboxlightr+average)/2*1;
light.ambient[1]=light.ambient[1]*(skyboxlightg+average)/2*1;
light.color[2]*=(skyboxlightb+average)/2;
light.ambient[0]=light.ambient[0]*(skyboxlightr+average)/2*1;
light.ambient[1]=light.ambient[1]*(skyboxlightg+average)/2*1;
- if(objects.model[i].LineCheck(&colviewer,&coltarget,&colpoint,&objects.position[i],&objects.rotation[i])!=-1)return i;
+ if(objects.model[i].LineCheck(&colviewer,&coltarget,&colpoint,&objects.position[i],&objects.rotation[i])!=-1)return i;
- if(objects.model[what].LineCheck(&colviewer,&coltarget,&colpoint,&objects.position[what],&objects.rotation[what])!=-1)return i;
+ if(objects.model[what].LineCheck(&colviewer,&coltarget,&colpoint,&objects.position[what],&objects.rotation[what])!=-1)return i;
- FSOUND_SetPaused(channels[music1snow], TRUE);
- FSOUND_SetPaused(channels[music1grass], TRUE);
- FSOUND_SetPaused(channels[music1desert], TRUE);
- FSOUND_SetPaused(channels[wind], TRUE);
- FSOUND_SetPaused(channels[desertambient], TRUE);
+ FSOUND_SetPaused(channels[music1snow], true);
+ FSOUND_SetPaused(channels[music1grass], true);
+ FSOUND_SetPaused(channels[music1desert], true);
+ FSOUND_SetPaused(channels[wind], true);
+ FSOUND_SetPaused(channels[desertambient], true);
- FSOUND_SetPaused(channels[stream_music1snow], TRUE);
- FSOUND_SetPaused(channels[stream_music1grass], TRUE);
- FSOUND_SetPaused(channels[stream_music1desert], TRUE);
- FSOUND_SetPaused(channels[stream_wind], TRUE);
- FSOUND_SetPaused(channels[stream_desertambient], TRUE);
+ FSOUND_SetPaused(channels[stream_music1snow], true);
+ FSOUND_SetPaused(channels[stream_music1grass], true);
+ FSOUND_SetPaused(channels[stream_music1desert], true);
+ FSOUND_SetPaused(channels[stream_wind], true);
+ FSOUND_SetPaused(channels[stream_desertambient], true);
- //PlaySoundEx( wind, samp[wind], NULL, TRUE);
- PlayStreamEx(stream_wind, strm[stream_wind], 0, TRUE);
- FSOUND_SetPaused(channels[stream_wind], FALSE);
+ //PlaySoundEx( wind, samp[wind], NULL, true);
+ PlayStreamEx(stream_wind, strm[stream_wind], 0, true);
+ FSOUND_SetPaused(channels[stream_wind], false);
samp[footstepsound2] = FSOUND_Sample_Load(FSOUND_FREE, ":Data:Sounds:footstepsnow2.ogg", FSOUND_HW3D, 0, 0);
samp[footstepsound3] = FSOUND_Sample_Load(FSOUND_FREE, ":Data:Sounds:footstepstone1.ogg", FSOUND_HW3D, 0, 0);
samp[footstepsound4] = FSOUND_Sample_Load(FSOUND_FREE, ":Data:Sounds:footstepstone2.ogg", FSOUND_HW3D, 0, 0);
samp[footstepsound2] = FSOUND_Sample_Load(FSOUND_FREE, ":Data:Sounds:footstepsnow2.ogg", FSOUND_HW3D, 0, 0);
samp[footstepsound3] = FSOUND_Sample_Load(FSOUND_FREE, ":Data:Sounds:footstepstone1.ogg", FSOUND_HW3D, 0, 0);
samp[footstepsound4] = FSOUND_Sample_Load(FSOUND_FREE, ":Data:Sounds:footstepstone2.ogg", FSOUND_HW3D, 0, 0);
- FSOUND_Sample_SetMinMaxDistance(samp[footstepsound], 4.0f, 1000.0f);
- FSOUND_Sample_SetMinMaxDistance(samp[footstepsound2], 4.0f, 1000.0f);
- FSOUND_Sample_SetMinMaxDistance(samp[footstepsound3], 4.0f, 1000.0f);
- FSOUND_Sample_SetMinMaxDistance(samp[footstepsound4], 4.0f, 1000.0f);
+ FSOUND_Sample_SetMinMaxDistance(samp[footstepsound], 4.0f, 1000.0f);
+ FSOUND_Sample_SetMinMaxDistance(samp[footstepsound2], 4.0f, 1000.0f);
+ FSOUND_Sample_SetMinMaxDistance(samp[footstepsound3], 4.0f, 1000.0f);
+ FSOUND_Sample_SetMinMaxDistance(samp[footstepsound4], 4.0f, 1000.0f);
LoadTexture(":Data:Textures:snow.jpg",&terraintexture,1,0);
LoadTexture(":Data:Textures:snow.jpg",&terraintexture,1,0);
- //PlaySoundEx( desertambient, samp[desertambient], NULL, TRUE);
- PlayStreamEx( stream_desertambient, strm[stream_desertambient], NULL, TRUE);
- FSOUND_SetPaused(channels[stream_desertambient], FALSE);
+ //PlaySoundEx( desertambient, samp[desertambient], NULL, true);
+ PlayStreamEx( stream_desertambient, strm[stream_desertambient], NULL, true);
+ FSOUND_SetPaused(channels[stream_desertambient], false);
samp[footstepsound2] = FSOUND_Sample_Load(FSOUND_FREE, ":Data:Sounds:footstepsnow2.ogg", FSOUND_HW3D, 0, 0);
samp[footstepsound3] = FSOUND_Sample_Load(FSOUND_FREE, ":Data:Sounds:footstepsnow1.ogg", FSOUND_HW3D, 0, 0);
samp[footstepsound4] = FSOUND_Sample_Load(FSOUND_FREE, ":Data:Sounds:footstepsnow2.ogg", FSOUND_HW3D, 0, 0);
samp[footstepsound2] = FSOUND_Sample_Load(FSOUND_FREE, ":Data:Sounds:footstepsnow2.ogg", FSOUND_HW3D, 0, 0);
samp[footstepsound3] = FSOUND_Sample_Load(FSOUND_FREE, ":Data:Sounds:footstepsnow1.ogg", FSOUND_HW3D, 0, 0);
samp[footstepsound4] = FSOUND_Sample_Load(FSOUND_FREE, ":Data:Sounds:footstepsnow2.ogg", FSOUND_HW3D, 0, 0);
- FSOUND_Sample_SetMinMaxDistance(samp[footstepsound], 4.0f, 1000.0f);
- FSOUND_Sample_SetMinMaxDistance(samp[footstepsound2], 4.0f, 1000.0f);
- FSOUND_Sample_SetMinMaxDistance(samp[footstepsound3], 4.0f, 1000.0f);
- FSOUND_Sample_SetMinMaxDistance(samp[footstepsound4], 4.0f, 1000.0f);
+ FSOUND_Sample_SetMinMaxDistance(samp[footstepsound], 4.0f, 1000.0f);
+ FSOUND_Sample_SetMinMaxDistance(samp[footstepsound2], 4.0f, 1000.0f);
+ FSOUND_Sample_SetMinMaxDistance(samp[footstepsound3], 4.0f, 1000.0f);
+ FSOUND_Sample_SetMinMaxDistance(samp[footstepsound4], 4.0f, 1000.0f);
LoadTexture(":Data:Textures:sand.jpg",&terraintexture,1,0);
LoadTexture(":Data:Textures:sand.jpg",&terraintexture,1,0);
LoadTexture(":Data:Textures:grassbox.jpg",&objects.boxtextureptr,1,0);
if(ambientsound){
LoadTexture(":Data:Textures:grassbox.jpg",&objects.boxtextureptr,1,0);
if(ambientsound){
- PlayStreamEx( stream_wind, strm[stream_wind], NULL, TRUE);
- FSOUND_SetPaused(channels[stream_wind], FALSE);
+ PlayStreamEx( stream_wind, strm[stream_wind], NULL, true);
+ FSOUND_SetPaused(channels[stream_wind], false);
samp[footstepsound2] = FSOUND_Sample_Load(FSOUND_FREE, ":Data:Sounds:footstepgrass2.ogg", FSOUND_HW3D, 0, 0);
samp[footstepsound3] = FSOUND_Sample_Load(FSOUND_FREE, ":Data:Sounds:footstepstone1.ogg", FSOUND_HW3D, 0, 0);
samp[footstepsound4] = FSOUND_Sample_Load(FSOUND_FREE, ":Data:Sounds:footstepstone2.ogg", FSOUND_HW3D, 0, 0);
samp[footstepsound2] = FSOUND_Sample_Load(FSOUND_FREE, ":Data:Sounds:footstepgrass2.ogg", FSOUND_HW3D, 0, 0);
samp[footstepsound3] = FSOUND_Sample_Load(FSOUND_FREE, ":Data:Sounds:footstepstone1.ogg", FSOUND_HW3D, 0, 0);
samp[footstepsound4] = FSOUND_Sample_Load(FSOUND_FREE, ":Data:Sounds:footstepstone2.ogg", FSOUND_HW3D, 0, 0);
- FSOUND_Sample_SetMinMaxDistance(samp[footstepsound], 4.0f, 1000.0f);
- FSOUND_Sample_SetMinMaxDistance(samp[footstepsound2], 4.0f, 1000.0f);
- FSOUND_Sample_SetMinMaxDistance(samp[footstepsound3], 4.0f, 1000.0f);
- FSOUND_Sample_SetMinMaxDistance(samp[footstepsound4], 4.0f, 1000.0f);
+ FSOUND_Sample_SetMinMaxDistance(samp[footstepsound], 4.0f, 1000.0f);
+ FSOUND_Sample_SetMinMaxDistance(samp[footstepsound2], 4.0f, 1000.0f);
+ FSOUND_Sample_SetMinMaxDistance(samp[footstepsound3], 4.0f, 1000.0f);
+ FSOUND_Sample_SetMinMaxDistance(samp[footstepsound4], 4.0f, 1000.0f);
LoadTexture(":Data:Textures:grassdirt.jpg",&terraintexture,1,0);
LoadTexture(":Data:Textures:grassdirt.jpg",&terraintexture,1,0);
- FSOUND_SetPaused(channels[whooshsound], TRUE);
- FSOUND_SetPaused(channels[stream_firesound], TRUE);
+ FSOUND_SetPaused(channels[whooshsound], true);
+ FSOUND_SetPaused(channels[stream_firesound], true);
- PlaySoundEx( consolesuccesssound, samp[consolesuccesssound], NULL, TRUE);
+ PlaySoundEx( consolesuccesssound, samp[consolesuccesssound], NULL, true);
for(m=0;m<templength;m++){
funpackf(tfile, "Bb", &dialoguename[k][l][m]);
if(dialoguename[k][l][m]=='\0'){
for(m=0;m<templength;m++){
funpackf(tfile, "Bb", &dialoguename[k][l][m]);
if(dialoguename[k][l][m]=='\0'){
}
}
funpackf(tfile, "Bf Bf Bf", &dialoguecamera[k][l].x, &dialoguecamera[k][l].y, &dialoguecamera[k][l].z);
}
}
funpackf(tfile, "Bf Bf Bf", &dialoguecamera[k][l].x, &dialoguecamera[k][l].y, &dialoguecamera[k][l].z);
for(l=0;l<templength;l++)
funpackf(tfile, "Bb", &player[0].clothes[k][l]);
player[0].clothes[k][templength]='\0';
for(l=0;l<templength;l++)
funpackf(tfile, "Bb", &player[0].clothes[k][l]);
player[0].clothes[k][templength]='\0';
- funpackf(tfile, "Bf Bf Bf", &player[0].clothestintr[k], &player[0].clothestintg[k], &player[0].clothestintb[k]);
+ funpackf(tfile, "Bf Bf Bf", &player[0].clothestintr[k], &player[0].clothestintg[k], &player[0].clothestintb[k]);
for(l=0;l<templength;l++)
funpackf(tfile, "Bb", &player[i-howmanyremoved].clothes[k][l]);
player[i-howmanyremoved].clothes[k][templength]='\0';
for(l=0;l<templength;l++)
funpackf(tfile, "Bb", &player[i-howmanyremoved].clothes[k][l]);
player[i-howmanyremoved].clothes[k][templength]='\0';
- funpackf(tfile, "Bf Bf Bf", &player[i-howmanyremoved].clothestintr[k], &player[i-howmanyremoved].clothestintg[k], &player[i-howmanyremoved].clothestintb[k]);
+ funpackf(tfile, "Bf Bf Bf", &player[i-howmanyremoved].clothestintr[k], &player[i-howmanyremoved].clothestintg[k], &player[i-howmanyremoved].clothestintb[k]);
- PlayStreamEx(stream_wind, strm[stream_wind], NULL, TRUE);
- FSOUND_SetPaused(channels[stream_wind], FALSE);
+ PlayStreamEx(stream_wind, strm[stream_wind], NULL, true);
+ FSOUND_SetPaused(channels[stream_wind], false);
- strm[stream_desertambient], NULL, TRUE);
- FSOUND_SetPaused(channels[stream_desertambient], FALSE);
+ strm[stream_desertambient], NULL, true);
+ FSOUND_SetPaused(channels[stream_desertambient], false);
- //PlaySoundEx(wind, samp[wind], NULL, TRUE);
- PlayStreamEx(stream_wind, strm[stream_wind], NULL, TRUE);
- FSOUND_SetPaused(channels[stream_wind], FALSE);
+ //PlaySoundEx(wind, samp[wind], NULL, true);
+ PlayStreamEx(stream_wind, strm[stream_wind], NULL, true);
+ FSOUND_SetPaused(channels[stream_wind], false);
- PlaySoundEx( consolesuccesssound, samp[consolesuccesssound], NULL, TRUE);
+ PlaySoundEx( consolesuccesssound, samp[consolesuccesssound], NULL, true);
- FSOUND_Sample_SetMinMaxDistance(samp[firestartsound], 9999.0f, 99999.0f);
- PlaySoundEx( firestartsound, samp[firestartsound], NULL, TRUE);
+ FSOUND_Sample_SetMinMaxDistance(samp[firestartsound], 9999.0f, 99999.0f);
+ PlaySoundEx( firestartsound, samp[firestartsound], NULL, true);
FSOUND_3D_SetAttributes(channels[firestartsound], gLoc, vel);
FSOUND_SetVolume(channels[firestartsound], 256);
FSOUND_3D_SetAttributes(channels[firestartsound], gLoc, vel);
FSOUND_SetVolume(channels[firestartsound], 256);
- FSOUND_SetPaused(channels[firestartsound], FALSE);
- FSOUND_Sample_SetMinMaxDistance(samp[firestartsound], 8.0f, 2000.0f);
+ FSOUND_SetPaused(channels[firestartsound], false);
+ FSOUND_Sample_SetMinMaxDistance(samp[firestartsound], 8.0f, 2000.0f);
if(mainmenu&&musictoggle){
if(mainmenu==1||mainmenu==2||mainmenu==100){
FSOUND_SetFrequency(FSOUND_ALL, 0.001);
if(mainmenu&&musictoggle){
if(mainmenu==1||mainmenu==2||mainmenu==100){
FSOUND_SetFrequency(FSOUND_ALL, 0.001);
- PlayStreamEx( stream_music3, strm[stream_music3], NULL, TRUE);
- FSOUND_SetPaused(channels[stream_music3], FALSE);
+ PlayStreamEx( stream_music3, strm[stream_music3], NULL, true);
+ FSOUND_SetPaused(channels[stream_music3], false);
- FSOUND_SetPaused(channels[stream_music3], TRUE);
- FSOUND_SetPaused(channels[music1], FALSE);
+ FSOUND_SetPaused(channels[stream_music3], true);
+ FSOUND_SetPaused(channels[music1], false);
- FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 9999.0f, 99999.0f);
- PlaySoundEx( fireendsound, samp[fireendsound], NULL, TRUE);
+ FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 9999.0f, 99999.0f);
+ PlaySoundEx( fireendsound, samp[fireendsound], NULL, true);
FSOUND_3D_SetAttributes(channels[fireendsound], gLoc, vel);
FSOUND_SetVolume(channels[fireendsound], 256);
FSOUND_3D_SetAttributes(channels[fireendsound], gLoc, vel);
FSOUND_SetVolume(channels[fireendsound], 256);
- FSOUND_SetPaused(channels[fireendsound], FALSE);
- FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 8.0f, 2000.0f);
+ FSOUND_SetPaused(channels[fireendsound], false);
+ FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 8.0f, 2000.0f);
- FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 9999.0f, 99999.0f);
- PlaySoundEx( fireendsound, samp[fireendsound], NULL, TRUE);
+ FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 9999.0f, 99999.0f);
+ PlaySoundEx( fireendsound, samp[fireendsound], NULL, true);
FSOUND_3D_SetAttributes(channels[fireendsound], gLoc, vel);
FSOUND_SetVolume(channels[fireendsound], 256);
FSOUND_3D_SetAttributes(channels[fireendsound], gLoc, vel);
FSOUND_SetVolume(channels[fireendsound], 256);
- FSOUND_SetPaused(channels[fireendsound], FALSE);
- FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 8.0f, 2000.0f);
+ FSOUND_SetPaused(channels[fireendsound], false);
+ FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 8.0f, 2000.0f);
if(mainmenu==3&&gameon)mainmenu=2;
if(mainmenu==3&&!gameon)mainmenu=1;
if(mainmenu==5&&gameon)mainmenu=2;
if(mainmenu==3&&gameon)mainmenu=2;
if(mainmenu==3&&!gameon)mainmenu=1;
if(mainmenu==5&&gameon)mainmenu=2;
if(IsKeyDown(theKeyMap, MAC_TAB_KEY)&&!minimaptogglekeydown&&tutoriallevel){
if(tutorialstage!=51)
tutorialstagetime=tutorialmaxtime;
if(IsKeyDown(theKeyMap, MAC_TAB_KEY)&&!minimaptogglekeydown&&tutoriallevel){
if(tutorialstage!=51)
tutorialstagetime=tutorialmaxtime;
- PlaySoundEx( consolefailsound, samp[consolefailsound], NULL, TRUE);
+ PlaySoundEx( consolefailsound, samp[consolefailsound], NULL, true);
- FSOUND_Sample_SetMinMaxDistance(samp[firestartsound], 9999.0f, 99999.0f);
- PlaySoundEx( firestartsound, samp[firestartsound], NULL, TRUE);
+ FSOUND_Sample_SetMinMaxDistance(samp[firestartsound], 9999.0f, 99999.0f);
+ PlaySoundEx( firestartsound, samp[firestartsound], NULL, true);
FSOUND_3D_SetAttributes(channels[firestartsound], gLoc, vel);
FSOUND_SetVolume(channels[firestartsound], 256);
FSOUND_3D_SetAttributes(channels[firestartsound], gLoc, vel);
FSOUND_SetVolume(channels[firestartsound], 256);
- FSOUND_SetPaused(channels[firestartsound], FALSE);
- FSOUND_Sample_SetMinMaxDistance(samp[firestartsound], 8.0f, 2000.0f);
+ FSOUND_SetPaused(channels[firestartsound], false);
+ FSOUND_Sample_SetMinMaxDistance(samp[firestartsound], 8.0f, 2000.0f);
- FSOUND_SetPaused(channels[stream_music3], TRUE);
- FSOUND_SetPaused(channels[music1], FALSE);
+ FSOUND_SetPaused(channels[stream_music3], true);
+ FSOUND_SetPaused(channels[music1], false);
- FSOUND_Sample_SetMinMaxDistance(samp[firestartsound], 9999.0f, 99999.0f);
- PlaySoundEx( firestartsound, samp[firestartsound], NULL, TRUE);
+ FSOUND_Sample_SetMinMaxDistance(samp[firestartsound], 9999.0f, 99999.0f);
+ PlaySoundEx( firestartsound, samp[firestartsound], NULL, true);
FSOUND_3D_SetAttributes(channels[firestartsound], gLoc, vel);
FSOUND_SetVolume(channels[firestartsound], 256);
FSOUND_3D_SetAttributes(channels[firestartsound], gLoc, vel);
FSOUND_SetVolume(channels[firestartsound], 256);
- FSOUND_SetPaused(channels[firestartsound], FALSE);
- FSOUND_Sample_SetMinMaxDistance(samp[firestartsound], 8.0f, 2000.0f);
+ FSOUND_SetPaused(channels[firestartsound], false);
+ FSOUND_Sample_SetMinMaxDistance(samp[firestartsound], 8.0f, 2000.0f);
if(newdetail>2)newdetail=detail;
if(newdetail<0)newdetail=detail;
if(newscreenwidth>3000)newscreenwidth=screenwidth;
if(newscreenwidth<0)newscreenwidth=screenwidth;
if(newscreenheight>3000)newscreenheight=screenheight;
if(newdetail>2)newdetail=detail;
if(newdetail<0)newdetail=detail;
if(newscreenwidth>3000)newscreenwidth=screenwidth;
if(newscreenwidth<0)newscreenwidth=screenwidth;
if(newscreenheight>3000)newscreenheight=screenheight;
- FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 9999.0f, 99999.0f);
- PlaySoundEx( fireendsound, samp[fireendsound], NULL, TRUE);
+ FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 9999.0f, 99999.0f);
+ PlaySoundEx( fireendsound, samp[fireendsound], NULL, true);
FSOUND_3D_SetAttributes(channels[fireendsound], gLoc, vel);
FSOUND_SetVolume(channels[fireendsound], 256);
FSOUND_3D_SetAttributes(channels[fireendsound], gLoc, vel);
FSOUND_SetVolume(channels[fireendsound], 256);
- FSOUND_SetPaused(channels[fireendsound], FALSE);
- FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 8.0f, 2000.0f);
+ FSOUND_SetPaused(channels[fireendsound], false);
+ FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 8.0f, 2000.0f);
- FSOUND_Sample_SetMinMaxDistance(samp[firestartsound], 9999.0f, 99999.0f);
- PlaySoundEx( firestartsound, samp[firestartsound], NULL, TRUE);
+ FSOUND_Sample_SetMinMaxDistance(samp[firestartsound], 9999.0f, 99999.0f);
+ PlaySoundEx( firestartsound, samp[firestartsound], NULL, true);
FSOUND_3D_SetAttributes(channels[firestartsound], gLoc, vel);
FSOUND_SetVolume(channels[firestartsound], 256);
FSOUND_3D_SetAttributes(channels[firestartsound], gLoc, vel);
FSOUND_SetVolume(channels[firestartsound], 256);
- FSOUND_SetPaused(channels[firestartsound], FALSE);
- FSOUND_Sample_SetMinMaxDistance(samp[firestartsound], 8.0f, 2000.0f);
+ FSOUND_SetPaused(channels[firestartsound], false);
+ FSOUND_Sample_SetMinMaxDistance(samp[firestartsound], 8.0f, 2000.0f);
- FSOUND_SetPaused(channels[music1], TRUE);
- FSOUND_SetPaused(channels[stream_music2], TRUE);
- FSOUND_SetPaused(channels[stream_music3], TRUE);
+ FSOUND_SetPaused(channels[music1], true);
+ FSOUND_SetPaused(channels[stream_music2], true);
+ FSOUND_SetPaused(channels[stream_music3], true);
- PlayStreamEx( stream_music3, strm[stream_music3], NULL, TRUE);
- FSOUND_SetPaused(channels[stream_music3], FALSE);
- FSOUND_SetVolume(channels[stream_music3], 256);
+ PlayStreamEx( stream_music3, strm[stream_music3], NULL, true);
+ FSOUND_SetPaused(channels[stream_music3], false);
+ FSOUND_SetVolume(channels[stream_music3], 256);
- FSOUND_Sample_SetMinMaxDistance(samp[firestartsound], 9999.0f, 99999.0f);
- PlaySoundEx( firestartsound, samp[firestartsound], NULL, TRUE);
+ FSOUND_Sample_SetMinMaxDistance(samp[firestartsound], 9999.0f, 99999.0f);
+ PlaySoundEx( firestartsound, samp[firestartsound], NULL, true);
FSOUND_3D_SetAttributes(channels[firestartsound], gLoc, vel);
FSOUND_SetVolume(channels[firestartsound], 256);
FSOUND_3D_SetAttributes(channels[firestartsound], gLoc, vel);
FSOUND_SetVolume(channels[firestartsound], 256);
- FSOUND_SetPaused(channels[firestartsound], FALSE);
- FSOUND_Sample_SetMinMaxDistance(samp[firestartsound], 8.0f, 2000.0f);
+ FSOUND_SetPaused(channels[firestartsound], false);
+ FSOUND_Sample_SetMinMaxDistance(samp[firestartsound], 8.0f, 2000.0f);
- FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 9999.0f, 99999.0f);
- PlaySoundEx( fireendsound, samp[fireendsound], NULL, TRUE);
+ FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 9999.0f, 99999.0f);
+ PlaySoundEx( fireendsound, samp[fireendsound], NULL, true);
FSOUND_3D_SetAttributes(channels[fireendsound], gLoc, vel);
FSOUND_SetVolume(channels[fireendsound], 256);
FSOUND_3D_SetAttributes(channels[fireendsound], gLoc, vel);
FSOUND_SetVolume(channels[fireendsound], 256);
- FSOUND_SetPaused(channels[fireendsound], FALSE);
- FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 8.0f, 2000.0f);
+ FSOUND_SetPaused(channels[fireendsound], false);
+ FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 8.0f, 2000.0f);
- FSOUND_Sample_SetMinMaxDistance(samp[firestartsound], 9999.0f, 99999.0f);
- PlaySoundEx( firestartsound, samp[firestartsound], NULL, TRUE);
+ FSOUND_Sample_SetMinMaxDistance(samp[firestartsound], 9999.0f, 99999.0f);
+ PlaySoundEx( firestartsound, samp[firestartsound], NULL, true);
FSOUND_3D_SetAttributes(channels[firestartsound], gLoc, vel);
FSOUND_SetVolume(channels[firestartsound], 256);
FSOUND_3D_SetAttributes(channels[firestartsound], gLoc, vel);
FSOUND_SetVolume(channels[firestartsound], 256);
- FSOUND_SetPaused(channels[firestartsound], FALSE);
- FSOUND_Sample_SetMinMaxDistance(samp[firestartsound], 8.0f, 2000.0f);
+ FSOUND_SetPaused(channels[firestartsound], false);
+ FSOUND_Sample_SetMinMaxDistance(samp[firestartsound], 8.0f, 2000.0f);
- FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 9999.0f, 99999.0f);
- PlaySoundEx( fireendsound, samp[fireendsound], NULL, TRUE);
+ FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 9999.0f, 99999.0f);
+ PlaySoundEx( fireendsound, samp[fireendsound], NULL, true);
FSOUND_3D_SetAttributes(channels[fireendsound], gLoc, vel);
FSOUND_SetVolume(channels[fireendsound], 256);
FSOUND_3D_SetAttributes(channels[fireendsound], gLoc, vel);
FSOUND_SetVolume(channels[fireendsound], 256);
- FSOUND_SetPaused(channels[fireendsound], FALSE);
- FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 8.0f, 2000.0f);
+ FSOUND_SetPaused(channels[fireendsound], false);
+ FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 8.0f, 2000.0f);
- FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 9999.0f, 99999.0f);
- PlaySoundEx( fireendsound, samp[fireendsound], NULL, TRUE);
+ FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 9999.0f, 99999.0f);
+ PlaySoundEx( fireendsound, samp[fireendsound], NULL, true);
FSOUND_3D_SetAttributes(channels[fireendsound], gLoc, vel);
FSOUND_SetVolume(channels[fireendsound], 256);
FSOUND_3D_SetAttributes(channels[fireendsound], gLoc, vel);
FSOUND_SetVolume(channels[fireendsound], 256);
- FSOUND_SetPaused(channels[fireendsound], FALSE);
- FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 8.0f, 2000.0f);
+ FSOUND_SetPaused(channels[fireendsound], false);
+ FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 8.0f, 2000.0f);
- FSOUND_SetFrequency(FSOUND_ALL, 0.001);
- PlayStreamEx( stream_music3, strm[stream_music3], NULL, TRUE);
- FSOUND_SetPaused(channels[stream_music3], FALSE);
+ FSOUND_SetFrequency(FSOUND_ALL, 0.001);
+ PlayStreamEx( stream_music3, strm[stream_music3], NULL, true);
+ FSOUND_SetPaused(channels[stream_music3], false);
- FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 9999.0f, 99999.0f);
- PlaySoundEx( fireendsound, samp[fireendsound], NULL, TRUE);
+ FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 9999.0f, 99999.0f);
+ PlaySoundEx( fireendsound, samp[fireendsound], NULL, true);
FSOUND_3D_SetAttributes(channels[fireendsound], gLoc, vel);
FSOUND_SetVolume(channels[fireendsound], 256);
FSOUND_3D_SetAttributes(channels[fireendsound], gLoc, vel);
FSOUND_SetVolume(channels[fireendsound], 256);
- FSOUND_SetPaused(channels[fireendsound], FALSE);
- FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 8.0f, 2000.0f);
+ FSOUND_SetPaused(channels[fireendsound], false);
+ FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 8.0f, 2000.0f);
- FSOUND_Sample_SetMinMaxDistance(samp[firestartsound], 9999.0f, 99999.0f);
- PlaySoundEx( firestartsound, samp[firestartsound], NULL, TRUE);
+ FSOUND_Sample_SetMinMaxDistance(samp[firestartsound], 9999.0f, 99999.0f);
+ PlaySoundEx( firestartsound, samp[firestartsound], NULL, true);
FSOUND_3D_SetAttributes(channels[firestartsound], gLoc, vel);
FSOUND_SetVolume(channels[firestartsound], 256);
FSOUND_3D_SetAttributes(channels[firestartsound], gLoc, vel);
FSOUND_SetVolume(channels[firestartsound], 256);
- FSOUND_SetPaused(channels[firestartsound], FALSE);
- FSOUND_Sample_SetMinMaxDistance(samp[firestartsound], 8.0f, 2000.0f);
+ FSOUND_SetPaused(channels[firestartsound], false);
+ FSOUND_Sample_SetMinMaxDistance(samp[firestartsound], 8.0f, 2000.0f);
- FSOUND_Sample_SetMinMaxDistance(samp[firestartsound], 9999.0f, 99999.0f);
- PlaySoundEx( firestartsound, samp[firestartsound], NULL, TRUE);
+ FSOUND_Sample_SetMinMaxDistance(samp[firestartsound], 9999.0f, 99999.0f);
+ PlaySoundEx( firestartsound, samp[firestartsound], NULL, true);
FSOUND_3D_SetAttributes(channels[firestartsound], gLoc, vel);
FSOUND_SetVolume(channels[firestartsound], 256);
FSOUND_3D_SetAttributes(channels[firestartsound], gLoc, vel);
FSOUND_SetVolume(channels[firestartsound], 256);
- FSOUND_SetPaused(channels[firestartsound], FALSE);
- FSOUND_Sample_SetMinMaxDistance(samp[firestartsound], 8.0f, 2000.0f);
+ FSOUND_SetPaused(channels[firestartsound], false);
+ FSOUND_Sample_SetMinMaxDistance(samp[firestartsound], 8.0f, 2000.0f);
- FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 9999.0f, 99999.0f);
- PlaySoundEx( fireendsound, samp[fireendsound], NULL, TRUE);
+ FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 9999.0f, 99999.0f);
+ PlaySoundEx( fireendsound, samp[fireendsound], NULL, true);
FSOUND_3D_SetAttributes(channels[fireendsound], gLoc, vel);
FSOUND_SetVolume(channels[fireendsound], 256);
FSOUND_3D_SetAttributes(channels[fireendsound], gLoc, vel);
FSOUND_SetVolume(channels[fireendsound], 256);
- FSOUND_SetPaused(channels[fireendsound], FALSE);
- FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 8.0f, 2000.0f);
+ FSOUND_SetPaused(channels[fireendsound], false);
+ FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 8.0f, 2000.0f);
- FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 9999.0f, 99999.0f);
- PlaySoundEx( fireendsound, samp[fireendsound], NULL, TRUE);
+ FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 9999.0f, 99999.0f);
+ PlaySoundEx( fireendsound, samp[fireendsound], NULL, true);
FSOUND_3D_SetAttributes(channels[fireendsound], gLoc, vel);
FSOUND_SetVolume(channels[fireendsound], 256);
FSOUND_3D_SetAttributes(channels[fireendsound], gLoc, vel);
FSOUND_SetVolume(channels[fireendsound], 256);
- FSOUND_SetPaused(channels[fireendsound], FALSE);
- FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 8.0f, 2000.0f);
+ FSOUND_SetPaused(channels[fireendsound], false);
+ FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 8.0f, 2000.0f);
- FSOUND_Sample_SetMinMaxDistance(samp[firestartsound], 9999.0f, 99999.0f);
- PlaySoundEx( firestartsound, samp[firestartsound], NULL, TRUE);
+ FSOUND_Sample_SetMinMaxDistance(samp[firestartsound], 9999.0f, 99999.0f);
+ PlaySoundEx( firestartsound, samp[firestartsound], NULL, true);
FSOUND_3D_SetAttributes(channels[firestartsound], gLoc, vel);
FSOUND_SetVolume(channels[firestartsound], 256);
FSOUND_3D_SetAttributes(channels[firestartsound], gLoc, vel);
FSOUND_SetVolume(channels[firestartsound], 256);
- FSOUND_SetPaused(channels[firestartsound], FALSE);
- FSOUND_Sample_SetMinMaxDistance(samp[firestartsound], 8.0f, 2000.0f);
+ FSOUND_SetPaused(channels[firestartsound], false);
+ FSOUND_Sample_SetMinMaxDistance(samp[firestartsound], 8.0f, 2000.0f);
- FSOUND_Sample_SetMinMaxDistance(samp[firestartsound], 9999.0f, 99999.0f);
- PlaySoundEx( firestartsound, samp[firestartsound], NULL, TRUE);
+ FSOUND_Sample_SetMinMaxDistance(samp[firestartsound], 9999.0f, 99999.0f);
+ PlaySoundEx( firestartsound, samp[firestartsound], NULL, true);
FSOUND_3D_SetAttributes(channels[firestartsound], gLoc, vel);
FSOUND_SetVolume(channels[firestartsound], 256);
FSOUND_3D_SetAttributes(channels[firestartsound], gLoc, vel);
FSOUND_SetVolume(channels[firestartsound], 256);
- FSOUND_SetPaused(channels[firestartsound], FALSE);
- FSOUND_Sample_SetMinMaxDistance(samp[firestartsound], 8.0f, 2000.0f);
+ FSOUND_SetPaused(channels[firestartsound], false);
+ FSOUND_Sample_SetMinMaxDistance(samp[firestartsound], 8.0f, 2000.0f);
- FSOUND_Sample_SetMinMaxDistance(samp[firestartsound], 9999.0f, 99999.0f);
- PlaySoundEx( firestartsound, samp[firestartsound], NULL, TRUE);
+ FSOUND_Sample_SetMinMaxDistance(samp[firestartsound], 9999.0f, 99999.0f);
+ PlaySoundEx( firestartsound, samp[firestartsound], NULL, true);
FSOUND_3D_SetAttributes(channels[firestartsound], gLoc, vel);
FSOUND_SetVolume(channels[firestartsound], 256);
FSOUND_3D_SetAttributes(channels[firestartsound], gLoc, vel);
FSOUND_SetVolume(channels[firestartsound], 256);
- FSOUND_SetPaused(channels[firestartsound], FALSE);
- FSOUND_Sample_SetMinMaxDistance(samp[firestartsound], 8.0f, 2000.0f);
+ FSOUND_SetPaused(channels[firestartsound], false);
+ FSOUND_Sample_SetMinMaxDistance(samp[firestartsound], 8.0f, 2000.0f);
- FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 9999.0f, 99999.0f);
- PlaySoundEx( fireendsound, samp[fireendsound], NULL, TRUE);
+ FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 9999.0f, 99999.0f);
+ PlaySoundEx( fireendsound, samp[fireendsound], NULL, true);
FSOUND_3D_SetAttributes(channels[fireendsound], gLoc, vel);
FSOUND_SetVolume(channels[fireendsound], 256);
FSOUND_3D_SetAttributes(channels[fireendsound], gLoc, vel);
FSOUND_SetVolume(channels[fireendsound], 256);
- FSOUND_SetPaused(channels[fireendsound], FALSE);
- FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 8.0f, 2000.0f);
+ FSOUND_SetPaused(channels[fireendsound], false);
+ FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 8.0f, 2000.0f);
- FSOUND_Sample_SetMinMaxDistance(samp[firestartsound], 9999.0f, 99999.0f);
- PlaySoundEx( firestartsound, samp[firestartsound], NULL, TRUE);
+ FSOUND_Sample_SetMinMaxDistance(samp[firestartsound], 9999.0f, 99999.0f);
+ PlaySoundEx( firestartsound, samp[firestartsound], NULL, true);
FSOUND_3D_SetAttributes(channels[firestartsound], gLoc, vel);
FSOUND_SetVolume(channels[firestartsound], 256);
FSOUND_3D_SetAttributes(channels[firestartsound], gLoc, vel);
FSOUND_SetVolume(channels[firestartsound], 256);
- FSOUND_SetPaused(channels[firestartsound], FALSE);
- FSOUND_Sample_SetMinMaxDistance(samp[firestartsound], 8.0f, 2000.0f);
+ FSOUND_SetPaused(channels[firestartsound], false);
+ FSOUND_Sample_SetMinMaxDistance(samp[firestartsound], 8.0f, 2000.0f);
- FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 9999.0f, 99999.0f);
- PlaySoundEx( fireendsound, samp[fireendsound], NULL, TRUE);
+ FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 9999.0f, 99999.0f);
+ PlaySoundEx( fireendsound, samp[fireendsound], NULL, true);
FSOUND_3D_SetAttributes(channels[fireendsound], gLoc, vel);
FSOUND_SetVolume(channels[fireendsound], 256);
FSOUND_3D_SetAttributes(channels[fireendsound], gLoc, vel);
FSOUND_SetVolume(channels[fireendsound], 256);
- FSOUND_SetPaused(channels[fireendsound], FALSE);
- FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 8.0f, 2000.0f);
+ FSOUND_SetPaused(channels[fireendsound], false);
+ FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 8.0f, 2000.0f);
- FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 9999.0f, 99999.0f);
- PlaySoundEx( fireendsound, samp[fireendsound], NULL, TRUE);
+ FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 9999.0f, 99999.0f);
+ PlaySoundEx( fireendsound, samp[fireendsound], NULL, true);
FSOUND_3D_SetAttributes(channels[fireendsound], gLoc, vel);
FSOUND_SetVolume(channels[fireendsound], 256);
FSOUND_3D_SetAttributes(channels[fireendsound], gLoc, vel);
FSOUND_SetVolume(channels[fireendsound], 256);
- FSOUND_SetPaused(channels[fireendsound], FALSE);
- FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 8.0f, 2000.0f);
+ FSOUND_SetPaused(channels[fireendsound], false);
+ FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 8.0f, 2000.0f);
- FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 9999.0f, 99999.0f);
- PlaySoundEx( fireendsound, samp[fireendsound], NULL, TRUE);
+ FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 9999.0f, 99999.0f);
+ PlaySoundEx( fireendsound, samp[fireendsound], NULL, true);
FSOUND_3D_SetAttributes(channels[fireendsound], gLoc, vel);
FSOUND_SetVolume(channels[fireendsound], 256);
FSOUND_3D_SetAttributes(channels[fireendsound], gLoc, vel);
FSOUND_SetVolume(channels[fireendsound], 256);
- FSOUND_SetPaused(channels[fireendsound], FALSE);
- FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 8.0f, 2000.0f);
+ FSOUND_SetPaused(channels[fireendsound], false);
+ FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 8.0f, 2000.0f);
- FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 9999.0f, 99999.0f);
- PlaySoundEx( fireendsound, samp[fireendsound], NULL, TRUE);
+ FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 9999.0f, 99999.0f);
+ PlaySoundEx( fireendsound, samp[fireendsound], NULL, true);
FSOUND_3D_SetAttributes(channels[fireendsound], gLoc, vel);
FSOUND_SetVolume(channels[fireendsound], 256);
FSOUND_3D_SetAttributes(channels[fireendsound], gLoc, vel);
FSOUND_SetVolume(channels[fireendsound], 256);
- FSOUND_SetPaused(channels[fireendsound], FALSE);
- FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 8.0f, 2000.0f);
+ FSOUND_SetPaused(channels[fireendsound], false);
+ FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 8.0f, 2000.0f);
- FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 9999.0f, 99999.0f);
- PlaySoundEx( fireendsound, samp[fireendsound], NULL, TRUE);
+ FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 9999.0f, 99999.0f);
+ PlaySoundEx( fireendsound, samp[fireendsound], NULL, true);
FSOUND_3D_SetAttributes(channels[fireendsound], gLoc, vel);
FSOUND_SetVolume(channels[fireendsound], 256);
FSOUND_3D_SetAttributes(channels[fireendsound], gLoc, vel);
FSOUND_SetVolume(channels[fireendsound], 256);
- FSOUND_SetPaused(channels[fireendsound], FALSE);
- FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 8.0f, 2000.0f);
+ FSOUND_SetPaused(channels[fireendsound], false);
+ FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 8.0f, 2000.0f);
- FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 9999.0f, 99999.0f);
- PlaySoundEx( fireendsound, samp[fireendsound], NULL, TRUE);
+ FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 9999.0f, 99999.0f);
+ PlaySoundEx( fireendsound, samp[fireendsound], NULL, true);
FSOUND_3D_SetAttributes(channels[fireendsound], gLoc, vel);
FSOUND_SetVolume(channels[fireendsound], 256);
FSOUND_3D_SetAttributes(channels[fireendsound], gLoc, vel);
FSOUND_SetVolume(channels[fireendsound], 256);
- FSOUND_SetPaused(channels[fireendsound], FALSE);
- FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 8.0f, 2000.0f);
+ FSOUND_SetPaused(channels[fireendsound], false);
+ FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 8.0f, 2000.0f);
- FSOUND_Sample_SetMinMaxDistance(samp[firestartsound], 9999.0f, 99999.0f);
- PlaySoundEx( firestartsound, samp[firestartsound], NULL, TRUE);
+ FSOUND_Sample_SetMinMaxDistance(samp[firestartsound], 9999.0f, 99999.0f);
+ PlaySoundEx( firestartsound, samp[firestartsound], NULL, true);
FSOUND_3D_SetAttributes(channels[firestartsound], gLoc, vel);
FSOUND_SetVolume(channels[firestartsound], 256);
FSOUND_3D_SetAttributes(channels[firestartsound], gLoc, vel);
FSOUND_SetVolume(channels[firestartsound], 256);
- FSOUND_SetPaused(channels[firestartsound], FALSE);
- FSOUND_Sample_SetMinMaxDistance(samp[firestartsound], 8.0f, 2000.0f);
+ FSOUND_SetPaused(channels[firestartsound], false);
+ FSOUND_Sample_SetMinMaxDistance(samp[firestartsound], 8.0f, 2000.0f);
- FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 9999.0f, 99999.0f);
- PlaySoundEx( fireendsound, samp[fireendsound], NULL, TRUE);
+ FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 9999.0f, 99999.0f);
+ PlaySoundEx( fireendsound, samp[fireendsound], NULL, true);
FSOUND_3D_SetAttributes(channels[fireendsound], gLoc, vel);
FSOUND_SetVolume(channels[fireendsound], 256);
FSOUND_3D_SetAttributes(channels[fireendsound], gLoc, vel);
FSOUND_SetVolume(channels[fireendsound], 256);
- FSOUND_SetPaused(channels[fireendsound], FALSE);
- FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 8.0f, 2000.0f);
+ FSOUND_SetPaused(channels[fireendsound], false);
+ FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 8.0f, 2000.0f);
- FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 9999.0f, 99999.0f);
- PlaySoundEx( fireendsound, samp[fireendsound], NULL, TRUE);
+ FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 9999.0f, 99999.0f);
+ PlaySoundEx( fireendsound, samp[fireendsound], NULL, true);
FSOUND_3D_SetAttributes(channels[fireendsound], gLoc, vel);
FSOUND_SetVolume(channels[fireendsound], 256);
FSOUND_3D_SetAttributes(channels[fireendsound], gLoc, vel);
FSOUND_SetVolume(channels[fireendsound], 256);
- FSOUND_SetPaused(channels[fireendsound], FALSE);
- FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 8.0f, 2000.0f);
+ FSOUND_SetPaused(channels[fireendsound], false);
+ FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 8.0f, 2000.0f);
- FSOUND_Sample_SetMinMaxDistance(samp[firestartsound], 9999.0f, 99999.0f);
- PlaySoundEx( firestartsound, samp[firestartsound], NULL, TRUE);
+ FSOUND_Sample_SetMinMaxDistance(samp[firestartsound], 9999.0f, 99999.0f);
+ PlaySoundEx( firestartsound, samp[firestartsound], NULL, true);
FSOUND_3D_SetAttributes(channels[firestartsound], gLoc, vel);
FSOUND_SetVolume(channels[firestartsound], 256);
FSOUND_3D_SetAttributes(channels[firestartsound], gLoc, vel);
FSOUND_SetVolume(channels[firestartsound], 256);
- FSOUND_SetPaused(channels[firestartsound], FALSE);
- FSOUND_Sample_SetMinMaxDistance(samp[firestartsound], 8.0f, 2000.0f);
+ FSOUND_SetPaused(channels[firestartsound], false);
+ FSOUND_Sample_SetMinMaxDistance(samp[firestartsound], 8.0f, 2000.0f);
- FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 9999.0f, 99999.0f);
- PlaySoundEx( fireendsound, samp[fireendsound], NULL, TRUE);
+ FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 9999.0f, 99999.0f);
+ PlaySoundEx( fireendsound, samp[fireendsound], NULL, true);
FSOUND_3D_SetAttributes(channels[fireendsound], gLoc, vel);
FSOUND_SetVolume(channels[fireendsound], 256);
FSOUND_3D_SetAttributes(channels[fireendsound], gLoc, vel);
FSOUND_SetVolume(channels[fireendsound], 256);
- FSOUND_SetPaused(channels[fireendsound], FALSE);
- FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 8.0f, 2000.0f);
+ FSOUND_SetPaused(channels[fireendsound], false);
+ FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 8.0f, 2000.0f);
- FSOUND_Sample_SetMinMaxDistance(samp[firestartsound], 9999.0f, 99999.0f);
- PlaySoundEx( firestartsound, samp[firestartsound], NULL, TRUE);
+ FSOUND_Sample_SetMinMaxDistance(samp[firestartsound], 9999.0f, 99999.0f);
+ PlaySoundEx( firestartsound, samp[firestartsound], NULL, true);
FSOUND_3D_SetAttributes(channels[firestartsound], gLoc, vel);
FSOUND_SetVolume(channels[firestartsound], 256);
FSOUND_3D_SetAttributes(channels[firestartsound], gLoc, vel);
FSOUND_SetVolume(channels[firestartsound], 256);
- FSOUND_SetPaused(channels[firestartsound], FALSE);
- FSOUND_Sample_SetMinMaxDistance(samp[firestartsound], 8.0f, 2000.0f);
+ FSOUND_SetPaused(channels[firestartsound], false);
+ FSOUND_Sample_SetMinMaxDistance(samp[firestartsound], 8.0f, 2000.0f);
if(selected==0)accountdifficulty[accountactive]=0;
if(selected==1)accountdifficulty[accountactive]=1;
if(selected==2)accountdifficulty[accountactive]=2;
if(selected==0)accountdifficulty[accountactive]=0;
if(selected==1)accountdifficulty[accountactive]=1;
if(selected==2)accountdifficulty[accountactive]=2;
- FSOUND_Sample_SetMinMaxDistance(samp[firestartsound], 9999.0f, 99999.0f);
- PlaySoundEx( firestartsound, samp[firestartsound], NULL, TRUE);
+ FSOUND_Sample_SetMinMaxDistance(samp[firestartsound], 9999.0f, 99999.0f);
+ PlaySoundEx( firestartsound, samp[firestartsound], NULL, true);
FSOUND_3D_SetAttributes(channels[firestartsound], gLoc, vel);
FSOUND_SetVolume(channels[firestartsound], 256);
FSOUND_3D_SetAttributes(channels[firestartsound], gLoc, vel);
FSOUND_SetVolume(channels[firestartsound], 256);
- FSOUND_SetPaused(channels[firestartsound], FALSE);
- FSOUND_Sample_SetMinMaxDistance(samp[firestartsound], 8.0f, 2000.0f);
+ FSOUND_SetPaused(channels[firestartsound], false);
+ FSOUND_Sample_SetMinMaxDistance(samp[firestartsound], 8.0f, 2000.0f);
sprintf (tempstring, "%s-windows", registrationname);
#else
#error Please make sure you have the right registration key stuff here!
sprintf (tempstring, "%s-windows", registrationname);
#else
#error Please make sure you have the right registration key stuff here!
- FSOUND_Sample_SetMinMaxDistance(samp[firestartsound], 9999.0f, 99999.0f);
- PlaySoundEx( firestartsound, samp[firestartsound], NULL, TRUE);
+ FSOUND_Sample_SetMinMaxDistance(samp[firestartsound], 9999.0f, 99999.0f);
+ PlaySoundEx( firestartsound, samp[firestartsound], NULL, true);
FSOUND_3D_SetAttributes(channels[firestartsound], gLoc, vel);
FSOUND_SetVolume(channels[firestartsound], 256);
FSOUND_3D_SetAttributes(channels[firestartsound], gLoc, vel);
FSOUND_SetVolume(channels[firestartsound], 256);
- FSOUND_SetPaused(channels[firestartsound], FALSE);
- FSOUND_Sample_SetMinMaxDistance(samp[firestartsound], 8.0f, 2000.0f);
+ FSOUND_SetPaused(channels[firestartsound], false);
+ FSOUND_Sample_SetMinMaxDistance(samp[firestartsound], 8.0f, 2000.0f);
- FSOUND_Sample_SetMinMaxDistance(samp[firestartsound], 9999.0f, 99999.0f);
- PlaySoundEx( firestartsound, samp[firestartsound], NULL, TRUE);
+ FSOUND_Sample_SetMinMaxDistance(samp[firestartsound], 9999.0f, 99999.0f);
+ PlaySoundEx( firestartsound, samp[firestartsound], NULL, true);
FSOUND_3D_SetAttributes(channels[firestartsound], gLoc, vel);
FSOUND_SetVolume(channels[firestartsound], 256);
FSOUND_3D_SetAttributes(channels[firestartsound], gLoc, vel);
FSOUND_SetVolume(channels[firestartsound], 256);
- FSOUND_SetPaused(channels[firestartsound], FALSE);
- FSOUND_Sample_SetMinMaxDistance(samp[firestartsound], 8.0f, 2000.0f);
+ FSOUND_SetPaused(channels[firestartsound], false);
+ FSOUND_Sample_SetMinMaxDistance(samp[firestartsound], 8.0f, 2000.0f);
archiveselected=0;
donesomething=0;
if(Compare(consoletext[0],"quit ",0,4)||Compare(consoletext[0],"exit ",0,4)){
archiveselected=0;
donesomething=0;
if(Compare(consoletext[0],"quit ",0,4)||Compare(consoletext[0],"exit ",0,4)){
- PlaySoundEx( consolesuccesssound, samp[consolesuccesssound], NULL, TRUE);
+ PlaySoundEx( consolesuccesssound, samp[consolesuccesssound], NULL, true);
- PlaySoundEx( consolesuccesssound, samp[consolesuccesssound], NULL, TRUE);
+ PlaySoundEx( consolesuccesssound, samp[consolesuccesssound], NULL, true);
- PlaySoundEx( consolesuccesssound, samp[consolesuccesssound], NULL, TRUE);
+ PlaySoundEx( consolesuccesssound, samp[consolesuccesssound], NULL, true);
- PlaySoundEx( consolesuccesssound, samp[consolesuccesssound], NULL, TRUE);
+ PlaySoundEx( consolesuccesssound, samp[consolesuccesssound], NULL, true);
fpackf(tfile, "Bi",templength);
for(m=0;m<templength;m++){
fpackf(tfile, "Bb", dialoguename[k][l][m]);
fpackf(tfile, "Bi",templength);
for(m=0;m<templength;m++){
fpackf(tfile, "Bb", dialoguename[k][l][m]);
}
fpackf(tfile, "Bf Bf Bf", dialoguecamera[k][l].x, dialoguecamera[k][l].y, dialoguecamera[k][l].z);
}
fpackf(tfile, "Bf Bf Bf", dialoguecamera[k][l].x, dialoguecamera[k][l].y, dialoguecamera[k][l].z);
fpackf(tfile, "Bi", templength);
for(l=0;l<templength;l++)
fpackf(tfile, "Bb", player[0].clothes[k][l]);
fpackf(tfile, "Bi", templength);
for(l=0;l<templength;l++)
fpackf(tfile, "Bb", player[0].clothes[k][l]);
- fpackf(tfile, "Bf Bf Bf", player[0].clothestintr[k], player[0].clothestintg[k], player[0].clothestintb[k]);
+ fpackf(tfile, "Bf Bf Bf", player[0].clothestintr[k], player[0].clothestintg[k], player[0].clothestintb[k]);
fpackf(tfile, "Bi", templength);
for(l=0;l<templength;l++)
fpackf(tfile, "Bb", player[j].clothes[k][l]);
fpackf(tfile, "Bi", templength);
for(l=0;l<templength;l++)
fpackf(tfile, "Bb", player[j].clothes[k][l]);
- fpackf(tfile, "Bf Bf Bf", player[j].clothestintr[k], player[j].clothestintg[k], player[j].clothestintb[k]);
+ fpackf(tfile, "Bf Bf Bf", player[j].clothestintr[k], player[j].clothestintg[k], player[j].clothestintb[k]);
- fwrite( &templength,1,sizeof(int),tfile);
+ fwrite( &templength,1,sizeof(int),tfile);
for(l=0;l<templength;l++)
fwrite( &player[0].clothes[k][l],1,sizeof(char),tfile);
for(l=0;l<templength;l++)
fwrite( &player[0].clothes[k][l],1,sizeof(char),tfile);
- fwrite( &player[0].clothestintr[k],1,sizeof(float),tfile);
- fwrite( &player[0].clothestintg[k],1,sizeof(float),tfile);
- fwrite( &player[0].clothestintb[k],1,sizeof(float),tfile);
+ fwrite( &player[0].clothestintr[k],1,sizeof(float),tfile);
+ fwrite( &player[0].clothestintg[k],1,sizeof(float),tfile);
+ fwrite( &player[0].clothestintb[k],1,sizeof(float),tfile);
}
fwrite( &environment, 1, sizeof(int), tfile );
}
fwrite( &environment, 1, sizeof(int), tfile );
- fwrite( &templength,1,sizeof(int),tfile);
+ fwrite( &templength,1,sizeof(int),tfile);
for(l=0;l<templength;l++)
fwrite( &player[j].clothes[k][l],1,sizeof(char),tfile);
for(l=0;l<templength;l++)
fwrite( &player[j].clothes[k][l],1,sizeof(char),tfile);
- fwrite( &player[j].clothestintr[k],1,sizeof(float),tfile);
- fwrite( &player[j].clothestintg[k],1,sizeof(float),tfile);
- fwrite( &player[j].clothestintb[k],1,sizeof(float),tfile);
+ fwrite( &player[j].clothestintr[k],1,sizeof(float),tfile);
+ fwrite( &player[j].clothestintg[k],1,sizeof(float),tfile);
+ fwrite( &player[j].clothestintb[k],1,sizeof(float),tfile);
}
}
fwrite( &numpathpoints, 1, sizeof(int), tfile );
}
}
fwrite( &numpathpoints, 1, sizeof(int), tfile );
- PlaySoundEx( consolesuccesssound, samp[consolesuccesssound], NULL, TRUE);
+ PlaySoundEx( consolesuccesssound, samp[consolesuccesssound], NULL, true);
if(dialogueboxsound[whichdialogue][indialogue]==-2)whichsoundplay=firestartsound;
if(dialogueboxsound[whichdialogue][indialogue]==-3)whichsoundplay=consolesuccesssound;
if(dialogueboxsound[whichdialogue][indialogue]==-4)whichsoundplay=consolefailsound;
if(dialogueboxsound[whichdialogue][indialogue]==-2)whichsoundplay=firestartsound;
if(dialogueboxsound[whichdialogue][indialogue]==-3)whichsoundplay=consolesuccesssound;
if(dialogueboxsound[whichdialogue][indialogue]==-4)whichsoundplay=consolefailsound;
- PlaySoundEx( whichsoundplay, samp[whichsoundplay], NULL, TRUE);
+ PlaySoundEx( whichsoundplay, samp[whichsoundplay], NULL, true);
FSOUND_3D_SetAttributes(channels[whichsoundplay], gLoc, vel);
FSOUND_SetVolume(channels[whichsoundplay], 256);
FSOUND_3D_SetAttributes(channels[whichsoundplay], gLoc, vel);
FSOUND_SetVolume(channels[whichsoundplay], 256);
if(Compare(consoletext[0],"sky light ",0,9)||Compare(consoletext[0],"Sky Light ",0,9)){
int startpoint;
if(Compare(consoletext[0],"sky light ",0,9)||Compare(consoletext[0],"Sky Light ",0,9)){
int startpoint;
if(Compare(consoletext[0],"skybox ",0,6)||Compare(consoletext[0],"Skybox ",0,6)){
skyboxtexture=1-skyboxtexture;
if(Compare(consoletext[0],"skybox ",0,6)||Compare(consoletext[0],"Skybox ",0,6)){
skyboxtexture=1-skyboxtexture;
- PlaySoundEx( consolefailsound, samp[consolefailsound], NULL, TRUE);
+ PlaySoundEx( consolefailsound, samp[consolefailsound], NULL, true);
static int oldwinfreeze;
if(winfreeze&&!oldwinfreeze){
FSOUND_SetFrequency(FSOUND_ALL, 0.001);
static int oldwinfreeze;
if(winfreeze&&!oldwinfreeze){
FSOUND_SetFrequency(FSOUND_ALL, 0.001);
- PlaySoundEx( consolesuccesssound, samp[consolesuccesssound], NULL, TRUE);
+ PlaySoundEx( consolesuccesssound, samp[consolesuccesssound], NULL, true);
if(dialogueboxsound[whichdialogue][indialogue]==-2)whichsoundplay=firestartsound;
if(dialogueboxsound[whichdialogue][indialogue]==-3)whichsoundplay=consolesuccesssound;
if(dialogueboxsound[whichdialogue][indialogue]==-4)whichsoundplay=consolefailsound;
if(dialogueboxsound[whichdialogue][indialogue]==-2)whichsoundplay=firestartsound;
if(dialogueboxsound[whichdialogue][indialogue]==-3)whichsoundplay=consolesuccesssound;
if(dialogueboxsound[whichdialogue][indialogue]==-4)whichsoundplay=consolefailsound;
- PlaySoundEx( whichsoundplay, samp[whichsoundplay], NULL, TRUE);
+ PlaySoundEx( whichsoundplay, samp[whichsoundplay], NULL, true);
FSOUND_3D_SetAttributes(channels[whichsoundplay], gLoc, vel);
FSOUND_SetVolume(channels[whichsoundplay], 256);
FSOUND_3D_SetAttributes(channels[whichsoundplay], gLoc, vel);
FSOUND_SetVolume(channels[whichsoundplay], 256);
hotspotsprite+=hotspot[i];
sprites.MakeSprite(breathsprite, hotspotsprite, hotspotsprite*0, 1,0.5,0, 7, 0.4);
hotspotvisual[i]+=0.1/hotspotsize[i]/hotspotsize[i]/hotspotsize[i];
hotspotsprite+=hotspot[i];
sprites.MakeSprite(breathsprite, hotspotsprite, hotspotsprite*0, 1,0.5,0, 7, 0.4);
hotspotvisual[i]+=0.1/hotspotsize[i]/hotspotsize[i]/hotspotsize[i];
- PlaySoundEx( fireendsound, samp[fireendsound], NULL, TRUE);
+ PlaySoundEx( fireendsound, samp[fireendsound], NULL, true);
FSOUND_3D_SetAttributes(channels[fireendsound], gLoc, vel);
FSOUND_SetVolume(channels[fireendsound], 256);
FSOUND_3D_SetAttributes(channels[fireendsound], gLoc, vel);
FSOUND_SetVolume(channels[fireendsound], 256);
- PlaySoundEx( fireendsound, samp[fireendsound], NULL, TRUE);
+ PlaySoundEx( fireendsound, samp[fireendsound], NULL, true);
FSOUND_3D_SetAttributes(channels[fireendsound], gLoc, vel);
FSOUND_SetVolume(channels[fireendsound], 256);
FSOUND_3D_SetAttributes(channels[fireendsound], gLoc, vel);
FSOUND_SetVolume(channels[fireendsound], 256);
- PlaySoundEx( consolesuccesssound, samp[consolesuccesssound], NULL, TRUE);
+ PlaySoundEx( consolesuccesssound, samp[consolesuccesssound], NULL, true);
- PlaySoundEx( consolesuccesssound, samp[consolesuccesssound], NULL, TRUE);
+ PlaySoundEx( consolesuccesssound, samp[consolesuccesssound], NULL, true);
- PlaySoundEx( fireendsound, samp[fireendsound], NULL, TRUE);
+ PlaySoundEx( fireendsound, samp[fireendsound], NULL, true);
- PlaySoundEx( movewhooshsound, samp[movewhooshsound], NULL, TRUE);
+ PlaySoundEx( movewhooshsound, samp[movewhooshsound], NULL, true);
FSOUND_3D_SetAttributes(channels[movewhooshsound], gLoc, vel);
FSOUND_SetVolume(channels[movewhooshsound], 256);
FSOUND_3D_SetAttributes(channels[movewhooshsound], gLoc, vel);
FSOUND_SetVolume(channels[movewhooshsound], 256);
- FSOUND_SetPaused(channels[movewhooshsound], FALSE);
- if(k==0)FSOUND_SetPaused(channels[whooshsound], TRUE);
+ FSOUND_SetPaused(channels[movewhooshsound], false);
+ if(k==0)FSOUND_SetPaused(channels[whooshsound], true);
lowpointtarget=DoRotation(objects.model[i].facenormals[whichhit],0,objects.rotation[i],0);
player[k].rotation=-asin(0-lowpointtarget.x);
lowpointtarget=DoRotation(objects.model[i].facenormals[whichhit],0,objects.rotation[i],0);
player[k].rotation=-asin(0-lowpointtarget.x);
- PlaySoundEx( movewhooshsound, samp[movewhooshsound], NULL, TRUE);
+ PlaySoundEx( movewhooshsound, samp[movewhooshsound], NULL, true);
FSOUND_3D_SetAttributes(channels[movewhooshsound], gLoc, vel);
FSOUND_SetVolume(channels[movewhooshsound], 256);
FSOUND_3D_SetAttributes(channels[movewhooshsound], gLoc, vel);
FSOUND_SetVolume(channels[movewhooshsound], 256);
- FSOUND_SetPaused(channels[movewhooshsound], FALSE);
- if(k==0)FSOUND_SetPaused(channels[whooshsound], TRUE);
+ FSOUND_SetPaused(channels[movewhooshsound], false);
+ if(k==0)FSOUND_SetPaused(channels[whooshsound], true);
lowpointtarget=DoRotation(objects.model[i].facenormals[whichhit],0,objects.rotation[i],0);
player[k].rotation=-asin(0-lowpointtarget.x);
lowpointtarget=DoRotation(objects.model[i].facenormals[whichhit],0,objects.rotation[i],0);
player[k].rotation=-asin(0-lowpointtarget.x);
- PlaySoundEx( movewhooshsound, samp[movewhooshsound], NULL, TRUE);
+ PlaySoundEx( movewhooshsound, samp[movewhooshsound], NULL, true);
FSOUND_3D_SetAttributes(channels[movewhooshsound], gLoc, vel);
FSOUND_SetVolume(channels[movewhooshsound], 256);
FSOUND_3D_SetAttributes(channels[movewhooshsound], gLoc, vel);
FSOUND_SetVolume(channels[movewhooshsound], 256);
- FSOUND_SetPaused(channels[movewhooshsound], FALSE);
- if(k==0)FSOUND_SetPaused(channels[whooshsound], TRUE);
+ FSOUND_SetPaused(channels[movewhooshsound], false);
+ if(k==0)FSOUND_SetPaused(channels[whooshsound], true);
lowpointtarget=DoRotation(objects.model[i].facenormals[whichhit],0,objects.rotation[i],0);
player[k].rotation=-asin(0-lowpointtarget.x);
lowpointtarget=DoRotation(objects.model[i].facenormals[whichhit],0,objects.rotation[i],0);
player[k].rotation=-asin(0-lowpointtarget.x);
- PlaySoundEx( movewhooshsound, samp[movewhooshsound], NULL, TRUE);
+ PlaySoundEx( movewhooshsound, samp[movewhooshsound], NULL, true);
FSOUND_3D_SetAttributes(channels[movewhooshsound], gLoc, vel);
FSOUND_SetVolume(channels[movewhooshsound], 256);
FSOUND_3D_SetAttributes(channels[movewhooshsound], gLoc, vel);
FSOUND_SetVolume(channels[movewhooshsound], 256);
- FSOUND_SetPaused(channels[movewhooshsound], FALSE);
- if(k==0)FSOUND_SetPaused(channels[whooshsound], TRUE);
+ FSOUND_SetPaused(channels[movewhooshsound], false);
+ if(k==0)FSOUND_SetPaused(channels[whooshsound], true);
lowpointtarget=DoRotation(objects.model[i].facenormals[whichhit],0,objects.rotation[i],0);
player[k].rotation=-asin(0-lowpointtarget.x);
lowpointtarget=DoRotation(objects.model[i].facenormals[whichhit],0,objects.rotation[i],0);
player[k].rotation=-asin(0-lowpointtarget.x);
vel[0]=player[k].velocity.x;
vel[1]=player[k].velocity.y;
vel[2]=player[k].velocity.z;
vel[0]=player[k].velocity.x;
vel[1]=player[k].velocity.y;
vel[2]=player[k].velocity.z;
- PlaySoundEx( landsound, samp[landsound], NULL, TRUE);
+ PlaySoundEx( landsound, samp[landsound], NULL, true);
FSOUND_3D_SetAttributes(channels[landsound], gLoc, vel);
FSOUND_SetVolume(channels[landsound], 128);
FSOUND_3D_SetAttributes(channels[landsound], gLoc, vel);
FSOUND_SetVolume(channels[landsound], 128);
lowpoint.y+=1.35;
if(objects.type[i]!=rocktype)
if(player[k].SphereCheck(&lowpoint, 1.33, &colpoint, &objects.position[i], &objects.rotation[i], &objects.model[i])!=-1){
lowpoint.y+=1.35;
if(objects.type[i]!=rocktype)
if(player[k].SphereCheck(&lowpoint, 1.33, &colpoint, &objects.position[i], &objects.rotation[i], &objects.model[i])!=-1){
if((player[k].grabdelay<=0||player[k].aitype!=playercontrolled)&&((/*(player[k].isRun()||player[k].targetanimation==sneakanim||player[k].targetanimation==walkanim)&&*/player[k].currentanimation!=climbanim&&player[k].currentanimation!=hanganim&&!player[k].isWallJump())||player[k].targetanimation==jumpupanim||player[k].targetanimation==jumpdownanim)){
lowpoint=player[k].coords;
if((player[k].grabdelay<=0||player[k].aitype!=playercontrolled)&&((/*(player[k].isRun()||player[k].targetanimation==sneakanim||player[k].targetanimation==walkanim)&&*/player[k].currentanimation!=climbanim&&player[k].currentanimation!=hanganim&&!player[k].isWallJump())||player[k].targetanimation==jumpupanim||player[k].targetanimation==jumpdownanim)){
lowpoint=player[k].coords;
player[k].coords.y=lowpointtarget.y-.07;
player[k].currentoffset=(flatfacing-player[k].coords)/player[k].scale;
player[k].coords.y=lowpointtarget.y-.07;
player[k].currentoffset=(flatfacing-player[k].coords)/player[k].scale;
vel[0]=player[k].velocity.x;
vel[1]=player[k].velocity.y;
vel[2]=player[k].velocity.z;
vel[0]=player[k].velocity.x;
vel[1]=player[k].velocity.y;
vel[2]=player[k].velocity.z;
- PlaySoundEx( jumpsound, samp[jumpsound], NULL, TRUE);
+ PlaySoundEx( jumpsound, samp[jumpsound], NULL, true);
FSOUND_3D_SetAttributes(channels[jumpsound], gLoc, vel);
FSOUND_SetVolume(channels[jumpsound], 128);
FSOUND_3D_SetAttributes(channels[jumpsound], gLoc, vel);
FSOUND_SetVolume(channels[jumpsound], 128);
lowpointtarget=DoRotation(objects.model[i].facenormals[whichhit],0,objects.rotation[i],0);
player[k].rotation=-asin(0-lowpointtarget.x);
lowpointtarget=DoRotation(objects.model[i].facenormals[whichhit],0,objects.rotation[i],0);
player[k].rotation=-asin(0-lowpointtarget.x);
- PlaySoundEx( whooshsound, samp[whooshsound], NULL, TRUE);
+ PlaySoundEx( whooshsound, samp[whooshsound], NULL, true);
FSOUND_3D_SetAttributes(channels[whooshsound], gLoc, vel);
FSOUND_SetVolume(channels[whooshsound], 128);
FSOUND_3D_SetAttributes(channels[whooshsound], gLoc, vel);
FSOUND_SetVolume(channels[whooshsound], 128);
if(dialogueboxsound[whichdialogue][indialogue]==-2)whichsoundplay=firestartsound;
if(dialogueboxsound[whichdialogue][indialogue]==-3)whichsoundplay=consolesuccesssound;
if(dialogueboxsound[whichdialogue][indialogue]==-4)whichsoundplay=consolefailsound;
if(dialogueboxsound[whichdialogue][indialogue]==-2)whichsoundplay=firestartsound;
if(dialogueboxsound[whichdialogue][indialogue]==-3)whichsoundplay=consolesuccesssound;
if(dialogueboxsound[whichdialogue][indialogue]==-4)whichsoundplay=consolefailsound;
- PlaySoundEx( whichsoundplay, samp[whichsoundplay], NULL, TRUE);
+ PlaySoundEx( whichsoundplay, samp[whichsoundplay], NULL, true);
FSOUND_3D_SetAttributes(channels[whichsoundplay], gLoc, vel);
FSOUND_SetVolume(channels[whichsoundplay], 256);
FSOUND_3D_SetAttributes(channels[whichsoundplay], gLoc, vel);
FSOUND_SetVolume(channels[whichsoundplay], 256);
viewer=dialoguecamera[whichdialogue][indialogue];
if(viewer.y<terrain.getHeight(viewer.x,viewer.z)+.1){
viewer.y=terrain.getHeight(viewer.x,viewer.z)+.1;
viewer=dialoguecamera[whichdialogue][indialogue];
if(viewer.y<terrain.getHeight(viewer.x,viewer.z)+.1){
viewer.y=terrain.getHeight(viewer.x,viewer.z)+.1;
rotation=dialoguecamerarotation[whichdialogue][indialogue];
rotation2=dialoguecamerarotation2[whichdialogue][indialogue];
if(dialoguetime>0.5)
rotation=dialoguecamerarotation[whichdialogue][indialogue];
rotation2=dialoguecamerarotation2[whichdialogue][indialogue];
if(dialoguetime>0.5)
if(dialogueboxsound[whichdialogue][indialogue]==-4)whichsoundplay=consolefailsound;
if(dialogueboxsound[whichdialogue][indialogue]==-6)whichsoundplay=alarmsound;
if(dialogueboxsound[whichdialogue][indialogue]!=-5){
if(dialogueboxsound[whichdialogue][indialogue]==-4)whichsoundplay=consolefailsound;
if(dialogueboxsound[whichdialogue][indialogue]==-6)whichsoundplay=alarmsound;
if(dialogueboxsound[whichdialogue][indialogue]!=-5){
- PlaySoundEx( whichsoundplay, samp[whichsoundplay], NULL, TRUE);
+ PlaySoundEx( whichsoundplay, samp[whichsoundplay], NULL, true);
FSOUND_3D_SetAttributes(channels[whichsoundplay], gLoc, vel);
FSOUND_SetVolume(channels[whichsoundplay], 256);
FSOUND_3D_SetAttributes(channels[whichsoundplay], gLoc, vel);
FSOUND_SetVolume(channels[whichsoundplay], 256);
- PlaySoundEx( hawksound, samp[hawksound], NULL, TRUE);
+ PlaySoundEx( hawksound, samp[hawksound], NULL, true);
FSOUND_3D_SetAttributes(channels[hawksound], gLoc, vel);
FSOUND_SetVolume(channels[hawksound], 128);
FSOUND_3D_SetAttributes(channels[hawksound], gLoc, vel);
FSOUND_SetVolume(channels[hawksound], 128);
for(j=0;j<objects.numobjects;j++){
if(objects.type[j]==treetrunktype)
if(findDistancefast(&objects.position[i],&objects.position[j])<.5)
for(j=0;j<objects.numobjects;j++){
if(objects.type[j]==treetrunktype)
if(findDistancefast(&objects.position[i],&objects.position[j])<.5)
XYZ headspurtdirection;
int i = player[closest].skeleton.jointlabels[head];
for(k=0;k<player[closest].skeleton.num_joints; k++){
XYZ headspurtdirection;
int i = player[closest].skeleton.jointlabels[head];
for(k=0;k<player[closest].skeleton.num_joints; k++){
- PlaySoundEx( splattersound, samp[splattersound], NULL, TRUE);
+ PlaySoundEx( splattersound, samp[splattersound], NULL, true);
FSOUND_3D_SetAttributes(channels[splattersound], gLoc, vel);
FSOUND_SetVolume(channels[splattersound], 256);
FSOUND_3D_SetAttributes(channels[splattersound], gLoc, vel);
FSOUND_SetVolume(channels[splattersound], 256);
- PlaySoundEx( breaksound2, samp[breaksound2], NULL, TRUE);
+ PlaySoundEx( breaksound2, samp[breaksound2], NULL, true);
FSOUND_3D_SetAttributes(channels[breaksound2], gLoc, vel);
FSOUND_SetVolume(channels[breaksound2], 100);
FSOUND_3D_SetAttributes(channels[breaksound2], gLoc, vel);
FSOUND_SetVolume(channels[breaksound2], 100);
- PlaySoundEx( splattersound, samp[splattersound], NULL, TRUE);
+ PlaySoundEx( splattersound, samp[splattersound], NULL, true);
FSOUND_3D_SetAttributes(channels[splattersound], gLoc, vel);
FSOUND_SetVolume(channels[splattersound], 256);
FSOUND_3D_SetAttributes(channels[splattersound], gLoc, vel);
FSOUND_SetVolume(channels[splattersound], 256);
- PlaySoundEx( breaksound2, samp[breaksound2], NULL, TRUE);
+ PlaySoundEx( breaksound2, samp[breaksound2], NULL, true);
FSOUND_3D_SetAttributes(channels[breaksound2], gLoc, vel);
FSOUND_SetVolume(channels[breaksound2], 600);
FSOUND_3D_SetAttributes(channels[breaksound2], gLoc, vel);
FSOUND_SetVolume(channels[breaksound2], 600);
for(i=0;i<player[closest].skeleton.num_joints; i++){
if(!player[closest].skeleton.free)flatvelocity2=player[closest].velocity;
for(i=0;i<player[closest].skeleton.num_joints; i++){
if(!player[closest].skeleton.free)flatvelocity2=player[closest].velocity;
- PlaySoundEx( fireendsound, samp[fireendsound], NULL, TRUE);
+ PlaySoundEx( fireendsound, samp[fireendsound], NULL, true);
FSOUND_3D_SetAttributes(channels[fireendsound], gLoc, vel);
FSOUND_SetVolume(channels[fireendsound], 256);
FSOUND_3D_SetAttributes(channels[fireendsound], gLoc, vel);
FSOUND_SetVolume(channels[fireendsound], 256);
- FSOUND_SetPaused(channels[fireendsound], FALSE);
- FSOUND_SetPaused(channels[stream_firesound], TRUE);
+ FSOUND_SetPaused(channels[fireendsound], false);
+ FSOUND_SetPaused(channels[stream_firesound], true);
if(IsKeyDown(theKeyMap, MAC_M_KEY)&&!drawmodetogglekeydown&&!IsKeyDown(theKeyMap, MAC_SHIFT_KEY)&&editorenabled&&debugmode){
//drawmode++;
//if(drawmode>2)drawmode=0;
if(IsKeyDown(theKeyMap, MAC_M_KEY)&&!drawmodetogglekeydown&&!IsKeyDown(theKeyMap, MAC_SHIFT_KEY)&&editorenabled&&debugmode){
//drawmode++;
//if(drawmode>2)drawmode=0;
vel[0]=player[0].velocity.x;
vel[1]=player[0].velocity.y;
vel[2]=player[0].velocity.z;
vel[0]=player[0].velocity.x;
vel[1]=player[0].velocity.y;
vel[2]=player[0].velocity.z;
- PlaySoundEx( whooshsound, samp[whooshsound], NULL, TRUE);
+ PlaySoundEx( whooshsound, samp[whooshsound], NULL, true);
FSOUND_3D_SetAttributes(channels[whooshsound], gLoc, vel);
FSOUND_SetVolume(channels[whooshsound], 128);
FSOUND_3D_SetAttributes(channels[whooshsound], gLoc, vel);
FSOUND_SetVolume(channels[whooshsound], 128);
- FSOUND_SetPaused(channels[whooshsound], FALSE);
- //FSOUND_SetPaused(channels[whooshsound], TRUE);
+ FSOUND_SetPaused(channels[whooshsound], false);
+ //FSOUND_SetPaused(channels[whooshsound], true);
if(findDistancefast(&player[k].coords,&player[i].coords)<4.5&&!player[i].skeleton.free&&player[i].howactive<typedead1&&player[i].targetanimation!=jumpreversedanim&&player[i].targetanimation!=rabbitkickreversedanim&&player[i].targetanimation!=rabbitkickanim&&player[k].targetanimation!=rabbitkickanim&&player[i].targetanimation!=getupfrombackanim&&(player[i].targetanimation!=staggerbackhighanim&&(player[i].targetanimation!=staggerbackhardanim||animation[staggerbackhardanim].label[player[i].targetframe]==6))&&player[i].targetanimation!=jumpdownanim&&player[i].targetanimation!=jumpupanim&&player[i].targetanimation!=getupfromfrontanim){
player[k].victim=&player[i];
player[k].hasvictim=1;
if(findDistancefast(&player[k].coords,&player[i].coords)<4.5&&!player[i].skeleton.free&&player[i].howactive<typedead1&&player[i].targetanimation!=jumpreversedanim&&player[i].targetanimation!=rabbitkickreversedanim&&player[i].targetanimation!=rabbitkickanim&&player[k].targetanimation!=rabbitkickanim&&player[i].targetanimation!=getupfrombackanim&&(player[i].targetanimation!=staggerbackhighanim&&(player[i].targetanimation!=staggerbackhardanim||animation[staggerbackhardanim].label[player[i].targetframe]==6))&&player[i].targetanimation!=jumpdownanim&&player[i].targetanimation!=jumpupanim&&player[i].targetanimation!=getupfromfrontanim){
player[k].victim=&player[i];
player[k].hasvictim=1;
if(!player[i].dead||!realthreat||(player[k].weaponactive==-1&&player[k].crouchkeydown))
if(player[i].skeleton.free)
if(findDistancefast(&player[k].coords,&player[i].coords)<3.5*(player[k].scale*5)*(player[k].scale*5)&&(player[i].dead||player[i].skeleton.longdead>1000||player[k].isRun()||(hasstaff)||(player[k].weaponactive!=-1&&player[i].skeleton.free&&(player[i].skeleton.longdead>2000||player[i].damage>player[i].damagetolerance/8||player[i].bloodloss>player[i].damagetolerance/2)&&findDistancefast(&player[k].coords,&player[i].coords)<1.5*(player[k].scale*5)*(player[k].scale*5)))){
if(!player[i].dead||!realthreat||(player[k].weaponactive==-1&&player[k].crouchkeydown))
if(player[i].skeleton.free)
if(findDistancefast(&player[k].coords,&player[i].coords)<3.5*(player[k].scale*5)*(player[k].scale*5)&&(player[i].dead||player[i].skeleton.longdead>1000||player[k].isRun()||(hasstaff)||(player[k].weaponactive!=-1&&player[i].skeleton.free&&(player[i].skeleton.longdead>2000||player[i].damage>player[i].damagetolerance/8||player[i].bloodloss>player[i].damagetolerance/2)&&findDistancefast(&player[k].coords,&player[i].coords)<1.5*(player[k].scale*5)*(player[k].scale*5)))){
if(player[i].onfire||player[k].onfire){
if(!player[i].onfire)player[i].CatchFire();
if(!player[k].onfire)player[k].CatchFire();
if(player[i].onfire||player[k].onfire){
if(!player[i].onfire)player[i].CatchFire();
if(!player[k].onfire)player[k].CatchFire();
collisionradius=1.2*((player[i].scale+player[k].scale)*2.5)*((player[i].scale+player[k].scale)*2.5);
if(player[0].hasvictim)
if(player[0].targetanimation==rabbitkickanim&&(k==0||i==0)&&!player[0].victim->skeleton.free)collisionradius=3;
collisionradius=1.2*((player[i].scale+player[k].scale)*2.5)*((player[i].scale+player[k].scale)*2.5);
if(player[0].hasvictim)
if(player[0].targetanimation==rabbitkickanim&&(k==0||i==0)&&!player[0].victim->skeleton.free)collisionradius=3;
- if((!player[i].skeleton.oldfree||!player[k].skeleton.oldfree)&&(findDistancefast(&tempcoords1,&tempcoords2)<collisionradius||findDistancefast(&player[i].coords,&player[k].coords)<collisionradius)){
+ if((!player[i].skeleton.oldfree||!player[k].skeleton.oldfree)&&(findDistancefast(&tempcoords1,&tempcoords2)<collisionradius||findDistancefast(&player[i].coords,&player[k].coords)<collisionradius)){
if(k==0)
if(player[k].targetanimation==jumpdownanim&&!player[k].skeleton.oldfree&&!player[k].skeleton.free&&player[i].skeleton.oldfree&&player[i].skeleton.free&&player[i].dead&&player[k].lastcollide<=0&&abs(player[i].coords.y-player[k].coords.y)<.2&&findDistancefast(&player[k].coords,&player[i].coords)<.7*((player[i].scale+player[k].scale)*2.5)*((player[i].scale+player[k].scale)*2.5)){
player[k].coords.y=player[i].coords.y;
if(k==0)
if(player[k].targetanimation==jumpdownanim&&!player[k].skeleton.oldfree&&!player[k].skeleton.free&&player[i].skeleton.oldfree&&player[i].skeleton.free&&player[i].dead&&player[k].lastcollide<=0&&abs(player[i].coords.y-player[k].coords.y)<.2&&findDistancefast(&player[k].coords,&player[i].coords)<.7*((player[i].scale+player[k].scale)*2.5)*((player[i].scale+player[k].scale)*2.5)){
player[k].coords.y=player[i].coords.y;
}
if(i==0)
if(player[i].targetanimation==jumpdownanim&&!player[i].skeleton.oldfree&&!player[i].skeleton.free&&player[k].skeleton.oldfree&&player[k].skeleton.free&&player[k].dead&&player[i].lastcollide<=0&&abs(player[i].coords.y-player[k].coords.y)<.2&&findDistancefast(&player[k].coords,&player[i].coords)<.7*((player[i].scale+player[k].scale)*2.5)*((player[i].scale+player[k].scale)*2.5)){
}
if(i==0)
if(player[i].targetanimation==jumpdownanim&&!player[i].skeleton.oldfree&&!player[i].skeleton.free&&player[k].skeleton.oldfree&&player[k].skeleton.free&&player[k].dead&&player[i].lastcollide<=0&&abs(player[i].coords.y-player[k].coords.y)<.2&&findDistancefast(&player[k].coords,&player[i].coords)<.7*((player[i].scale+player[k].scale)*2.5)*((player[i].scale+player[k].scale)*2.5)){
rotatetarget=player[k].velocity-player[i].velocity;
if(((player[i].targetanimation!=getupfrombackanim&&player[i].targetanimation!=getupfromfrontanim)||player[i].skeleton.free)&&((player[k].targetanimation!=getupfrombackanim&&player[k].targetanimation!=getupfromfrontanim)||player[k].skeleton.free))
if(((((findLengthfast(&rotatetarget)>150&&(i!=0&&k!=0))||(findLengthfast(&rotatetarget)>50&&player[0].rabbitkickragdoll/*currentanimation==rabbitkickanim*/&&(i==0||k==0)))&&normaldotproduct(rotatetarget,player[k].coords-player[i].coords)>0)&&((i==0||k==0)||((player[i].skeleton.oldfree==1&&k!=0&&animation[player[k].currentanimation].attack==neutral)||(player[k].skeleton.oldfree==1&&i!=0&&animation[player[i].currentanimation].attack==neutral)||(player[i].isFlip()&&!player[i].skeleton.oldfree&&(i==0||k==0))||(player[k].isFlip()&&!player[k].skeleton.oldfree&&(i==0||k==0))||(i==0||k==0))))||((player[i].targetanimation==jumpupanim||player[i].targetanimation==jumpdownanim||player[i].isFlip())&&(player[k].targetanimation==jumpupanim||player[k].targetanimation==jumpdownanim||player[k].isFlip())&&(i==0||k==0)&&(!player[i].skeleton.oldfree&&!player[k].skeleton.oldfree))){
rotatetarget=player[k].velocity-player[i].velocity;
if(((player[i].targetanimation!=getupfrombackanim&&player[i].targetanimation!=getupfromfrontanim)||player[i].skeleton.free)&&((player[k].targetanimation!=getupfrombackanim&&player[k].targetanimation!=getupfromfrontanim)||player[k].skeleton.free))
if(((((findLengthfast(&rotatetarget)>150&&(i!=0&&k!=0))||(findLengthfast(&rotatetarget)>50&&player[0].rabbitkickragdoll/*currentanimation==rabbitkickanim*/&&(i==0||k==0)))&&normaldotproduct(rotatetarget,player[k].coords-player[i].coords)>0)&&((i==0||k==0)||((player[i].skeleton.oldfree==1&&k!=0&&animation[player[k].currentanimation].attack==neutral)||(player[k].skeleton.oldfree==1&&i!=0&&animation[player[i].currentanimation].attack==neutral)||(player[i].isFlip()&&!player[i].skeleton.oldfree&&(i==0||k==0))||(player[k].isFlip()&&!player[k].skeleton.oldfree&&(i==0||k==0))||(i==0||k==0))))||((player[i].targetanimation==jumpupanim||player[i].targetanimation==jumpdownanim||player[i].isFlip())&&(player[k].targetanimation==jumpupanim||player[k].targetanimation==jumpdownanim||player[k].isFlip())&&(i==0||k==0)&&(!player[i].skeleton.oldfree&&!player[k].skeleton.oldfree))){
- PlaySoundEx( heavyimpactsound, samp[heavyimpactsound], NULL, TRUE);
+ PlaySoundEx( heavyimpactsound, samp[heavyimpactsound], NULL, true);
FSOUND_3D_SetAttributes(channels[heavyimpactsound], gLoc, vel);
FSOUND_SetVolume(channels[heavyimpactsound], 256);
FSOUND_3D_SetAttributes(channels[heavyimpactsound], gLoc, vel);
FSOUND_SetVolume(channels[heavyimpactsound], 256);
if(!player[i].skeleton.free){
oldtargetrotation=player[i].targetrotation;
if(i==0&&indialogue==-1){
if(!player[i].skeleton.free){
oldtargetrotation=player[i].targetrotation;
if(i==0&&indialogue==-1){
}
if(i!=0&&player[i].aitype==playercontrolled&&indialogue==-1){
if(!animation[player[i].targetanimation].attack&&player[i].targetanimation!=staggerbackhighanim&&player[i].targetanimation!=staggerbackhardanim&&player[i].targetanimation!=crouchremoveknifeanim&&player[i].targetanimation!=removeknifeanim&&player[i].targetanimation!=backhandspringanim&&player[i].targetanimation!=dodgebackanim&&player[i].targetanimation!=walljumprightkickanim&&player[i].targetanimation!=walljumpleftkickanim){
}
if(i!=0&&player[i].aitype==playercontrolled&&indialogue==-1){
if(!animation[player[i].targetanimation].attack&&player[i].targetanimation!=staggerbackhighanim&&player[i].targetanimation!=staggerbackhardanim&&player[i].targetanimation!=crouchremoveknifeanim&&player[i].targetanimation!=removeknifeanim&&player[i].targetanimation!=backhandspringanim&&player[i].targetanimation!=dodgebackanim&&player[i].targetanimation!=walljumprightkickanim&&player[i].targetanimation!=walljumpleftkickanim){
facing=DoRotation(facing,0,0-player[i].lookrotation,0);
player[i].targetheadrotation=player[i].lookrotation;
facing=DoRotation(facing,0,0-player[i].lookrotation,0);
player[i].targetheadrotation=player[i].lookrotation;
if(player[i].numwaypoints>1&&player[i].howactive==typeactive&&player[i].pausetime<=0)player[i].forwardkeydown=1;
else player[i].forwardkeydown=0;
if(player[i].numwaypoints>1&&player[i].howactive==typeactive&&player[i].pausetime<=0)player[i].forwardkeydown=1;
else player[i].forwardkeydown=0;
if(player[i].collided<1||player[i].targetanimation!=jumpupanim)player[i].jumpkeydown=0;
if((player[i].collided>.8&&player[i].jumppower>=5))player[i].jumpkeydown=1;
if(player[i].collided<1||player[i].targetanimation!=jumpupanim)player[i].jumpkeydown=0;
if((player[i].collided>.8&&player[i].jumppower>=5))player[i].jumpkeydown=1;
if(player[i].howactive<typesleeping&&((tutoriallevel!=1||cananger)&&hostile)&&!player[0].dead&&findDistancefast(&player[i].coords,&player[0].coords)<400&&player[i].occluded<25){
if(findDistancefast(&player[i].coords,&player[0].coords)<12&&animation[player[0].targetanimation].height!=lowheight&&!editorenabled)
if(player[i].howactive<typesleeping&&((tutoriallevel!=1||cananger)&&hostile)&&!player[0].dead&&findDistancefast(&player[i].coords,&player[0].coords)<400&&player[i].occluded<25){
if(findDistancefast(&player[i].coords,&player[0].coords)<12&&animation[player[0].targetanimation].height!=lowheight&&!editorenabled)
if((-1==checkcollide(DoRotation(player[i].skeleton.joints[player[i].skeleton.jointlabels[head]].position,0,player[i].rotation,0)*player[i].scale+player[i].coords,DoRotation(player[j].skeleton.joints[player[j].skeleton.jointlabels[head]].position,0,player[j].rotation,0)*player[j].scale+player[j].coords)&&!player[j].isWallJump())||(player[j].targetanimation==hanganim&&normaldotproduct(player[j].facing,player[i].coords-player[j].coords)<0)){
player[i].lastseentime-=.2;
if(j==0&&animation[player[j].targetanimation].height==lowheight)player[i].lastseentime-=.4;
if((-1==checkcollide(DoRotation(player[i].skeleton.joints[player[i].skeleton.jointlabels[head]].position,0,player[i].rotation,0)*player[i].scale+player[i].coords,DoRotation(player[j].skeleton.joints[player[j].skeleton.jointlabels[head]].position,0,player[j].rotation,0)*player[j].scale+player[j].coords)&&!player[j].isWallJump())||(player[j].targetanimation==hanganim&&normaldotproduct(player[j].facing,player[i].coords-player[j].coords)<0)){
player[i].lastseentime-=.2;
if(j==0&&animation[player[j].targetanimation].height==lowheight)player[i].lastseentime-=.4;
if(player[i].aiupdatedelay<0){
rotatetarget=player[i].lastseen-player[i].coords;
Normalise(&rotatetarget);
if(player[i].aiupdatedelay<0){
rotatetarget=player[i].lastseen-player[i].coords;
Normalise(&rotatetarget);
if(rotatetarget.z<0)player[i].targetrotation=180-player[i].targetrotation;
player[i].lookrotation=player[i].targetrotation;
player[i].aiupdatedelay=.05;
if(rotatetarget.z<0)player[i].targetrotation=180-player[i].targetrotation;
player[i].lookrotation=player[i].targetrotation;
player[i].aiupdatedelay=.05;
if(findDistancefastflat(&player[i].coords,&player[player[i].ally].coords)<3){
player[i].aitype=searchtype;
if(findDistancefastflat(&player[i].coords,&player[player[i].ally].coords)<3){
player[i].aitype=searchtype;
if(player[i].ally<0||player[i].weaponactive!=-1||player[i].lastchecktime<=0){
player[i].aitype=attacktypecutoff;
player[i].lastseentime=1;
if(player[i].ally<0||player[i].weaponactive!=-1||player[i].lastchecktime<=0){
player[i].aitype=attacktypecutoff;
player[i].lastseentime=1;
if(rotatetarget.z<0)player[i].targetrotation=180-player[i].targetrotation;
player[i].lookrotation=player[i].targetrotation;
player[i].aiupdatedelay=.05;
if(rotatetarget.z<0)player[i].targetrotation=180-player[i].targetrotation;
player[i].lookrotation=player[i].targetrotation;
player[i].aiupdatedelay=.05;
player[i].rightkeydown=0;
player[i].attackkeydown=0;
player[i].throwkeydown=1;
player[i].rightkeydown=0;
player[i].attackkeydown=0;
player[i].throwkeydown=1;
player[i].lastpathfindpoint2=-1;
player[i].lastpathfindpoint3=-1;
player[i].lastpathfindpoint4=-1;
player[i].lastpathfindpoint2=-1;
player[i].lastpathfindpoint3=-1;
player[i].lastpathfindpoint4=-1;
if(player[i].aiupdatedelay<0&&!animation[player[i].targetanimation].attack&&player[i].targetanimation!=staggerbackhighanim&&player[i].targetanimation!=staggerbackhardanim&&player[i].targetanimation!=backhandspringanim&&player[i].targetanimation!=dodgebackanim){
if(player[i].weaponactive==-1&&player[i].num_weapons>0)player[i].drawkeydown=Random()%2;
else player[i].drawkeydown=0;
if(player[i].aiupdatedelay<0&&!animation[player[i].targetanimation].attack&&player[i].targetanimation!=staggerbackhighanim&&player[i].targetanimation!=staggerbackhardanim&&player[i].targetanimation!=backhandspringanim&&player[i].targetanimation!=dodgebackanim){
if(player[i].weaponactive==-1&&player[i].num_weapons>0)player[i].drawkeydown=Random()%2;
else player[i].drawkeydown=0;
vel[1]=player[i].velocity.y;
vel[2]=player[i].velocity.z;
if(weapons.type[j]!=staff){
vel[1]=player[i].velocity.y;
vel[2]=player[i].velocity.z;
if(weapons.type[j]!=staff){
- PlaySoundEx( knifedrawsound, samp[knifedrawsound], NULL, TRUE);
+ PlaySoundEx( knifedrawsound, samp[knifedrawsound], NULL, true);
FSOUND_3D_SetAttributes(channels[knifedrawsound], gLoc, vel);
FSOUND_SetVolume(channels[knifedrawsound], 128);
FSOUND_3D_SetAttributes(channels[knifedrawsound], gLoc, vel);
FSOUND_SetVolume(channels[knifedrawsound], 128);
vel[1]=player[i].velocity.y;
vel[2]=player[i].velocity.z;
if(weapons.type[k]!=staff){
vel[1]=player[i].velocity.y;
vel[2]=player[i].velocity.z;
if(weapons.type[k]!=staff){
- PlaySoundEx( knifedrawsound, samp[knifedrawsound], NULL, TRUE);
+ PlaySoundEx( knifedrawsound, samp[knifedrawsound], NULL, true);
FSOUND_3D_SetAttributes(channels[knifedrawsound], gLoc, vel);
FSOUND_SetVolume(channels[knifedrawsound], 128);
FSOUND_3D_SetAttributes(channels[knifedrawsound], gLoc, vel);
FSOUND_SetVolume(channels[knifedrawsound], 128);
- PlaySoundEx( knifedrawsound, samp[knifedrawsound], NULL, TRUE);
+ PlaySoundEx( knifedrawsound, samp[knifedrawsound], NULL, true);
FSOUND_3D_SetAttributes(channels[knifedrawsound], gLoc, vel);
FSOUND_SetVolume(channels[knifedrawsound], 128);
FSOUND_3D_SetAttributes(channels[knifedrawsound], gLoc, vel);
FSOUND_SetVolume(channels[knifedrawsound], 128);
- PlaySoundEx( fleshstabremovesound, samp[fleshstabremovesound], NULL, TRUE);
+ PlaySoundEx( fleshstabremovesound, samp[fleshstabremovesound], NULL, true);
FSOUND_3D_SetAttributes(channels[fleshstabremovesound], gLoc, vel);
FSOUND_SetVolume(channels[fleshstabremovesound], 128);
FSOUND_3D_SetAttributes(channels[fleshstabremovesound], gLoc, vel);
FSOUND_SetVolume(channels[fleshstabremovesound], 128);
- aim=player[i].victim->coords+DoRotation(player[i].victim->skeleton.joints[player[i].victim->skeleton.jointlabels[abdomen]].position,0,player[i].victim->rotation,0)*player[i].victim->scale+player[i].victim->velocity*findDistance(&player[i].victim->coords,&player[i].coords)/50-(player[i].coords+DoRotation(player[i].skeleton.joints[player[i].skeleton.jointlabels[righthand]].position,0,player[i].rotation,0)*player[i].scale);
+ aim=player[i].victim->coords+DoRotation(player[i].victim->skeleton.joints[player[i].victim->skeleton.jointlabels[abdomen]].position,0,player[i].victim->rotation,0)*player[i].victim->scale+player[i].victim->velocity*findDistance(&player[i].victim->coords,&player[i].coords)/50-(player[i].coords+DoRotation(player[i].skeleton.joints[player[i].skeleton.jointlabels[righthand]].position,0,player[i].rotation,0)*player[i].scale);
Normalise(&aim);
aim=DoRotation(aim,(float)abs(Random()%30)-15,(float)abs(Random()%30)-15,0);
Normalise(&aim);
aim=DoRotation(aim,(float)abs(Random()%30)-15,(float)abs(Random()%30)-15,0);
}
if(player[i].isCrouch()&&weapons.bloody[player[i].weaponids[player[i].weaponactive]]&&bloodtoggle&&player[i].onterrain&&player[i].num_weapons&&player[i].weaponactive!=-1&&player[i].attackkeydown){
if(weapons.bloody[player[i].weaponids[player[i].weaponactive]]&&player[i].onterrain&&bloodtoggle&&musictype!=stream_music2){
}
if(player[i].isCrouch()&&weapons.bloody[player[i].weaponids[player[i].weaponactive]]&&bloodtoggle&&player[i].onterrain&&player[i].num_weapons&&player[i].weaponactive!=-1&&player[i].attackkeydown){
if(weapons.bloody[player[i].weaponids[player[i].weaponactive]]&&player[i].onterrain&&bloodtoggle&&musictype!=stream_music2){
if(!player[i].wasCrouch()){
player[i].currentanimation=player[i].getCrouch();
player[i].currentframe=0;
if(!player[i].wasCrouch()){
player[i].currentanimation=player[i].getCrouch();
player[i].currentframe=0;
- PlaySoundEx( whooshsound, samp[whooshsound], NULL, TRUE);
+ PlaySoundEx( whooshsound, samp[whooshsound], NULL, true);
FSOUND_3D_SetAttributes(channels[whooshsound], gLoc, vel);
FSOUND_SetVolume(channels[whooshsound], 128);
FSOUND_3D_SetAttributes(channels[whooshsound], gLoc, vel);
FSOUND_SetVolume(channels[whooshsound], 128);
- PlaySoundEx( jumpsound, samp[jumpsound], NULL, TRUE);
+ PlaySoundEx( jumpsound, samp[jumpsound], NULL, true);
FSOUND_3D_SetAttributes(channels[jumpsound], gLoc, vel);
FSOUND_SetVolume(channels[jumpsound], 128);
FSOUND_3D_SetAttributes(channels[jumpsound], gLoc, vel);
FSOUND_SetVolume(channels[jumpsound], 128);
if(player[i].targetanimation==jumpupanim&&(((!floatjump&&!editorenabled)||!debugmode)||player[i].aitype!=playercontrolled)){
if(player[i].jumppower>multiplier*6){
player[i].velocity.y+=multiplier*6;
if(player[i].targetanimation==jumpupanim&&(((!floatjump&&!editorenabled)||!debugmode)||player[i].aitype!=playercontrolled)){
if(player[i].jumppower>multiplier*6){
player[i].velocity.y+=multiplier*6;
FSOUND_StopSound(FSOUND_ALL); // hack...OpenAL renderer isn't stopping music after tutorial goes to level menu...
FSOUND_SetFrequency(FSOUND_ALL, 0.001);
FSOUND_StopSound(FSOUND_ALL); // hack...OpenAL renderer isn't stopping music after tutorial goes to level menu...
FSOUND_SetFrequency(FSOUND_ALL, 0.001);
- PlayStreamEx( stream_music3, strm[stream_music3], NULL, TRUE);
- FSOUND_SetPaused(channels[stream_music3], FALSE);
+ PlayStreamEx( stream_music3, strm[stream_music3], NULL, true);
+ FSOUND_SetPaused(channels[stream_music3], false);
- FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 9999.0f, 99999.0f);
- PlaySoundEx( fireendsound, samp[fireendsound], NULL, TRUE);
+ FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 9999.0f, 99999.0f);
+ PlaySoundEx( fireendsound, samp[fireendsound], NULL, true);
FSOUND_3D_SetAttributes(channels[fireendsound], gLoc, vel);
FSOUND_SetVolume(channels[fireendsound], 256);
FSOUND_3D_SetAttributes(channels[fireendsound], gLoc, vel);
FSOUND_SetVolume(channels[fireendsound], 256);
- FSOUND_SetPaused(channels[fireendsound], FALSE);
- FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 8.0f, 2000.0f);
+ FSOUND_SetPaused(channels[fireendsound], false);
+ FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 8.0f, 2000.0f);
- PlaySoundEx( fireendsound, samp[fireendsound], NULL, TRUE);
+ PlaySoundEx( fireendsound, samp[fireendsound], NULL, true);
FSOUND_3D_SetAttributes(channels[fireendsound], gLoc, vel);
FSOUND_SetVolume(channels[fireendsound], 256);
FSOUND_3D_SetAttributes(channels[fireendsound], gLoc, vel);
FSOUND_SetVolume(channels[fireendsound], 256);
- PlaySoundEx( fireendsound, samp[fireendsound], NULL, TRUE);
+ PlaySoundEx( fireendsound, samp[fireendsound], NULL, true);
FSOUND_3D_SetAttributes(channels[fireendsound], gLoc, vel);
FSOUND_SetVolume(channels[fireendsound], 256);
FSOUND_3D_SetAttributes(channels[fireendsound], gLoc, vel);
FSOUND_SetVolume(channels[fireendsound], 256);
facing=DoRotation(facing,-rotation2,0,0);
facing=DoRotation(facing,0,0-rotation,0);
facing=DoRotation(facing,-rotation2,0,0);
facing=DoRotation(facing,0,0-rotation,0);
- FSOUND_SetFrequency(FSOUND_ALL, 0.001);
- PlayStreamEx( stream_music3, strm[stream_music3], NULL, TRUE);
- FSOUND_SetPaused(channels[stream_music3], FALSE);
+ FSOUND_SetFrequency(FSOUND_ALL, 0.001);
+ PlayStreamEx( stream_music3, strm[stream_music3], NULL, true);
+ FSOUND_SetPaused(channels[stream_music3], false);
- FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 9999.0f, 99999.0f);
- PlaySoundEx( fireendsound, samp[fireendsound], NULL, TRUE);
+ FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 9999.0f, 99999.0f);
+ PlaySoundEx( fireendsound, samp[fireendsound], NULL, true);
FSOUND_3D_SetAttributes(channels[fireendsound], gLoc, vel);
FSOUND_SetVolume(channels[fireendsound], 256);
FSOUND_3D_SetAttributes(channels[fireendsound], gLoc, vel);
FSOUND_SetVolume(channels[fireendsound], 256);
- FSOUND_SetPaused(channels[fireendsound], FALSE);
- FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 8.0f, 2000.0f);
+ FSOUND_SetPaused(channels[fireendsound], false);
+ FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 8.0f, 2000.0f);
- FSOUND_SetFrequency(FSOUND_ALL, 0.001);
- PlayStreamEx( stream_music3, strm[stream_music3], NULL, TRUE);
- FSOUND_SetPaused(channels[stream_music3], FALSE);
+ FSOUND_SetFrequency(FSOUND_ALL, 0.001);
+ PlayStreamEx( stream_music3, strm[stream_music3], NULL, true);
+ FSOUND_SetPaused(channels[stream_music3], false);
- FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 9999.0f, 99999.0f);
- PlaySoundEx( fireendsound, samp[fireendsound], NULL, TRUE);
+ FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 9999.0f, 99999.0f);
+ PlaySoundEx( fireendsound, samp[fireendsound], NULL, true);
FSOUND_3D_SetAttributes(channels[fireendsound], gLoc, vel);
FSOUND_SetVolume(channels[fireendsound], 256);
FSOUND_3D_SetAttributes(channels[fireendsound], gLoc, vel);
FSOUND_SetVolume(channels[fireendsound], 256);
- FSOUND_SetPaused(channels[fireendsound], FALSE);
- FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 8.0f, 2000.0f);
+ FSOUND_SetPaused(channels[fireendsound], false);
+ FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 8.0f, 2000.0f);
- PlaySoundEx( alarmsound, samp[alarmsound], NULL, TRUE);
+ PlaySoundEx( alarmsound, samp[alarmsound], NULL, true);
- PlayStreamEx( music1, strm[music1], NULL, TRUE);
- FSOUND_SetPaused(channels[music1], FALSE);
+ PlayStreamEx( music1, strm[music1], NULL, true);
+ FSOUND_SetPaused(channels[music1], false);
- PlayStreamEx( stream_music2, strm[stream_music2], NULL, TRUE);
- FSOUND_SetPaused(channels[stream_music2], FALSE);
+ PlayStreamEx( stream_music2, strm[stream_music2], NULL, true);
+ FSOUND_SetPaused(channels[stream_music2], false);
- PlayStreamEx( stream_music3, strm[stream_music3], NULL, TRUE);
- FSOUND_SetPaused(channels[stream_music3], FALSE);
+ PlayStreamEx( stream_music3, strm[stream_music3], NULL, true);
+ FSOUND_SetPaused(channels[stream_music3], false);
- if(!musictoggle){
- FSOUND_SetPaused(channels[music1], TRUE);
- FSOUND_SetPaused(channels[stream_music2], TRUE);
- FSOUND_SetPaused(channels[stream_music3], TRUE);
+ if(!musictoggle){
+ FSOUND_SetPaused(channels[music1], true);
+ FSOUND_SetPaused(channels[stream_music2], true);
+ FSOUND_SetPaused(channels[stream_music3], true);
if(!player[i].dead&&player[i].aitype==attacktypecutoff&&player[i].surprised<=0)numalarmed++;
}
if(numalarmed>maxalarmed)maxalarmed=numalarmed;
if(!player[i].dead&&player[i].aitype==attacktypecutoff&&player[i].surprised<=0)numalarmed++;
}
if(numalarmed>maxalarmed)maxalarmed=numalarmed;
- FSOUND_Sample_SetMinMaxDistance(samp[firestartsound], 9999.0f, 99999.0f);
- PlaySoundEx( firestartsound, samp[firestartsound], NULL, TRUE);
+ FSOUND_Sample_SetMinMaxDistance(samp[firestartsound], 9999.0f, 99999.0f);
+ PlaySoundEx( firestartsound, samp[firestartsound], NULL, true);
FSOUND_3D_SetAttributes(channels[firestartsound], gLoc, vel);
FSOUND_SetVolume(channels[firestartsound], 256);
FSOUND_3D_SetAttributes(channels[firestartsound], gLoc, vel);
FSOUND_SetVolume(channels[firestartsound], 256);
- FSOUND_SetPaused(channels[firestartsound], FALSE);
- FSOUND_Sample_SetMinMaxDistance(samp[firestartsound], 8.0f, 2000.0f);
+ FSOUND_SetPaused(channels[firestartsound], false);
+ FSOUND_Sample_SetMinMaxDistance(samp[firestartsound], 8.0f, 2000.0f);
- FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 9999.0f, 99999.0f);
- PlaySoundEx( fireendsound, samp[fireendsound], NULL, TRUE);
+ FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 9999.0f, 99999.0f);
+ PlaySoundEx( fireendsound, samp[fireendsound], NULL, true);
FSOUND_3D_SetAttributes(channels[fireendsound], gLoc, vel);
FSOUND_SetVolume(channels[fireendsound], 256);
FSOUND_3D_SetAttributes(channels[fireendsound], gLoc, vel);
FSOUND_SetVolume(channels[fireendsound], 256);
- FSOUND_SetPaused(channels[fireendsound], FALSE);
- FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 8.0f, 2000.0f);
+ FSOUND_SetPaused(channels[fireendsound], false);
+ FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 8.0f, 2000.0f);
- FSOUND_Sample_SetMinMaxDistance(samp[firestartsound], 9999.0f, 99999.0f);
- PlaySoundEx( firestartsound, samp[firestartsound], NULL, TRUE);
+ FSOUND_Sample_SetMinMaxDistance(samp[firestartsound], 9999.0f, 99999.0f);
+ PlaySoundEx( firestartsound, samp[firestartsound], NULL, true);
FSOUND_3D_SetAttributes(channels[firestartsound], gLoc, vel);
FSOUND_SetVolume(channels[firestartsound], 256);
FSOUND_3D_SetAttributes(channels[firestartsound], gLoc, vel);
FSOUND_SetVolume(channels[firestartsound], 256);
- FSOUND_SetPaused(channels[firestartsound], FALSE);
- FSOUND_Sample_SetMinMaxDistance(samp[firestartsound], 8.0f, 2000.0f);
+ FSOUND_SetPaused(channels[firestartsound], false);
+ FSOUND_Sample_SetMinMaxDistance(samp[firestartsound], 8.0f, 2000.0f);
- FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 9999.0f, 99999.0f);
- PlaySoundEx( fireendsound, samp[fireendsound], NULL, TRUE);
+ FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 9999.0f, 99999.0f);
+ PlaySoundEx( fireendsound, samp[fireendsound], NULL, true);
FSOUND_3D_SetAttributes(channels[fireendsound], gLoc, vel);
FSOUND_SetVolume(channels[fireendsound], 256);
FSOUND_3D_SetAttributes(channels[fireendsound], gLoc, vel);
FSOUND_SetVolume(channels[fireendsound], 256);
- FSOUND_SetPaused(channels[fireendsound], FALSE);
- FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 8.0f, 2000.0f);
+ FSOUND_SetPaused(channels[fireendsound], false);
+ FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 8.0f, 2000.0f);
loading=3;
}
if(changedelay<=-999&&whichlevel!=-2&&!loading&&(player[0].dead||(alldead&&maptype==mapkilleveryone)||(winhotspot)||(killhotspot))&&!winfreeze)loading=1;
if((player[0].dead||(alldead&&maptype==mapkilleveryone)||(winhotspot)||(windialogue)||(killhotspot))&&changedelay<=0){
if(accountprogress[accountactive]>3&&!registered){
loading=3;
}
if(changedelay<=-999&&whichlevel!=-2&&!loading&&(player[0].dead||(alldead&&maptype==mapkilleveryone)||(winhotspot)||(killhotspot))&&!winfreeze)loading=1;
if((player[0].dead||(alldead&&maptype==mapkilleveryone)||(winhotspot)||(windialogue)||(killhotspot))&&changedelay<=0){
if(accountprogress[accountactive]>3&&!registered){
- FSOUND_SetFrequency(FSOUND_ALL, 0.001);
- PlayStreamEx( stream_music3, strm[stream_music3], NULL, TRUE);
- FSOUND_SetPaused(channels[stream_music3], FALSE);
+ FSOUND_SetFrequency(FSOUND_ALL, 0.001);
+ PlayStreamEx( stream_music3, strm[stream_music3], NULL, true);
+ FSOUND_SetPaused(channels[stream_music3], false);
- FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 9999.0f, 99999.0f);
- PlaySoundEx( fireendsound, samp[fireendsound], NULL, TRUE);
+ FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 9999.0f, 99999.0f);
+ PlaySoundEx( fireendsound, samp[fireendsound], NULL, true);
FSOUND_3D_SetAttributes(channels[fireendsound], gLoc, vel);
FSOUND_SetVolume(channels[fireendsound], 256);
FSOUND_3D_SetAttributes(channels[fireendsound], gLoc, vel);
FSOUND_SetVolume(channels[fireendsound], 256);
- FSOUND_SetPaused(channels[fireendsound], FALSE);
- FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 8.0f, 2000.0f);
+ FSOUND_SetPaused(channels[fireendsound], false);
+ FSOUND_Sample_SetMinMaxDistance(samp[fireendsound], 8.0f, 2000.0f);
- FSOUND_Sample_SetMinMaxDistance(samp[firestartsound], 9999.0f, 99999.0f);
- PlaySoundEx( firestartsound, samp[firestartsound], NULL, TRUE);
+ FSOUND_Sample_SetMinMaxDistance(samp[firestartsound], 9999.0f, 99999.0f);
+ PlaySoundEx( firestartsound, samp[firestartsound], NULL, true);
FSOUND_3D_SetAttributes(channels[firestartsound], gLoc, vel);
FSOUND_SetVolume(channels[firestartsound], 256);
FSOUND_3D_SetAttributes(channels[firestartsound], gLoc, vel);
FSOUND_SetVolume(channels[firestartsound], 256);
- FSOUND_SetPaused(channels[firestartsound], FALSE);
- FSOUND_Sample_SetMinMaxDistance(samp[firestartsound], 8.0f, 2000.0f);
+ FSOUND_SetPaused(channels[firestartsound], false);
+ FSOUND_Sample_SetMinMaxDistance(samp[firestartsound], 8.0f, 2000.0f);
- if(objects.model[i].LineCheckPossible(&colviewer,&coltarget,&col,&objects.position[i],&objects.rotation[i])!=-1)viewer=col;
+ if(objects.model[i].LineCheckPossible(&colviewer,&coltarget,&col,&objects.position[i],&objects.rotation[i])!=-1)viewer=col;
}
if(terrain.patchobjectnum[player[0].whichpatchx][player[0].whichpatchz])
for(j=0;j<terrain.patchobjectnum[player[0].whichpatchx][player[0].whichpatchz];j++){
}
if(terrain.patchobjectnum[player[0].whichpatchx][player[0].whichpatchz])
for(j=0;j<terrain.patchobjectnum[player[0].whichpatchx][player[0].whichpatchz];j++){
- if(objects.model[i].LineCheckPossible(&colviewer,&coltarget,&col,&objects.position[i],&objects.rotation[i])!=-1)viewer=col;
+ if(objects.model[i].LineCheckPossible(&colviewer,&coltarget,&col,&objects.position[i],&objects.rotation[i])!=-1)viewer=col;
}
if(terrain.patchobjectnum[player[0].whichpatchx][player[0].whichpatchz])
for(j=0;j<terrain.patchobjectnum[player[0].whichpatchx][player[0].whichpatchz];j++){
}
if(terrain.patchobjectnum[player[0].whichpatchx][player[0].whichpatchz])
for(j=0;j<terrain.patchobjectnum[player[0].whichpatchx][player[0].whichpatchz];j++){