forked from Ports/perfect_dark
Merge branch 'port' into port-debugger
This commit is contained in:
commit
75331721f7
9 files changed
+65
No files matched your search
@@ -4339,6 +4339,18 @@ void chrDamage(struct chrdata *chr, f32 damage, struct coord *vector, struct gse
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef PLATFORM_N64
|
||||||
|
// Don't damage if multiplayer and friendly fire is off
|
||||||
|
if (g_Vars.mplayerisrunning
|
||||||
|
&& !(g_MpSetup.options & MPOPTION_FRIENDLYFIRE)
|
||||||
|
&& aprop
|
||||||
|
&& aprop != vprop
|
||||||
|
&& (aprop->type == PROPTYPE_PLAYER || aprop->type == PROPTYPE_CHR)
|
||||||
|
&& chr->team == aprop->chr->team) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
if (gset == NULL) {
|
if (gset == NULL) {
|
||||||
gset = &gset2;
|
gset = &gset2;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -538,6 +538,10 @@ void mpInit(void)
|
|||||||
| MPOPTION_PAC_HIGHLIGHTTARGET
|
| MPOPTION_PAC_HIGHLIGHTTARGET
|
||||||
| MPOPTION_PAC_SHOWONRADAR;
|
| MPOPTION_PAC_SHOWONRADAR;
|
||||||
|
|
||||||
|
#ifndef PLATFORM_N64
|
||||||
|
g_MpSetup.options |= MPOPTION_FRIENDLYFIRE;
|
||||||
|
#endif
|
||||||
|
|
||||||
g_Vars.mphilltime = 10;
|
g_Vars.mphilltime = 10;
|
||||||
|
|
||||||
func0f187fec();
|
func0f187fec();
|
||||||
|
|||||||
@@ -77,6 +77,14 @@ struct menuitem g_CtcOptionsMenuItems[] = {
|
|||||||
MPOPTION_NODRUGBLUR,
|
MPOPTION_NODRUGBLUR,
|
||||||
menuhandlerMpCheckboxOption,
|
menuhandlerMpCheckboxOption,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
MENUITEMTYPE_CHECKBOX,
|
||||||
|
0,
|
||||||
|
MENUITEMFLAG_LOCKABLEMINOR,
|
||||||
|
L_OPTIONS_257, // "Friendly Fire"
|
||||||
|
MPOPTION_FRIENDLYFIRE,
|
||||||
|
menuhandlerMpDisplayTeam,
|
||||||
|
},
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
MENUITEMTYPE_CHECKBOX,
|
MENUITEMTYPE_CHECKBOX,
|
||||||
|
|||||||
@@ -72,6 +72,14 @@ struct menuitem g_MpCombatOptionsMenuItems[] = {
|
|||||||
MPOPTION_NODRUGBLUR,
|
MPOPTION_NODRUGBLUR,
|
||||||
menuhandlerMpCheckboxOption,
|
menuhandlerMpCheckboxOption,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
MENUITEMTYPE_CHECKBOX,
|
||||||
|
0,
|
||||||
|
MENUITEMFLAG_LOCKABLEMINOR,
|
||||||
|
L_OPTIONS_257, // "Friendly Fire"
|
||||||
|
MPOPTION_FRIENDLYFIRE,
|
||||||
|
menuhandlerMpDisplayTeam,
|
||||||
|
},
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
MENUITEMTYPE_SEPARATOR,
|
MENUITEMTYPE_SEPARATOR,
|
||||||
|
|||||||
@@ -75,6 +75,14 @@ struct menuitem g_HtmOptionsMenuItems[] = {
|
|||||||
MPOPTION_NODRUGBLUR,
|
MPOPTION_NODRUGBLUR,
|
||||||
menuhandlerMpCheckboxOption,
|
menuhandlerMpCheckboxOption,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
MENUITEMTYPE_CHECKBOX,
|
||||||
|
0,
|
||||||
|
MENUITEMFLAG_LOCKABLEMINOR,
|
||||||
|
L_OPTIONS_257, // "Friendly Fire"
|
||||||
|
MPOPTION_FRIENDLYFIRE,
|
||||||
|
menuhandlerMpDisplayTeam,
|
||||||
|
},
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
MENUITEMTYPE_CHECKBOX,
|
MENUITEMTYPE_CHECKBOX,
|
||||||
|
|||||||
@@ -75,6 +75,14 @@ struct menuitem g_HtbOptionsMenuItems[] = {
|
|||||||
MPOPTION_NODRUGBLUR,
|
MPOPTION_NODRUGBLUR,
|
||||||
menuhandlerMpCheckboxOption,
|
menuhandlerMpCheckboxOption,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
MENUITEMTYPE_CHECKBOX,
|
||||||
|
0,
|
||||||
|
MENUITEMFLAG_LOCKABLEMINOR,
|
||||||
|
L_OPTIONS_257, // "Friendly Fire"
|
||||||
|
MPOPTION_FRIENDLYFIRE,
|
||||||
|
menuhandlerMpDisplayTeam,
|
||||||
|
},
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
MENUITEMTYPE_CHECKBOX,
|
MENUITEMTYPE_CHECKBOX,
|
||||||
|
|||||||
@@ -96,6 +96,14 @@ struct menuitem g_KohOptionsMenuItems[] = {
|
|||||||
MPOPTION_NODRUGBLUR,
|
MPOPTION_NODRUGBLUR,
|
||||||
menuhandlerMpCheckboxOption,
|
menuhandlerMpCheckboxOption,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
MENUITEMTYPE_CHECKBOX,
|
||||||
|
0,
|
||||||
|
MENUITEMFLAG_LOCKABLEMINOR,
|
||||||
|
L_OPTIONS_257, // "Friendly Fire"
|
||||||
|
MPOPTION_FRIENDLYFIRE,
|
||||||
|
menuhandlerMpDisplayTeam,
|
||||||
|
},
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
MENUITEMTYPE_CHECKBOX,
|
MENUITEMTYPE_CHECKBOX,
|
||||||
|
|||||||
@@ -73,6 +73,14 @@ struct menuitem g_PacOptionsMenuItems[] = {
|
|||||||
MPOPTION_NODRUGBLUR,
|
MPOPTION_NODRUGBLUR,
|
||||||
menuhandlerMpCheckboxOption,
|
menuhandlerMpCheckboxOption,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
MENUITEMTYPE_CHECKBOX,
|
||||||
|
0,
|
||||||
|
MENUITEMFLAG_LOCKABLEMINOR,
|
||||||
|
L_OPTIONS_257, // "Friendly Fire"
|
||||||
|
MPOPTION_FRIENDLYFIRE,
|
||||||
|
menuhandlerMpDisplayTeam,
|
||||||
|
},
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
MENUITEMTYPE_CHECKBOX,
|
MENUITEMTYPE_CHECKBOX,
|
||||||
|
|||||||
@@ -2894,6 +2894,7 @@
|
|||||||
#define MPOPTION_NODRUGBLUR 0x00400000
|
#define MPOPTION_NODRUGBLUR 0x00400000
|
||||||
#define MPOPTION_AUTORANDOMWEAPON_START 0x00800000
|
#define MPOPTION_AUTORANDOMWEAPON_START 0x00800000
|
||||||
#define MPOPTION_AUTORANDOMWEAPON_END 0x01000000
|
#define MPOPTION_AUTORANDOMWEAPON_END 0x01000000
|
||||||
|
#define MPOPTION_FRIENDLYFIRE 0x02000000
|
||||||
|
|
||||||
#define MPPAUSEMODE_UNPAUSED 0
|
#define MPPAUSEMODE_UNPAUSED 0
|
||||||
#define MPPAUSEMODE_PAUSED 1
|
#define MPPAUSEMODE_PAUSED 1
|
||||||
|
|||||||
Reference in new issue
Block a user