diff --git a/polymer/eduke32/source/config.c b/polymer/eduke32/source/config.c index 3d1fc90e6..e4ab4956a 100644 --- a/polymer/eduke32/source/config.c +++ b/polymer/eduke32/source/config.c @@ -205,7 +205,7 @@ void CONFIG_SetDefaults( void ) MixRate = 22050; SoundToggle = 1; MusicToggle = 1; - VoiceToggle = 1; + VoiceToggle = 2; AmbienceToggle = 1; FXVolume = 220; MusicVolume = 200; @@ -229,6 +229,7 @@ void CONFIG_SetDefaults( void ) ud.m_ffire = 1; ud.levelstats = 0; ud.drawweapon = 1; + ud.brightskins = 0; ShowOpponentWeapons = 0; Bstrcpy(ud.rtsname, "DUKE.RTS"); Bstrcpy(myname, "Duke"); @@ -583,6 +584,7 @@ void CONFIG_ReadSetup( void ) SCRIPT_GetNumber( scripthandle, "Misc", "ShowLevelStats",&ud.levelstats); SCRIPT_GetNumber( scripthandle, "Misc", "ShowOpponentWeapons",&ShowOpponentWeapons); SCRIPT_GetNumber( scripthandle, "Misc", "ShowViewWeapon",&ud.drawweapon); + SCRIPT_GetNumber( scripthandle, "Misc", "BrightSkins",&ud.brightskins); SCRIPT_GetNumber( scripthandle, "Misc", "ShowFPS",&ud.tickrate); dummy = useprecache; SCRIPT_GetNumber( scripthandle, "Misc", "UsePrecache",&dummy); useprecache = dummy != 0; if(ud.wchoice[0][0] == 0 && ud.wchoice[0][1] == 0) @@ -710,6 +712,7 @@ void CONFIG_WriteSetup( void ) SCRIPT_PutNumber( scripthandle, "Misc", "ShowOpponentWeapons",ShowOpponentWeapons,false,false); SCRIPT_PutNumber( scripthandle, "Misc", "UsePrecache",useprecache,false,false); SCRIPT_PutNumber( scripthandle, "Misc", "ShowViewWeapon",ud.drawweapon,false,false); + SCRIPT_PutNumber( scripthandle, "Misc", "BrightSkins",ud.brightskins,false,false); SCRIPT_PutNumber( scripthandle, "Misc", "ShowFPS",ud.tickrate,false,false); SCRIPT_PutNumber( scripthandle, "Controls", "MouseAimingFlipped",ud.mouseflip,false,false); SCRIPT_PutNumber( scripthandle, "Controls","MouseAiming",ud.mouseaiming,false,false); diff --git a/polymer/eduke32/source/duke3d.h b/polymer/eduke32/source/duke3d.h index 8e77f3499..a6505beba 100644 --- a/polymer/eduke32/source/duke3d.h +++ b/polymer/eduke32/source/duke3d.h @@ -336,6 +336,7 @@ struct user_defs { long reccnt; int32 runkey_mode,statusbarscale,mouseaiming,weaponswitch,drawweapon; // JBF 20031125 + int32 brightskins; int32 entered_name,screen_tilting,shadows,fta_on,executions,auto_run; int32 coords,tickrate,levelstats,m_coop,coop,screen_size,lockout,crosshair; diff --git a/polymer/eduke32/source/game.c b/polymer/eduke32/source/game.c index 7621df55f..3ada7f9fc 100644 --- a/polymer/eduke32/source/game.c +++ b/polymer/eduke32/source/game.c @@ -5852,6 +5852,9 @@ PALONLY: if( t->z > hittype[i].floorz && t->xrepeat < 32 ) t->z = hittype[i].floorz; + if(ud.brightskins) + t->shade -= 15; + break; case JIBS1__STATIC: diff --git a/polymer/eduke32/source/gamedef.c b/polymer/eduke32/source/gamedef.c index fdc6dc1b0..d51831061 100644 --- a/polymer/eduke32/source/gamedef.c +++ b/polymer/eduke32/source/gamedef.c @@ -797,6 +797,7 @@ LABELS userdefslabels[]= { { "drawweapon", USERDEFS_DRAWWEAPON, 0, 0 }, { "mouseaiming", USERDEFS_MOUSEAIMING, 0, 0 }, { "weaponswitch", USERDEFS_WEAPONSWITCH, 0, 0 }, + { "brightskins", USERDEFS_BRIGHTSKINS, 0, 0 }, { "", -1, 0, 0 } // END OF LIST }; diff --git a/polymer/eduke32/source/gamedef.h b/polymer/eduke32/source/gamedef.h index 7a4935ea6..3140713a3 100644 --- a/polymer/eduke32/source/gamedef.h +++ b/polymer/eduke32/source/gamedef.h @@ -282,7 +282,8 @@ enum userdefslabels { USERDEFS_STATUSBARSCALE, USERDEFS_DRAWWEAPON, USERDEFS_MOUSEAIMING, - USERDEFS_WEAPONSWITCH + USERDEFS_WEAPONSWITCH, + USERDEFS_BRIGHTSKINS }; enum sectorlabels { diff --git a/polymer/eduke32/source/gameexec.c b/polymer/eduke32/source/gameexec.c index 8768e9c54..dfa5432e2 100644 --- a/polymer/eduke32/source/gameexec.c +++ b/polymer/eduke32/source/gameexec.c @@ -588,6 +588,13 @@ void DoUserDef(char bSet, long lVar1, long lLabelID, long lVar2, short sActor, s SetGameVarID((int)lVar2, ud.weaponswitch, sActor, sPlayer); break; + case USERDEFS_BRIGHTSKINS: + if(bSet) + ud.brightskins = lValue; + else + SetGameVarID((int)lVar2, ud.brightskins, sActor, sPlayer); + break; + default: break; } diff --git a/polymer/eduke32/source/menus.c b/polymer/eduke32/source/menus.c index a724a7901..de57a7395 100644 --- a/polymer/eduke32/source/menus.c +++ b/polymer/eduke32/source/menus.c @@ -2147,7 +2147,7 @@ cheat_for_port_credits: "HUD weapon", "FPS counter", "-", - "-", + "Bright players", "-", "-", "-", @@ -2201,7 +2201,10 @@ cheat_for_port_credits: case 1: if (x==io) ud.tickrate = 1-ud.tickrate; modval(0,1,(int *)&ud.tickrate,1,probey==1); gametextpal(d,yy, ud.tickrate ? "On" : "Off", 0, 0); break; - case 2: if (x==io) cmenu(200); break; + case 2: if (x==io) ud.brightskins = 1-ud.brightskins; + modval(0,1,(int *)&ud.brightskins,1,probey==1); + gametextpal(d,yy, ud.brightskins ? "On" : "Off", 0, 0); break; + case 3: if (x==io) cmenu(200); break; default: break; } gametextpal(c,yy, opts[ii], enabled?5:15, 2);