]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Merge branch 'master' into Mario/vaporizer_damage
authorMario <zacjardine@y7mail.com>
Tue, 14 Apr 2015 23:00:17 +0000 (09:00 +1000)
committerMario <zacjardine@y7mail.com>
Tue, 14 Apr 2015 23:00:17 +0000 (09:00 +1000)
Conflicts:
qcsrc/common/weapons/w_vaporizer.qc

1  2 
bal-wep-xonotic.cfg
bal-wep-xpm.cfg
qcsrc/common/weapons/w_vaporizer.qc
qcsrc/server/cl_player.qc
qcsrc/server/mutators/mutator_instagib.qc

Simple merge
diff --cc bal-wep-xpm.cfg
Simple merge
index f55342f923e1151a548960a8a33648774eb5c8a7,b67056f7e2257926c58cfdcc29bf7e1510da82b1..649f0e314c894e7b2d76ac775e1fcea4f8b4b435
@@@ -54,11 -53,10 +54,11 @@@ void spawnfunc_weapon_minstanex(void) 
  
  void W_Vaporizer_Attack(void)
  {
 -      float flying;
 +      float flying, vaporizer_damage;
        flying = IsFlying(self); // do this BEFORE to make the trace values from FireRailgunBullet last
 +      vaporizer_damage = ((WEP_CVAR_PRI(vaporizer, damage) > 0) ? WEP_CVAR_PRI(vaporizer, damage) : 10000);
  
-       W_SetupShot(self, TRUE, 0, "", CH_WEAPON_A, vaporizer_damage);
 -      W_SetupShot(self, true, 0, "", CH_WEAPON_A, 10000);
++      W_SetupShot(self, true, 0, "", CH_WEAPON_A, vaporizer_damage);
        // handle sound separately so we can change the volume
        // added bonus: no longer plays the strength sound (strength gives no bonus to instakill anyway)
        sound (self, CH_WEAPON_A, "weapons/minstanexfire.wav", VOL_BASE * 0.8, ATTEN_NORM);
Simple merge
index b15a210486abdde26793aea7239eb0dec808f2f1,b3502b0f783573c6467ec9752dc13d4d13326f0b..643d3ac881baaba7bd147a83d3bb52a1b432d776
@@@ -361,17 -365,9 +365,17 @@@ MUTATOR_HOOKFUNCTION(instagib_ItemCount
                case IT_NAILS:      item_name = "item-extralife"; item_color = '1 0 0'; break;
                case IT_INVINCIBLE: item_name = "item-speed"; item_color = '1 0 1'; break;
        }
-       return FALSE;
+       return false;
  }
  
 +MUTATOR_HOOKFUNCTION(instagib_PlayerDies)
 +{     
 +      if(DEATH_ISWEAPON(frag_deathtype, WEP_VAPORIZER))
 +              frag_damage = 1000; // always gib if it was a vaporizer death
 +
 +      return FALSE;
 +}
 +
  MUTATOR_HOOKFUNCTION(instagib_ItemTouch)
  {
        if(self.ammo_cells)