help setting up day and night

Discussion about Helbreath Server Files.
Post Reply
kahn
Loyal fan
Posts: 203
Joined: Thu Oct 07, 2004 1:20 am

Post by kahn »

how can i ste it up so that it changes from day to night every 1-2 hours or so and that it makes the birds chriping and the crickets and the screen gets lighter and darker


also any know how to raise the hitting probilty of weapons in sorce
bone-you
Spamtastic
Posts: 1310
Joined: Wed Mar 16, 2005 3:12 am

Post by bone-you »

lol that's a funny question. Never been asked how to make the birds chirp xD

OnTimer in the HG

Code: Select all

	if ((dwTime - m_dwGameTime2) > 3000) {
  CheckClientResponseTime();
  SendMsgToGateServer(MSGID_GAMESERVERALIVE, NULL);
  CheckDayOrNightMode();

Code: Select all

void CGame::CheckDayOrNightMode()
{
	SYSTEMTIME SysTime;	
	char cPrevMode;
	int  i;

	// ÇöÀç ½Ã°£¿¡ µû¶ó ³· ȤÀº ¹ãÀ» °áÁ¤ÇÑ´Ù. 
	// ÁÖ, ¾ß°£ ¸ðµå ¼³Á¤ 
	cPrevMode = m_cDayOrNight;

	GetLocalTime(&SysTime);
	if (SysTime.wMinute >= DEF_NIGHTTIME) 
  m_cDayOrNight = 2;
	else m_cDayOrNight = 1;

	if (cPrevMode != m_cDayOrNight) {
  // ÁÖ, ¾ß°£ ¸ðµå°¡ º¯°æµÇ¾ú´Ù. ÁÖ, ¾ß°£ ¸ðµåÀÇ ¿µÇâÀ» ¹Þ´Â ¸Ê¿¡ Á¸ÀçÇϴ Ŭ¶óÀÌ¾ðÆ®µé¿¡°Ô ¾Ë¸°´Ù. 
  for (i = 1; i < DEF_MAXCLIENTS; i++) 
  	if ((m_pClientList[i] != NULL) && (m_pClientList[i]->m_bIsInitComplete == TRUE)) {
    if ((m_pClientList[i]->m_cMapIndex >= 0) && 
    	(m_pMapList[m_pClientList[i]->m_cMapIndex] != NULL) &&
    	(m_pMapList[m_pClientList[i]->m_cMapIndex]->m_bIsFixedDayMode == FALSE))
    	SendNotifyMsg(NULL, i, DEF_NOTIFY_TIMECHANGE, m_cDayOrNight, NULL, NULL, NULL);	
  	}
	}
}
It's in the 2.20 hg. :)
<img src='http://www.helbreathx.net/sig/sig.jpeg' border='0' alt='user posted image' /><br><a href='http://mafia.cheats4us.org/index.php?x=231030' target='_blank'>#1 on Mafia :D</a><br><!--QuoteBegin-Slipknight+--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Slipknight)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->100mb Internet, burstable too 10GB oc192<br>his speed can go up too 10gbs<br>...<br>Yes my car can have a top speed of 1000mph<!--QuoteEnd--></td></tr></table><div class='signature'><!--QuoteEEnd--><br>^^ I wonder where the retard went to.
Sentinel
Loyal fan
Posts: 462
Joined: Thu Jan 11, 2007 4:16 pm

Post by Sentinel »

Nice. I had wondered what had happened to that. There's loads of things that v3.51+ doesn't have that v2.20 has. The bird's chirping and the crickets..
<!--QuoteBegin--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->charlie says:<br>i may own outpost but im not a nerd<!--QuoteEnd--></td></tr></table><div class='signature'><!--QuoteEEnd--><br><!--QuoteBegin--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->(locobans @ Mar 12 2007, 10:48 PM) <br>"Remember while peeing, If you shake it more than twice you playing with it..." <br><!--QuoteEnd--></td></tr></table><div class='signature'><!--QuoteEEnd-->
bone-you
Spamtastic
Posts: 1310
Joined: Wed Mar 16, 2005 3:12 am

Post by bone-you »

Sentinel wrote: Nice. I had wondered what had happened to that. There's loads of things that v3.51+ doesn't have that v2.20 has. The bird's chirping and the crickets..
That's just the day changing you dumbshit >.>
<img src='http://www.helbreathx.net/sig/sig.jpeg' border='0' alt='user posted image' /><br><a href='http://mafia.cheats4us.org/index.php?x=231030' target='_blank'>#1 on Mafia :D</a><br><!--QuoteBegin-Slipknight+--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Slipknight)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->100mb Internet, burstable too 10GB oc192<br>his speed can go up too 10gbs<br>...<br>Yes my car can have a top speed of 1000mph<!--QuoteEnd--></td></tr></table><div class='signature'><!--QuoteEEnd--><br>^^ I wonder where the retard went to.
Sentinel
Loyal fan
Posts: 462
Joined: Thu Jan 11, 2007 4:16 pm

Post by Sentinel »

bone-you wrote:
Sentinel wrote: Nice. I had wondered what had happened to that. There's loads of things that v3.51+ doesn't have that v2.20 has. The bird's chirping and the crickets..
That's just the day changing you dumbshit >.>
Like I didn't know that fucktard. I only read the topic title... I also read "void CGame::CheckDayOrNightMode" Kinda obvious, don't you think?
<!--QuoteBegin--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->charlie says:<br>i may own outpost but im not a nerd<!--QuoteEnd--></td></tr></table><div class='signature'><!--QuoteEEnd--><br><!--QuoteBegin--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->(locobans @ Mar 12 2007, 10:48 PM) <br>"Remember while peeing, If you shake it more than twice you playing with it..." <br><!--QuoteEnd--></td></tr></table><div class='signature'><!--QuoteEEnd-->
bone-you
Spamtastic
Posts: 1310
Joined: Wed Mar 16, 2005 3:12 am

Post by bone-you »

Sentinel wrote:
bone-you wrote:
Sentinel wrote: Nice. I had wondered what had happened to that. There's loads of things that v3.51+ doesn't have that v2.20 has. The bird's chirping and the crickets..
That's just the day changing you dumbshit >.>
Like I didn't know that fucktard. I only read the topic title... I also read "void CGame::CheckDayOrNightMode" Kinda obvious, don't you think?
No dumbass, changing the day and night IS the crickets and birds.
<img src='http://www.helbreathx.net/sig/sig.jpeg' border='0' alt='user posted image' /><br><a href='http://mafia.cheats4us.org/index.php?x=231030' target='_blank'>#1 on Mafia :D</a><br><!--QuoteBegin-Slipknight+--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Slipknight)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->100mb Internet, burstable too 10GB oc192<br>his speed can go up too 10gbs<br>...<br>Yes my car can have a top speed of 1000mph<!--QuoteEnd--></td></tr></table><div class='signature'><!--QuoteEEnd--><br>^^ I wonder where the retard went to.
tester
Outpost bitch
Posts: 544
Joined: Wed Jan 07, 2004 8:58 pm

Post by tester »

Sentinel wrote: Nice. I had wondered what had happened to that. There's loads of things that v3.51+ doesn't have that v2.20 has. The bird's chirping and the crickets..
I just hosted a 2.19 server, dam was that fun, normal bhammers and such, and when u recall or zone, ur screen warps open instead of going fast lol sweet.

So miss the old times, where we used to teleport with summons at the D2 golem pit to D3 hahaha sweet.

And to help kahn out
also any know how to raise the hitting probilty of weapons in sorce
Just in case u might have noticed his second question. xD


Cheers Tester
I support a woman's right to choose<br><br>- In the Mouth?<br>- In the Ass ?<br>- In the Vagina?<br>- Between the Tits?
Sprint
Spamtastic
Posts: 1000
Joined: Tue Jun 06, 2006 6:59 am
Location: Far from home
Contact:

Post by Sprint »

bone-you wrote:
Sentinel wrote:
bone-you wrote: That's just the day changing you dumbshit >.>
Like I didn't know that fucktard. I only read the topic title... I also read "void CGame::CheckDayOrNightMode" Kinda obvious, don't you think?
No dumbass, changing the day and night IS the crickets and birds.
lmao <a href='http://sentinel.justgotowned.com' target='_blank'>owned</a>!
<span style='color:blue'><span style='font-size:19pt;line-height:100%'><u><b>FUCK Helbreath!</b></u></span></span><br><br><span style='color:gray'><a href='http://www2.analystica.com/users/anttu/online/ngd' target='_blank'>ngdnetwork</a> OFFICIAL WEBSITE OF Northern Game Developers. Do visit! (THEY ARE UP!)<br><a href='http://project3d.x.am' target='_blank'>Project3d development forum</a> plz join and discuss,develop,give ideas,feedback. Anything goes as long it helps the project!</span><br><br>Zepto Znote 6625WD: 1.8Ghz dual core, 2GB, 512mb graphics card(dedicated), 160GB HDD<br><img src='http://www.signaturebar.com/uploads/images/10111.jpg' border='0' alt='user posted image' /><br><img src='http://www.signaturebar.com/uploads/images/13229.jpg' border='0' alt='user posted image' /><br><img src='http://www.signaturebar.com/uploads/images/8852.png' border='0' alt='user posted image' />
Post Reply