JazzJackrabbit Community Forums

JazzJackrabbit Community Forums (http://www.jazz2online.com/jcf/index.php)
-   JJ2+ Issue Tracker (http://www.jazz2online.com/jcf/forumdisplay.php?f=49)
-   -   Feature Request Allow mutators to hook into the CUSTOM_HOME gamemode (http://www.jazz2online.com/jcf/showthread.php?t=20133)

cooba Dec 6, 2017 12:21 PM

Allow mutators to hook into the CUSTOM_HOME gamemode
 
[21:37:10] PJ CC: a future jj2+ edition should have support for a
[21:37:27] PJ CC: generic custom mode
[21:37:37] PJ CC: designed to be used with mutator custom modes
[21:37:46] cooba[si]: this already exists in a way
[21:37:58] cooba[si]: but should be expanded into what you're saying more or less

Violet CLM Dec 6, 2017 12:24 PM

My vision of how this would work looks something like this:

In some script module:
Code:

class DoubleDom : jjCUSTOMGAMEMODE {
  //various methods go here
}

And then command:
Code:

/gamemode DoubleDom
which instantiates a member of that class and runs its constructor default or otherwise.

Ideally there would be enough methods and things for any of the native gamemodes to be fully replicable in the script, but I definitely haven't taken the time to think through what all that would require.


All times are GMT -8. The time now is 06:14 AM.

Powered by vBulletin® Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
JCF © 2001-Infinity Jazz2Online