mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-12-03 17:32:40 +00:00
- add sv_instantreaction dmflag
This commit is contained in:
parent
423baf9a25
commit
f67e60166c
4 changed files with 5 additions and 1 deletions
|
@ -461,6 +461,7 @@ CVAR (Flag, sv_cooplosearmor, dmflags, DF_COOP_LOSE_ARMOR);
|
|||
CVAR (Flag, sv_cooplosepowerups, dmflags, DF_COOP_LOSE_POWERUPS);
|
||||
CVAR (Flag, sv_cooploseammo, dmflags, DF_COOP_LOSE_AMMO);
|
||||
CVAR (Flag, sv_coophalveammo, dmflags, DF_COOP_HALVE_AMMO);
|
||||
CVAR (Flag, sv_instantreaction, dmflags, DF_INSTANT_REACTION);
|
||||
|
||||
// Some (hopefully cleaner) interface to these settings.
|
||||
CVAR (Mask, sv_crouch, dmflags, DF_NO_CROUCH|DF_YES_CROUCH);
|
||||
|
|
|
@ -425,6 +425,7 @@ enum
|
|||
DF_COOP_LOSE_POWERUPS = 1 << 28, // Lose powerups when respawning in coop
|
||||
DF_COOP_LOSE_AMMO = 1 << 29, // Lose ammo when respawning in coop
|
||||
DF_COOP_HALVE_AMMO = 1 << 30, // Lose half your ammo when respawning in coop (but not less than the normal starting amount)
|
||||
DF_INSTANT_REACTION = 1 << 31, // Monsters react instantly
|
||||
};
|
||||
|
||||
// [BC] More dmflags. w00p!
|
||||
|
|
|
@ -4503,7 +4503,8 @@ AActor *AActor::StaticSpawn (PClassActor *type, const DVector3 &pos, replace_t a
|
|||
|
||||
FRandom &rng = bglobal.m_Thinking ? pr_botspawnmobj : pr_spawnmobj;
|
||||
|
||||
if (!!G_SkillProperty(SKILLP_InstantReaction) && actor->flags3 & MF3_ISMONSTER)
|
||||
if (!!(G_SkillProperty(SKILLP_InstantReaction) || !!(dmflags & DF_INSTANT_REACTION))
|
||||
&& actor->flags3 & MF3_ISMONSTER)
|
||||
actor->reactiontime = 0;
|
||||
|
||||
if (actor->flags3 & MF3_ISMONSTER)
|
||||
|
|
|
@ -1577,6 +1577,7 @@ OptionMenu GameplayOptions protected
|
|||
Option "$GMPLYMNU_ITEMSRESPAWN", "sv_itemrespawn", "YesNo"
|
||||
Option "$GMPLYMNU_SUPERRESPAWN", "sv_respawnsuper", "YesNo"
|
||||
Option "$GMPLYMNU_FASTMONSTERS", "sv_fastmonsters", "YesNo"
|
||||
Option "$GMPLYMNU_INSTANTREACTION", "sv_instantreaction", "YesNo"
|
||||
Option "$GMPLYMNU_DEGENERATION", "sv_degeneration", "YesNo"
|
||||
Option "$GMPLYMNU_NOAUTOAIM", "sv_noautoaim", "NoYes"
|
||||
Option "$GMPLYMNU_ALLOWSUICIDE", "sv_disallowsuicide", "NoYes"
|
||||
|
|
Loading…
Reference in a new issue