31.01.2018, 12:10
Do you want to say how to transform a filterscript into a gamemode ? Or how to make one script from the filterscript and gamemode.
If you want to make a gamemode from a filterscript you must replace:
"OnFilterScriptInit" with "OnGameModeInit"
"OnFilterScriptExit" with "OnGameModeExit"
to delete #if defined FILTERSCRIPT or #FILTERSCRIPT etc, after that you must move the filterscript that will be now a gamemode into the gamemodes folder, also don't forget about main(){}, you must put this at the top of the gamemode or above "OnGameModeInit" public.
DON'T FORGET TO RECOMPILE THE SCRIPT, if you want the changes that you made to be saved. :]]
If you want to make a gamemode from a filterscript you must replace:
"OnFilterScriptInit" with "OnGameModeInit"
"OnFilterScriptExit" with "OnGameModeExit"
to delete #if defined FILTERSCRIPT or #FILTERSCRIPT etc, after that you must move the filterscript that will be now a gamemode into the gamemodes folder, also don't forget about main(){}, you must put this at the top of the gamemode or above "OnGameModeInit" public.
DON'T FORGET TO RECOMPILE THE SCRIPT, if you want the changes that you made to be saved. :]]