deriving multiple gamemodes

I was wondering if this was possible.

Say you have 3 gamemodes, A B and C.

A, is derived from Base, like a normal gamemode. B is derived from A. Is it possible to have C derive from B and still get all the functionality of A? When I try it, I get messages like this in the console.



Registering gamemode 'A' derived from 'base'
Registering gamemode 'B' derived from 'base'
Registering gamemode 'C' derived from 'B'


and before you ask, yes, if I load B it will derive from A just fine.

No you can’t from my own experience of trying.

The only thing you can is to merge the files of A and B because when you are deriving you “copy” the functions and everything. Only… that when you are deriving from 2 things at the same time what should overwrite what? Its like the OO in C++ or any other OO language I know.

you can only have something

Registering gamemode ‘A’ derived from ‘base’
Registering gamemode ‘B’ derived from ‘A’
Registering gamemode ‘C’ derived from ‘B’

i think

Is your code like this:



DeriveGamemode( "A" )
DeriveGamemode( "B" )
DeriveGamemode( "C" )


?

If it is ( and B derives from A ), and the function isn’t just being difficult, you should be able to do this:



DeriveGamemode( "B" )
DeriveGamemode( "C" )


The wiki article doesn’t say if you are allowed to derive multiple gamemodes or not ( DeriveGamemode ), but I seem to recall there being a limit to how many you can derive before it gets unhappy. Of course, I’ve never needed to do more than one, so I don’t really know for certain.