]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Remove rifle arena
authorMario <mario.mario@y7mail.com>
Thu, 8 Aug 2013 19:45:43 +0000 (05:45 +1000)
committerMario <mario.mario@y7mail.com>
Thu, 8 Aug 2013 19:45:43 +0000 (05:45 +1000)
mutators.cfg
qcsrc/server/miscfunctions.qc
qcsrc/server/mutators/mutator_riflearena.qc [deleted file]
qcsrc/server/mutators/mutators.qh
qcsrc/server/progs.src

index 44739e06d7564e9e3edd1ba383c184c62e1df4b5..e88fbc0afcc039cb3107c73ae778fdfce08239f2 100644 (file)
@@ -149,17 +149,6 @@ set g_nades_nade_force 650
 set g_nades_nade_newton_style 0
 
 
-// =============
-//  rifle arena
-// =============
-set g_riflearena 0
-set g_riflearena_rifle_secondary_spread 0
-set g_riflearena_rifle_secondary_shots 1
-set g_riflearena_rifle_secondary_animtime 0.15
-set g_riflearena_rifle_secondary_refire 0.15
-set g_riflearena_rifle_secondary_damage 40
-
-
 // ============
 //  camp check
 // ============
index 018e4a3cb7d165b7a89200d07c31881d6c9c9269..ef05b5a5b6ccc4fa647c7b13d724e96592dacab6 100644 (file)
@@ -923,7 +923,6 @@ void readlevelcvars(void)
        CHECK_MUTATOR_ADD("g_melee_only", mutator_melee_only, !cvar("g_minstagib"));
        CHECK_MUTATOR_ADD("g_nades", mutator_nades, 1);
        CHECK_MUTATOR_ADD("g_sandbox", sandbox, 1);
-       CHECK_MUTATOR_ADD("g_riflearena", mutator_riflearena, !cvar("g_minstagib"));
        CHECK_MUTATOR_ADD("g_campcheck", mutator_campcheck, 1);
        
        #undef CHECK_MUTATOR_ADD
