
It's about the cellphone version of Quake3/Monkeys of Doom. I think it would be good to give the player the option to choose between easy controls (freelook "off", moving and aiming is bind to the accellerometer, mostly intuitive) and advanced controls, bringing the d-pad into game (for moving and strafing).
Maybe it could be bound to a radio button in the settings menu ("Advanced Controls On/Off"). My guess is, that it works like the "ResetDefaults_Action" in ui_setup:
Code: Select all
#define ID_DEFAULTS 17
Code: Select all
/*
=================
Setup_ResetDefaults_Action
=================
*/
static void Setup_ResetDefaults_Action( qboolean result ) {
if( !result ) {
return;
}
trap_Cmd_ExecuteText( EXEC_APPEND, "exec default.cfg\n");
trap_Cmd_ExecuteText( EXEC_APPEND, "cvar_restart\n");
trap_Cmd_ExecuteText( EXEC_APPEND, "vid_restart\n" );
}
Code: Select all
#define ID_ADVANCED 17
#define ID_EASY 18
Code: Select all
/*
=================
Controls_AdvancedConfig_Action
=================
*/
static void Setup_AdvancedConfig_Action( qboolean result ) {
if( !result ) {
return;
}
trap_Cmd_ExecuteText( EXEC_APPEND, "exec advanced.cfg\n");
trap_Cmd_ExecuteText( EXEC_APPEND, "cvar_restart\n");
trap_Cmd_ExecuteText( EXEC_APPEND, "vid_restart\n" );
}
Code: Select all
/*
=================
Controls_EasyConfig_Action
=================
*/
static void Setup_EasyConfig_Action( qboolean result ) {
if( !result ) {
return;
}
trap_Cmd_ExecuteText( EXEC_APPEND, "exec easy.cfg\n");
trap_Cmd_ExecuteText( EXEC_APPEND, "cvar_restart\n");
trap_Cmd_ExecuteText( EXEC_APPEND, "vid_restart\n" );
}
Before I start messing up the code it would be good to know if this is generally the right way!
