Quote:
Originally Posted by Seta00
Copy paste all functions, and add calls to the additional ones in the end of the original functions.
For example, you have two plugins that use Ham_TakeDamage:
Code:
// Plugins merged:
plugin_init() {
RegisterHam(Ham_TakeDamage, "player", "Ham_TakeDamage"); // leave only one registration
}
public Ham_TakeDamage() {
// mimimi..
FwdTakeDamage(id);
}
public FwdTakeDamage() {
// bla bla bla...
}
|
Quote:
Originally Posted by grimvh2
PHP Code:
// Plugins merged: plugin_init() { RegisterHam(Ham_TakeDamage, "player", "Ham_TakeDamage"); // leave only one registration }
public Ham_TakeDamage() { // mimimi.. // bla bla bla }
|
This won't always work because, for example, one plugin may require altering a param value (and return HAM_HANDLED) while another may require to block all damage (via return HAM_SUPERCEDE). This is why multiple Ham_TakeDamage registers\forwards may be required; it all depends on what the plugins do.
__________________