diff --git a/qcsrc/server/mutators/mutator_riflearena.qc b/qcsrc/server/mutators/mutator_riflearena.qc
deleted file mode 100644 (file)
index 6419433..0000000
+++ /dev/null
@@ -1,110 +0,0 @@
-void ra_SetCvars()
-{
-       cvar_settemp("g_balance_rifle_secondary_spread", ftos(cvar("g_riflearena_rifle_secondary_spread")));
-       cvar_settemp("g_balance_rifle_secondary_shots", ftos(cvar("g_riflearena_rifle_secondary_shots")));
-       cvar_settemp("g_balance_rifle_secondary_animtime", ftos(cvar("g_riflearena_rifle_secondary_animtime")));
-       cvar_settemp("g_balance_rifle_secondary_refire", ftos(cvar("g_riflearena_rifle_secondary_refire")));
-       cvar_settemp("g_balance_rifle_secondary_damage", ftos(cvar("g_riflearena_rifle_secondary_damage")));
-}
-
-MUTATOR_HOOKFUNCTION(ra_PlayerDamage)
-{
-       if(IS_PLAYER(frag_attacker))
-       if(IS_PLAYER(frag_target))
-       {
-               if (DEATH_ISWEAPON(frag_deathtype, WEP_LASER))
-               {
-                       if(frag_attacker == frag_target)
-                               frag_damage = 5;
-                       else
-                               frag_damage = 0;
-                       if (frag_target != frag_attacker)
-                       {
-                               if (frag_target.health >= 1 && IS_PLAYER(frag_target))
-                                       centerprint(frag_attacker, "Laser inflicts no damage!");
-                               frag_force = '0 0 0';
-                       }
-               }
-       }
-               
-       return FALSE;
-}
-
-MUTATOR_HOOKFUNCTION(ra_PlayerSpawn)
-{
-       WEPSET_CLEAR_E(self);
-       WEPSET_OR_EW(self, WEP_RIFLE);
-       WEPSET_OR_EW(self, WEP_LASER);
-       
-       return FALSE;
-}
-
-MUTATOR_HOOKFUNCTION(ra_FilterItem)
-{
-       switch (self.items)
-       {
-               case IT_5HP:
-               case IT_ARMOR_SHARD:
-                       return FALSE;
-       }
-               
-       return TRUE;
-}
-
-MUTATOR_HOOKFUNCTION(ra_StartItems)
-{
-       start_items |= IT_UNLIMITED_AMMO;
-       start_ammo_nails = 100;
-
-       return FALSE;
-}
-
-MUTATOR_HOOKFUNCTION(ra_ForbidThrowCurrentWeapon)
-{
-       nades_CheckThrow();
-       return TRUE;
-}
-
-MUTATOR_HOOKFUNCTION(ra_BuildMutatorsString)
-{
-       ret_string = strcat(ret_string, ":RA");
-       return FALSE;
-}
-
-MUTATOR_HOOKFUNCTION(ra_BuildMutatorsPrettyString)
-{
-       ret_string = strcat(ret_string, ", Rifle Arena");
-       return FALSE;
-}
-
-MUTATOR_HOOKFUNCTION(ra_SetModname)
-{
-       modname = "Rifle Arena";
-       return TRUE;
-}
-
-MUTATOR_DEFINITION(mutator_riflearena)
-{
-       MUTATOR_HOOK(PlayerDamage_Calculate, ra_PlayerDamage, CBC_ORDER_ANY);
-       MUTATOR_HOOK(PlayerSpawn, ra_PlayerSpawn, CBC_ORDER_ANY);
-       MUTATOR_HOOK(FilterItem, ra_FilterItem, CBC_ORDER_ANY);
-       MUTATOR_HOOK(SetStartItems, ra_StartItems, CBC_ORDER_ANY);
-       MUTATOR_HOOK(ForbidThrowCurrentWeapon, ra_ForbidThrowCurrentWeapon, CBC_ORDER_ANY);
-       MUTATOR_HOOK(BuildMutatorsString, ra_BuildMutatorsString, CBC_ORDER_ANY);
-       MUTATOR_HOOK(BuildMutatorsPrettyString, ra_BuildMutatorsPrettyString, CBC_ORDER_ANY);
-       
-       MUTATOR_ONADD
-       {
-               ra_SetCvars();
-               
-               weapon_action(WEP_LASER, WR_PRECACHE);
-               weapon_action(WEP_RIFLE, WR_PRECACHE);
-       }
-       MUTATOR_ONREMOVE
-       {
-               print("This cannot be removed at runtime\n");
-               return -1;
-       }
-
-       return FALSE;
-}
index 6af356658e1b687b64c7c7b2d95756e156212293..e7a95de7ec5ba08df4a7140742035b6b4b7d1d6c 100644 (file)
@@ -28,7 +28,6 @@ MUTATOR_DECLARATION(mutator_random_gravity);
 MUTATOR_DECLARATION(mutator_multijump);
 MUTATOR_DECLARATION(mutator_melee_only);
 MUTATOR_DECLARATION(mutator_nades);
-MUTATOR_DECLARATION(mutator_riflearena);
 MUTATOR_DECLARATION(mutator_campcheck);
 
 MUTATOR_DECLARATION(sandbox);
index 839d1dd682919aa02428ae95da4faeda37bcfec7..e9e9a4b8c89e3fdfce2209e264df815a634b16d2 100644 (file)
@@ -257,7 +257,6 @@ mutators/mutator_random_gravity.qc
 mutators/mutator_multijump.qc
 mutators/mutator_melee_only.qc
 mutators/mutator_nades.qc
-mutators/mutator_riflearena.qc
 mutators/mutator_campcheck.qc
 
 ../warpzonelib/anglestransform.qc