-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implemented proper handling of game start-end events. #48
Conversation
379787f
to
ff6621f
Compare
Fixed multiple execution of scripts during new game start.
ff6621f
to
5446503
Compare
void(__cdecl* GameRestart3)() = nullptr; | ||
static void __cdecl OnGameRestart1(); | ||
static void __cdecl OnGameRestart2(); | ||
static void __cdecl OnGameRestart3(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@MiranDMC can you document in wiki what events and CLEO callbacks are executed when we
- start a new game
- start a game from a save file
- loading another save
- exiting game
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
source/CScriptEngine.cpp
Outdated
|
||
gangWeapons[7].weapon[0] = 22; | ||
gangWeapons[7].weapon[1] = 28; | ||
gangWeapons[7].weapon[2] = 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know why we make this for EU 1.01 specifically. CLEO does not work here anyway. Let's delete this, it's not CLEO business
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Fixed multiple execution of scripts during new game start.