[Source Release]Day & Night System

10/25/2012 13:21 Vollschrecker222#46
Quote:
C:\Flyff\Source\Source\_Common\World3D.cpp(1775): error C2601: 'CWorld::IsNight' : local function definitions are illegal
C:\Flyff\Source\Source\_Common\World3D.cpp(1779): error C2601: 'CWorld::GetRealTime' : local function definitions are illegal
Zeile 1775-1779 in der World3D.cpp:
Quote:
bool CWorld::IsNight(){
return ( g_GameTimer.m_nHour-1 <= 6 || g_GameTimer.m_nHour-1 >= 18 );
}
FLOAT CWorld::GetRealTime()
{
Brauche bitte schnell hilfe.
10/25/2012 14:07 xTwiLightx#47
Funktionen werden in Headerdateien definiert, nicht in den cpp Dateien.
04/29/2013 02:17 InvectusTM#48
Can you make an English version for this. :(
04/29/2013 05:47 W.o.F#49
You can use google translate to understand words!
07/11/2014 16:55 jeklordzxc#50
Quote:
Originally Posted by Jopsi332 View Post
ich würd ja mal die augen aufmachen

Edit für die nachwelt :
wobei mir pumba auch nur 3snippets gegeben hat was ich damit machen muss mnusstte ich selber zusehen. also das war was er mir geschickt hat (genau so)
Code:
#ifdef __DAY_NIGHT
if( !m_bIsIndoor ){
m_fFogStartValue = 10.0F;
m_fFogEndValue = 70.0F + GetRealTime() * 30.0F;
m_fFogDensity = 0.0F;
m_v3LightDir.x = 0.0F;
m_v3LightDir.y = -1.0F;
m_v3LightDir.z = 0.0F;
}
#endif // __DAY_NIGHT
#ifdef __CLIENT
bool CWorld::IsNight(){
return ( g_GameTimer.m_nHour-1 <= 6 || g_GameTimer.m_nHour-1 >= 18 ); 
}
FLOAT CWorld::GetRealTime()
{
FLOAT nRlTime = 0;
nRlTime = (FLOAT)(g_GameTimer.m_nHour-1)*2;
if( g_GameTimer.m_nMin < 30 )
--nRlTime;
if( g_GameTimer.m_nHour-1 == 23 && g_GameTimer.m_nMin > 45 )
nRlTime+=0.5F;
if( nRlTime > 24 )
{
return ((-1)*(nRlTime - 48 ));
}
return nRlTime;
}
#endif
if( m_bIsIndoor
#ifdef __DAY_NIGHT
|| IsNight()
#endif // __DAY_NIGHT
)


sir do you have a screenshot of day and night system.? becuase i see lot of release., and the same output .,

i want some like unique day and nigt.,

[Only registered and activated users can see links. Click Here To Register...]


sorry for my bad english
08/15/2014 09:16 randeljohnvalencia#51
what files Put the code?