]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Merge branch 'master' into 'Mario/status_effects'
authorterencehill <piuntn@gmail.com>
Tue, 15 Jun 2021 13:24:58 +0000 (13:24 +0000)
committerterencehill <piuntn@gmail.com>
Tue, 15 Jun 2021 13:24:58 +0000 (13:24 +0000)
# Conflicts:
#   qcsrc/common/stats.qh

1  2 
qcsrc/client/hud/hud.qh
qcsrc/client/view.qc
qcsrc/common/mutators/mutator/buffs/sv_buffs.qc
qcsrc/common/physics/player.qh
qcsrc/common/stats.qh
qcsrc/server/client.qc
qcsrc/server/damage.qc
qcsrc/server/items/items.qc
qcsrc/server/player.qc

Simple merge
Simple merge
index bf680f9a43cb870b8df178fdfb23cdfdfa501d27,3433aad9db634f0e4513d860e519ac807b7c480b..a176e512f31e744b9a8f5390e30d03c518294248
@@@ -563,9 -532,10 +563,10 @@@ MUTATOR_HOOKFUNCTION(buffs, Damage_Calc
  
  MUTATOR_HOOKFUNCTION(buffs, PlayerDamage_SplitHealthArmor)
  {
+       // NOTE: vampire PlayerDamage_SplitHealthArmor code is similar
        entity frag_attacker = M_ARGV(1, entity);
        entity frag_target = M_ARGV(2, entity);
 -      if(!(STAT(BUFFS, frag_attacker) & BUFF_VAMPIRE.m_itemid))
 +      if(!StatusEffects_active(BUFF_VAMPIRE, frag_attacker))
                return;
        float health_take = bound(0, M_ARGV(4, float), GetResource(frag_target, RES_HEALTH));
  
Simple merge
index e476969fa58fa8ac6389a876c816ef16c4ff713a,1d96dacded38bd8607d8b4b19ff000321e3d8158..12879a7531b1acd3f6bff24b18654d54bd1569cb
@@@ -84,10 -87,10 +87,8 @@@ int autocvar_leadlimit
  REGISTER_STAT(WEAPONRATEFACTOR, float, W_WeaponRateFactor(this))
  REGISTER_STAT(GAME_STOPPED, int, game_stopped)
  REGISTER_STAT(GAMESTARTTIME, float, game_starttime)
 -REGISTER_STAT(STRENGTH_FINISHED, float)
 -REGISTER_STAT(INVINCIBLE_FINISHED, float)
  /** arc heat in [0,1] */
  REGISTER_STAT(PRESSED_KEYS, int)
- /** this stat could later contain some other bits of info, like, more server-side particle config */
- REGISTER_STAT(ALLOW_OLDVORTEXBEAM, bool, autocvar_g_allow_oldvortexbeam)
  REGISTER_STAT(FUEL, int)
  REGISTER_STAT(NB_METERSTART, float)
  /** compressShotOrigin */
@@@ -125,7 -130,7 +126,6 @@@ REGISTER_STAT(PLASMA, int
  REGISTER_STAT(FROZEN, int)
  REGISTER_STAT(REVIVE_PROGRESS, float)
  REGISTER_STAT(ROUNDLOST, int)
- REGISTER_STAT(CTF_FLAGSTATUS, int)
 -REGISTER_STAT(BUFF_TIME, float)
  REGISTER_STAT(CAPTURE_PROGRESS, float)
  REGISTER_STAT(ENTRAP_ORB, float)
  REGISTER_STAT(ENTRAP_ORB_ALPHA, float)
Simple merge
Simple merge
Simple merge
index 291c9588c5ffd8074b07e440a1c0618439160248,dd0007e36b2cb6663161cc8b12e638b808002e27..916aa8a286355bcb187e38bbf8ad4acafda103b7
@@@ -558,10 -558,11 +558,8 @@@ void PlayerDamage(entity this, entity i
                // don't play teleportation sounds
                this.teleportable = TELEPORT_SIMPLE;
  
 -              STAT(STRENGTH_FINISHED, this) = 0;
 -              STAT(INVINCIBLE_FINISHED, this) = 0;
 -              STAT(SUPERWEAPONS_FINISHED, this) = 0;
                STAT(AIR_FINISHED, this) = 0;
  
-               STAT(MOVEVARS_SPECIALCOMMAND, this) = false; // sweet release
                this.death_time = time;
                if (random() < 0.5)
                        animdecide_setstate(this, this.anim_state | ANIMSTATE_DEAD1, true);