-
Notifications
You must be signed in to change notification settings - Fork 17
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
Medical - Add framework for pain dynamics || Improve code readability and error handling #95
base: master
Are you sure you want to change the base?
Conversation
//------------------------------------------------------------------------------------------------ | ||
//! Initialize member variables | ||
//! Initialize member variables. |
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.
None of the other doc blocks end with a punctuation, keep consistent
//! Initialize member variables. | |
//! Initialize member variables |
|
||
//------------------------------------------------------------------------------------------------ | ||
//! Handle logic when character is revived (ALIVE state) | ||
void HandleAliveState() |
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.
this is not a public API
void HandleAliveState() | |
protected void HandleAliveState() |
|
||
//------------------------------------------------------------------------------------------------ | ||
//! Handle logic when character is incapacitated (INCAPACITATED state) | ||
void HandleIncapacitatedState() |
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.
void HandleIncapacitatedState() | |
protected void HandleIncapacitatedState() |
|
||
//------------------------------------------------------------------------------------------------ | ||
//! Handle logic when character is dead (DEAD state) | ||
void HandleDeadState() |
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.
void HandleDeadState() | |
protected void HandleDeadState() |
// We only notify the replication system about changes of these members on initialization | ||
// After init, each proxy is itself responsible for updating these members | ||
// Having them as RplProp also ensures that JIPs receive the current state from the server |
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 see the point of removing a useful comment.
m_bACE_Medical_Initialized = true; | ||
Replication.BumpMe(); | ||
|
||
// Log successful initialization | ||
Print("ACE Medical: Initialized with second chance enabled.", LogLevel.INFO); |
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.
Could you add info about m_bSecondChanceOnHeadEnabled
, m_fSecondChanceRegenScale
values here?
I don't see any of this in the PR, and in general it would make sense to keep them separate from the minor refactor so it's easier to review. |
When merged this pull request will: