[Tutoriel] Systeme Night and day (hallowenn)

01/25/2014 17:36 Cloud'#1
Hello everyone!

Hallowenn coming soon, and i sayed to myself "The game need to be crazy and be fear".

Screen:

For this, you need ton open 2 files, WorlEnvironment.cpp and Neuz.cpp
go to WorldEnvironment.cpp and find "static const LIGHTCOLOR gs_kLight[24]".

Before this, i added that ( red color):

In the same file, find "BOOL CWorld::InitWorldEnvir( )", and added this (red color):


Last time in this file, find at, i added this (red color) "m_bUsing24Light!"


Here we have defined for the period from 31 October to 1 November, a darkening of the game, go to the management of the sky (would be stupid to have a dark and beautiful blue sky above).
Right now, we add system for halloween night at october 31 and november first. Now, we need to stop the sky action.

For stop the sky action, we will stop the time in game, at 1 am. exactly. Go on Neuz.cpp and find "m_d3dEnumeration.AppUsesMixedVP = TRUE;", and add this code (red color).

Citation

And here finally, if there are problems thank you to let me know quickly to allow me to correct as soon as possible.
That all, if you see any prob in gold with the result code, say me fast, and all i change my post.

Cordialement

Prophet

c* Robinhood (i juz found this from the other forum)
01/25/2014 17:40 Lumi#2
Any screens? ;o
Wasn't that copied at another board?
01/25/2014 17:54 Cloud'#3
Yes. I juz copy/paste this from the other board.
01/26/2014 11:23 Rhyder`#4
Credits to Prophet and edit the surface by dave

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