Modernize naming of gamefuncs.

Patch from Fox.

git-svn-id: https://svn.eduke32.com/eduke32@6633 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2018-01-30 16:02:33 +00:00
parent 27d93ac698
commit 0542d32989
4 changed files with 55 additions and 20 deletions

View file

@ -46,7 +46,7 @@ char gamefunctions[NUMGAMEFUNCTIONS][MAXGAMEFUNCLEN] =
"Fire",
"Open",
"Run",
"AutoRun",
"Run_Mode",
"Jump",
"Crouch",
"Look_Up",
@ -57,6 +57,18 @@ char gamefunctions[NUMGAMEFUNCTIONS][MAXGAMEFUNCLEN] =
"Strafe_Right",
"Aim_Up",
"Aim_Down",
#ifndef EDUKE32_STANDALONE
"Mighty Foot",
"Pistol",
"Shotgun",
"Ripper",
"RPG",
"Pipebomb",
"Shrinker", // if v1.4 redefine to "Shrinker/Expander" in CONFIG_SetDefaults
"Devastator",
"Laser_Tripbomb",
"Freezer",
#else
"Weapon_1",
"Weapon_2",
"Weapon_3",
@ -67,46 +79,47 @@ char gamefunctions[NUMGAMEFUNCTIONS][MAXGAMEFUNCLEN] =
"Weapon_8",
"Weapon_9",
"Weapon_10",
"Inventory",
#endif
"Use_Inventory",
"Inventory_Left",
"Inventory_Right",
#ifndef EDUKE32_STANDALONE
"Holo_Duke",
"Holoduke",
"Jetpack",
"NightVision",
"MedKit",
"Night_Vision_Goggles",
"Portable_Medkit",
#else
"",
"",
"",
"",
"Inventory_3",
"Inventory_4",
"Inventory_5",
"Inventory_1",
#endif
"TurnAround",
"SendMessage",
"Turn_Around",
"Send_Message",
"Map",
"Shrink_Screen",
"Enlarge_Screen",
"Center_View",
"Holster_Weapon",
"Show_Opponents_Weapon",
"Show_Weapon_Indicator",
"Map_Follow_Mode",
"See_Coop_View",
"Show_Peer_View",
"Mouse_Aiming",
"Toggle_Crosshair",
#ifndef EDUKE32_STANDALONE
"Steroids",
"Quick_Kick",
#else
"",
"",
"Inventory_2",
"Melee_Attack",
#endif
"Next_Weapon",
"Previous_Weapon",
"Show_Console",
#ifndef EDUKE32_STANDALONE
"Show_DukeMatch_Scores",
"Show_Dukematch_Scores",
#else
"Show_Multiplayer_Scores",
"Show_Deathmatch_Scores",
#endif
"Dpad_Select",
"Dpad_Aiming",

View file

@ -188,8 +188,8 @@ void G_SetupCheats(void)
Bstrcpy(CheatStrings[24], "adebug");
Bstrcpy(CheatStrings[26], "acgs");
Bstrcpy(g_gametypeNames[0], "GruntMatch (Spawn)");
Bstrcpy(g_gametypeNames[2], "GruntMatch (No Spawn)");
Bstrcpy(g_gametypeNames[0], "Gruntmatch (Spawn)");
Bstrcpy(g_gametypeNames[2], "Gruntmatch (No Spawn)");
}
}
#endif

View file

@ -281,6 +281,28 @@ void CONFIG_SetDefaults(void)
// JBF 20031211
CONFIG_SetDefaultKeys(keydefaults);
if (PLUTOPAK)
strcpy(gamefunctions[gamefunc_Weapon_7], "Shrinker/Expander");
// Caribbean
#if 0
{
strcpy(gamefunctions[gamefunc_Weapon_1], "Sandal_Foot");
strcpy(gamefunctions[gamefunc_Weapon_2], "Squirt_Gun");
strcpy(gamefunctions[gamefunc_Weapon_3], "Super_Soak'em");
strcpy(gamefunctions[gamefunc_Weapon_4], "Triple_Poison_Shooter");
strcpy(gamefunctions[gamefunc_Weapon_5], "Coconut_Launcher");
strcpy(gamefunctions[gamefunc_Weapon_6], "Pineapple");
strcpy(gamefunctions[gamefunc_Weapon_7], "Voodoo_Ring");
strcpy(gamefunctions[gamefunc_Weapon_8], "Conchanator");
strcpy(gamefunctions[gamefunc_Weapon_9], "Voodoo_Tripbomb");
strcpy(gamefunctions[gamefunc_Weapon_10], "Ice_Crusher");
strcpy(gamefunctions[gamefunc_NightVision], "Sunglasses");
strcpy(gamefunctions[gamefunc_MedKit], "Crate_of_Bananas");
strcpy(gamefunctions[gamefunc_Steroids], "Hot_Sauce");
}
#endif
// TODO: NAM, WWII GI
memset(ud.config.MouseFunctions, -1, sizeof(ud.config.MouseFunctions));
for (i=0; i<MAXMOUSEBUTTONS; i++)

View file

@ -36,7 +36,7 @@ extern "C" {
char g_volumeNames[MAXVOLUMES][33] = { "L.A. Meltdown", "Lunar Apocalypse", "Shrapnel City" };
char g_skillNames[MAXSKILLS][33] = { "Piece Of Cake", "Let's Rock", "Come Get Some", "Damn I'm Good" };
char g_gametypeNames[MAXGAMETYPES][33]
= { "DukeMatch (Spawn)", "Cooperative Play", "DukeMatch (No Spawn)", "Team DM (Spawn)", "Team DM (No Spawn)" };
= { "Dukematch (Spawn)", "Cooperative Play", "Dukematch (No Spawn)", "Team DM (Spawn)", "Team DM (No Spawn)" };
#else
char g_volumeNames[MAXVOLUMES][33];
char g_skillNames[MAXSKILLS][33];