From: Lyberta Date: Sat, 27 May 2017 06:22:04 +0000 (+0300) Subject: Survival: Ported item pickups to player templates. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=3fcd9909751db9b1bd6d1964f1d2dac9f8b7208d;p=xonotic%2Fxonotic-data.pk3dir.git Survival: Ported item pickups to player templates. --- diff --git a/qcsrc/server/mutators/mutator/gamemode_survival.qc b/qcsrc/server/mutators/mutator/gamemode_survival.qc index 0efbe9de5..91213c8e2 100644 --- a/qcsrc/server/mutators/mutator/gamemode_survival.qc +++ b/qcsrc/server/mutators/mutator/gamemode_survival.qc @@ -72,73 +72,6 @@ int autocvar_g_surv_defender_force_overkill_models; /// \brief Whether to force overkill player models for cannon fodder. int autocvar_g_surv_cannon_fodder_force_overkill_models; -/// \brief How much health do attackers get when they pickup ammo. -int autocvar_g_surv_attacker_pickup_ammo_health; -/// \brief How much armor do attackers get when they pickup ammo. -int autocvar_g_surv_attacker_pickup_ammo_armor; -/// \brief How much health do attackers get when they pickup a weapon. -int autocvar_g_surv_attacker_pickup_weapon_health; -/// \brief How much armor do attackers get when they pickup a weapon. -int autocvar_g_surv_attacker_pickup_weapon_armor; -/// \brief How much health do attackers get when they pickup a dropped weapon. -int autocvar_g_surv_attacker_pickup_droppedweapon_health; -/// \brief How much armor do attackers get when they pickup a dropped weapon. -int autocvar_g_surv_attacker_pickup_droppedweapon_armor; - -/// \brief How many health do defenders get when they pickup small health. -int autocvar_g_surv_defender_pickup_health_small; -/// \brief How many health do defenders get when they pickup medium health. -int autocvar_g_surv_defender_pickup_health_medium; -/// \brief How many health do defenders get when they pickup big health. -int autocvar_g_surv_defender_pickup_health_big; -/// \brief How many health do defenders get when they pickup mega health. -int autocvar_g_surv_defender_pickup_health_mega; -/// \brief How many armor do defenders get when they pickup small armor. -int autocvar_g_surv_defender_pickup_armor_small; -/// \brief How many armor do defenders get when they pickup medium armor. -int autocvar_g_surv_defender_pickup_armor_medium; -/// \brief How many armor do defenders get when they pickup big armor. -int autocvar_g_surv_defender_pickup_armor_big; -/// \brief How many armor do defenders get when they pickup mega armor. -int autocvar_g_surv_defender_pickup_armor_mega; -/// \brief How many shells do defenders get when they pickup small health/armor. -int autocvar_g_surv_defender_pickup_shells_small; -/// \brief How many shells do defenders get when they pickup medium -/// health/armor. -int autocvar_g_surv_defender_pickup_shells_medium; -/// \brief How many shells do defenders get when they pickup big health/armor. -int autocvar_g_surv_defender_pickup_shells_big; -/// \brief How many shells do defenders get when they pickup mega health/armor. -int autocvar_g_surv_defender_pickup_shells_mega; -/// \brief How many bullets do defenders get when they pickup small -/// health/armor. -int autocvar_g_surv_defender_pickup_bullets_small; -/// \brief How many bullets do defenders get when they pickup medium -/// health/armor. -int autocvar_g_surv_defender_pickup_bullets_medium; -/// \brief How many bullets do defenders get when they pickup big health/armor. -int autocvar_g_surv_defender_pickup_bullets_big; -/// \brief How many bullets do defenders get when they pickup mega health/armor. -int autocvar_g_surv_defender_pickup_bullets_mega; -/// \brief How many rockets do defenders get when they pickup small -/// health/armor. -int autocvar_g_surv_defender_pickup_rockets_small; -/// \brief How many rockets do defenders get when they pickup medium -/// health/armor. -int autocvar_g_surv_defender_pickup_rockets_medium; -/// \brief How many rockets do defenders get when they pickup big health/armor. -int autocvar_g_surv_defender_pickup_rockets_big; -/// \brief How many rockets do defenders get when they pickup mega health/armor. -int autocvar_g_surv_defender_pickup_rockets_mega; -/// \brief How many cells do defenders get when they pickup small health/armor. -int autocvar_g_surv_defender_pickup_cells_small; -/// \brief How many cells do defenders get when they pickup medium health/armor. -int autocvar_g_surv_defender_pickup_cells_medium; -/// \brief How many cells do defenders get when they pickup big health/armor. -int autocvar_g_surv_defender_pickup_cells_big; -/// \brief How many cells do defenders get when they pickup mega health/armor. -int autocvar_g_surv_defender_pickup_cells_mega; - /// \brief How much score attackers gain per 1 point of damage. float autocvar_g_surv_attacker_damage_score; @@ -1652,295 +1585,13 @@ MUTATOR_HOOKFUNCTION(surv, ItemTouch) { case surv_attackerteam: { - switch (item.classname) - { - case "item_shells": - case "item_bullets": - case "item_rockets": - case "item_cells": - { - GivePlayerHealth(player, - autocvar_g_surv_attacker_pickup_ammo_health); - GivePlayerArmor(player, - autocvar_g_surv_attacker_pickup_ammo_armor); - return MUT_ITEMTOUCH_CONTINUE; - } - case "weapon_machinegun": - case "weapon_uzi": - case "weapon_grenadelauncher": - case "weapon_electro": - case "weapon_crylink": - case "weapon_nex": - case "weapon_hagar": - case "weapon_rocketlauncher": - case "replacedweapon": - { - GivePlayerHealth(player, - autocvar_g_surv_attacker_pickup_weapon_health); - GivePlayerArmor(player, - autocvar_g_surv_attacker_pickup_weapon_armor); - return MUT_ITEMTOUCH_CONTINUE; - } - case "droppedweapon": - { - GivePlayerHealth(player, - autocvar_g_surv_attacker_pickup_droppedweapon_health); - GivePlayerArmor(player, - autocvar_g_surv_attacker_pickup_droppedweapon_armor); - return MUT_ITEMTOUCH_CONTINUE; - } - } - return MUT_ITEMTOUCH_CONTINUE; + return PlayerTemplate_ItemTouch(player, item, + Surv_GetPlayerTemplate(player)); } case surv_defenderteam: { switch (item.classname) { - case "item_health_small": - { - GivePlayerHealth(player, - autocvar_g_surv_defender_pickup_health_small); - GivePlayerAmmo(player, ammo_shells, - autocvar_g_surv_defender_pickup_shells_small); - GivePlayerAmmo(player, ammo_nails, - autocvar_g_surv_defender_pickup_bullets_small); - GivePlayerAmmo(player, ammo_rockets, - autocvar_g_surv_defender_pickup_rockets_small); - GivePlayerAmmo(player, ammo_cells, - autocvar_g_surv_defender_pickup_cells_small); - Item_ScheduleRespawn(item); - sound(player, CH_TRIGGER, SND_HealthSmall, VOL_BASE, - ATTEN_NORM); - return MUT_ITEMTOUCH_RETURN; - } - case "item_health_medium": - { - GivePlayerHealth(player, - autocvar_g_surv_defender_pickup_health_medium); - GivePlayerAmmo(player, ammo_shells, - autocvar_g_surv_defender_pickup_shells_medium); - GivePlayerAmmo(player, ammo_nails, - autocvar_g_surv_defender_pickup_bullets_medium); - GivePlayerAmmo(player, ammo_rockets, - autocvar_g_surv_defender_pickup_rockets_medium); - GivePlayerAmmo(player, ammo_cells, - autocvar_g_surv_defender_pickup_cells_medium); - Item_ScheduleRespawn(item); - sound(player, CH_TRIGGER, SND_HealthMedium, VOL_BASE, - ATTEN_NORM); - return MUT_ITEMTOUCH_RETURN; - } - case "item_health_big": - { - GivePlayerHealth(player, - autocvar_g_surv_defender_pickup_health_big); - GivePlayerAmmo(player, ammo_shells, - autocvar_g_surv_defender_pickup_shells_big); - GivePlayerAmmo(player, ammo_nails, - autocvar_g_surv_defender_pickup_bullets_big); - GivePlayerAmmo(player, ammo_rockets, - autocvar_g_surv_defender_pickup_rockets_big); - GivePlayerAmmo(player, ammo_cells, - autocvar_g_surv_defender_pickup_cells_big); - Item_ScheduleRespawn(item); - sound(player, CH_TRIGGER, SND_HealthBig, VOL_BASE, - ATTEN_NORM); - return MUT_ITEMTOUCH_RETURN; - } - case "item_health_mega": - { - GivePlayerHealth(player, - autocvar_g_surv_defender_pickup_health_mega); - GivePlayerAmmo(player, ammo_shells, - autocvar_g_surv_defender_pickup_shells_mega); - GivePlayerAmmo(player, ammo_nails, - autocvar_g_surv_defender_pickup_bullets_mega); - GivePlayerAmmo(player, ammo_rockets, - autocvar_g_surv_defender_pickup_rockets_mega); - GivePlayerAmmo(player, ammo_cells, - autocvar_g_surv_defender_pickup_cells_mega); - Item_ScheduleRespawn(item); - sound(player, CH_TRIGGER, SND_HealthMega, VOL_BASE, ATTEN_NORM); - return MUT_ITEMTOUCH_RETURN; - } - case "item_armor_small": - { - GivePlayerArmor(player, - autocvar_g_surv_defender_pickup_armor_small); - GivePlayerAmmo(player, ammo_shells, - autocvar_g_surv_defender_pickup_shells_small); - GivePlayerAmmo(player, ammo_nails, - autocvar_g_surv_defender_pickup_bullets_small); - GivePlayerAmmo(player, ammo_rockets, - autocvar_g_surv_defender_pickup_rockets_small); - GivePlayerAmmo(player, ammo_cells, - autocvar_g_surv_defender_pickup_cells_small); - Item_ScheduleRespawn(item); - sound(player, CH_TRIGGER, SND_HealthSmall, VOL_BASE, - ATTEN_NORM); - return MUT_ITEMTOUCH_RETURN; - } - case "item_armor_medium": - { - GivePlayerArmor(player, - autocvar_g_surv_defender_pickup_armor_medium); - GivePlayerAmmo(player, ammo_shells, - autocvar_g_surv_defender_pickup_shells_medium); - GivePlayerAmmo(player, ammo_nails, - autocvar_g_surv_defender_pickup_bullets_medium); - GivePlayerAmmo(player, ammo_rockets, - autocvar_g_surv_defender_pickup_rockets_medium); - GivePlayerAmmo(player, ammo_cells, - autocvar_g_surv_defender_pickup_cells_medium); - Item_ScheduleRespawn(item); - sound(player, CH_TRIGGER, SND_HealthMedium, VOL_BASE, - ATTEN_NORM); - return MUT_ITEMTOUCH_RETURN; - } - case "item_armor_big": - { - GivePlayerArmor(player, - autocvar_g_surv_defender_pickup_armor_big); - GivePlayerAmmo(player, ammo_shells, - autocvar_g_surv_defender_pickup_shells_big); - GivePlayerAmmo(player, ammo_nails, - autocvar_g_surv_defender_pickup_bullets_big); - GivePlayerAmmo(player, ammo_rockets, - autocvar_g_surv_defender_pickup_rockets_big); - GivePlayerAmmo(player, ammo_cells, - autocvar_g_surv_defender_pickup_cells_big); - Item_ScheduleRespawn(item); - sound(player, CH_TRIGGER, SND_HealthBig, VOL_BASE, ATTEN_NORM); - return MUT_ITEMTOUCH_RETURN; - } - case "item_armor_mega": - { - GivePlayerArmor(player, - autocvar_g_surv_defender_pickup_armor_mega); - GivePlayerAmmo(player, ammo_shells, - autocvar_g_surv_defender_pickup_shells_mega); - GivePlayerAmmo(player, ammo_nails, - autocvar_g_surv_defender_pickup_bullets_mega); - GivePlayerAmmo(player, ammo_rockets, - autocvar_g_surv_defender_pickup_rockets_mega); - GivePlayerAmmo(player, ammo_cells, - autocvar_g_surv_defender_pickup_cells_mega); - Item_ScheduleRespawn(item); - sound(player, CH_TRIGGER, SND_HealthMega, VOL_BASE, ATTEN_NORM); - return MUT_ITEMTOUCH_RETURN; - } - case "item_shells": - case "item_bullets": - case "item_rockets": - case "item_cells": - { - return MUT_ITEMTOUCH_CONTINUE; - } - case "droppedweapon": - { - switch (item.weapon) - { - case WEP_SHOTGUN.m_id: - { - GivePlayerAmmo(player, ammo_shells, cvar( - "g_pickup_shells_weapon")); - break; - } - case WEP_MACHINEGUN.m_id: - { - GivePlayerAmmo(player, ammo_nails, cvar( - "g_pickup_nails_weapon")); - break; - } - case WEP_MORTAR.m_id: - case WEP_HAGAR.m_id: - case WEP_DEVASTATOR.m_id: - { - GivePlayerAmmo(player, ammo_rockets, cvar( - "g_pickup_rockets_weapon")); - break; - } - case WEP_ELECTRO.m_id: - case WEP_CRYLINK.m_id: - case WEP_VORTEX.m_id: - { - GivePlayerAmmo(player, ammo_cells, cvar( - "g_pickup_cells_weapon")); - break; - } - } - delete(item); - sound(player, CH_TRIGGER, SND_WEAPONPICKUP, VOL_BASE, - ATTEN_NORM); - return MUT_ITEMTOUCH_RETURN; - } - case "replacedweapon": - { - switch (item.weapon) - { - case WEP_SHOTGUN.m_id: - { - GivePlayerAmmo(player, ammo_shells, cvar( - "g_pickup_shells_weapon")); - break; - } - case WEP_RIFLE.m_id: - { - GivePlayerAmmo(player, ammo_nails, cvar( - "g_pickup_nails_weapon")); - break; - } - case WEP_MINE_LAYER.m_id: - case WEP_SEEKER.m_id: - { - GivePlayerAmmo(player, ammo_rockets, cvar( - "g_pickup_rockets_weapon")); - break; - } - case WEP_HLAC.m_id: - { - GivePlayerAmmo(player, ammo_cells, cvar( - "g_pickup_cells_weapon")); - break; - } - } - Item_ScheduleRespawn(item); - sound(player, CH_TRIGGER, SND_WEAPONPICKUP, VOL_BASE, - ATTEN_NORM); - return MUT_ITEMTOUCH_RETURN; - } - case "weapon_machinegun": - case "weapon_uzi": - { - GivePlayerAmmo(player, ammo_nails, - cvar("g_pickup_nails_weapon")); - Item_ScheduleRespawn(item); - sound(player, CH_TRIGGER, SND_WEAPONPICKUP, VOL_BASE, - ATTEN_NORM); - return MUT_ITEMTOUCH_RETURN; - } - case "weapon_grenadelauncher": - case "weapon_hagar": - case "weapon_rocketlauncher": - { - GivePlayerAmmo(player, ammo_rockets, - cvar("g_pickup_rockets_weapon")); - Item_ScheduleRespawn(item); - sound(player, CH_TRIGGER, SND_WEAPONPICKUP, VOL_BASE, - ATTEN_NORM); - return MUT_ITEMTOUCH_RETURN; - } - case "weapon_electro": - case "weapon_crylink": - case "weapon_nex": - { - GivePlayerAmmo(player, ammo_cells, - cvar("g_pickup_cells_weapon")); - Item_ScheduleRespawn(item); - sound(player, CH_TRIGGER, SND_WEAPONPICKUP, VOL_BASE, - ATTEN_NORM); - return MUT_ITEMTOUCH_RETURN; - } case "item_strength": { W_GiveWeapon(player, WEP_HMG.m_id); @@ -1962,6 +1613,11 @@ MUTATOR_HOOKFUNCTION(surv, ItemTouch) sound(player, CH_TRIGGER, SND_Shield, VOL_BASE, ATTEN_NORM); return MUT_ITEMTOUCH_RETURN; } + default: + { + return PlayerTemplate_ItemTouch(player, item, + Surv_GetPlayerTemplate(player)); + } } DebugPrintToChat(player, item.classname); return MUT_ITEMTOUCH_RETURN; diff --git a/survival.cfg b/survival.cfg index 6cbb32237..d13d315c7 100644 --- a/survival.cfg +++ b/survival.cfg @@ -61,37 +61,54 @@ set g_player_template_surv_cannon_fodder_start_weapons "default" "Which weapons set g_player_template_surv_cannon_fodder_num_random_start_weapons 2 "Number of weapons that can be randomly given to cannon fodder during spawn" set g_player_template_surv_cannon_fodder_random_start_weapons "machinegun mortar electro crylink vortex hagar devastator" "Weapons that can be randomly given to cannon fodder during spawn" -set g_surv_attacker_pickup_ammo_health 25 "How much health do attackers get when they pickup ammo" -set g_surv_attacker_pickup_ammo_armor 25 "How much armor do attackers get when they pickup ammo" -set g_surv_attacker_pickup_weapon_health 0 "How much health do attackers get when they pickup a weapon" -set g_surv_attacker_pickup_weapon_armor 0 "How much armor do attackers get when they pickup a weapon" -set g_surv_attacker_pickup_droppedweapon_health 25 "How much health do attackers get when they pickup a dropped weapon" -set g_surv_attacker_pickup_droppedweapon_armor 25 "How much armor do attackers get when they pickup a dropped weapon" - -set g_surv_defender_pickup_health_small 0 "How much health do defenders get when they pickup small health" -set g_surv_defender_pickup_health_medium 0 "How much health do defenders get when they pickup medium health" -set g_surv_defender_pickup_health_big 0 "How much health do defenders get when they pickup big health" -set g_surv_defender_pickup_health_mega 0 "How much health do defenders get when they pickup mega health" -set g_surv_defender_pickup_armor_small 0 "How much armor do defenders get when they pickup small armor" -set g_surv_defender_pickup_armor_medium 0 "How much armor do defenders get when they pickup medium armor" -set g_surv_defender_pickup_armor_big 0 "How much armor do defenders get when they pickup big armor" -set g_surv_defender_pickup_armor_mega 0 "How much armor do defenders get when they pickup mega armor" -set g_surv_defender_pickup_shells_small 6 "How many shells do defenders get when they pickup small health/armor" -set g_surv_defender_pickup_shells_medium 15 "How many shells do defenders get when they pickup medium health/armor" -set g_surv_defender_pickup_shells_big 30 "How many shells do defenders get when they pickup big health/armor" -set g_surv_defender_pickup_shells_mega 60 "How many shells do defenders get when they pickup mega health/armor" -set g_surv_defender_pickup_bullets_small 5 "How many bullets do defenders get when they pickup small health/armor" -set g_surv_defender_pickup_bullets_medium 10 "How many bullets do defenders get when they pickup medium health/armor" -set g_surv_defender_pickup_bullets_big 15 "How many bullets do defenders get when they pickup big health/armor" -set g_surv_defender_pickup_bullets_mega 30 "How many bullets do defenders get when they pickup mega health/armor" -set g_surv_defender_pickup_rockets_small 10 "How many rockets do defenders get when they pickup small health/armor" -set g_surv_defender_pickup_rockets_medium 20 "How many rockets do defenders get when they pickup medium health/armor" -set g_surv_defender_pickup_rockets_big 40 "How many rockets do defenders get when they pickup big health/armor" -set g_surv_defender_pickup_rockets_mega 50 "How many rockets do defenders get when they pickup mega health/armor" -set g_surv_defender_pickup_cells_small 10 "How many cells do defenders get when they pickup small health/armor" -set g_surv_defender_pickup_cells_medium 20 "How many cells do defenders get when they pickup medium health/armor" -set g_surv_defender_pickup_cells_big 40 "How many cells do defenders get when they pickup big health/armor" -set g_surv_defender_pickup_cells_mega 50 "How many cells do defenders get when they pickup mega health/armor" +set g_player_template_surv_attacker_pickup_item_shells "add 25 25" "What items do attackers get when they pickup shells" +set g_player_template_surv_attacker_pickup_item_bullets "add 25 25" "What items do attackers get when they pickup bullets" +set g_player_template_surv_attacker_pickup_item_rockets "add 25 25" "What items do attackers get when they pickup rockets" +set g_player_template_surv_attacker_pickup_item_cells "add 25 25" "What items do attackers get when they pickup cells" +set g_player_template_surv_attacker_pickup_weapon_dropped_shotgun "add 25 25" "What items do attackers get when they pickup a dropped shotgun" +set g_player_template_surv_attacker_pickup_weapon_dropped_machinegun "add 25 25" "What items do attackers get when they pickup a dropped machinegun" +set g_player_template_surv_attacker_pickup_weapon_dropped_mortar "add 25 25" "What items do attackers get when they pickup a dropped mortar" +set g_player_template_surv_attacker_pickup_weapon_dropped_electro "add 25 25" "What items do attackers get when they pickup a dropped electro" +set g_player_template_surv_attacker_pickup_weapon_dropped_crylink "add 25 25" "What items do attackers get when they pickup a dropped crylink" +set g_player_template_surv_attacker_pickup_weapon_dropped_vortex "add 25 25" "What items do attackers get when they pickup a dropped vortex" +set g_player_template_surv_attacker_pickup_weapon_dropped_hagar "add 25 25" "What items do attackers get when they pickup a dropped hagar" +set g_player_template_surv_attacker_pickup_weapon_dropped_devastator "add 25 25" "What items do attackers get when they pickup a dropped devastator" +set g_player_template_surv_attacker_pickup_weapon_dropped_minelayer "add 25 25" "What items do attackers get when they pickup a dropped mine layer" +set g_player_template_surv_attacker_pickup_weapon_dropped_hlac "add 25 25" "What items do attackers get when they pickup a dropped HLAC" +set g_player_template_surv_attacker_pickup_weapon_dropped_rifle "add 25 25" "What items do attackers get when they pickup a dropped rifle" +set g_player_template_surv_attacker_pickup_weapon_dropped_seeker "add 25 25" "What items do attackers get when they pickup a dropped TAG seeker" + +set g_player_template_surv_defender_pickup_health_small "override 0 0 6 5 10 10" "What items do defenders get when they pickup small health" +set g_player_template_surv_defender_pickup_health_medium "override 0 0 15 10 20 20" "What items do defenders get when they pickup medium health" +set g_player_template_surv_defender_pickup_health_big "override 0 0 30 15 40 40" "What items do defenders get when they pickup big health" +set g_player_template_surv_defender_pickup_health_mega "override 0 0 60 30 50 50" "What items do defenders get when they pickup mega health" +set g_player_template_surv_defender_pickup_armor_small "override 0 0 6 5 10 10" "What items do defenders get when they pickup small armor" +set g_player_template_surv_defender_pickup_armor_medium "override 0 0 15 10 20 20" "What items do defenders get when they pickup medium armor" +set g_player_template_surv_defender_pickup_armor_big "override 0 0 30 15 40 40" "What items do defenders get when they pickup big armor" +set g_player_template_surv_defender_pickup_armor_mega "override 0 0 60 30 50 50" "What items do defenders get when they pickup mega armor" +set g_player_template_surv_defender_pickup_weapon_machinegun "override 0 0 0 80" "What items do defenders get when they pickup a machinegun" +set g_player_template_surv_defender_pickup_weapon_mortar "override 0 0 0 0 40" "What items do defenders get when they pickup a mortar" +set g_player_template_surv_defender_pickup_weapon_electro "override 0 0 0 0 0 30" "What items do defenders get when they pickup an electro" +set g_player_template_surv_defender_pickup_weapon_crylink "override 0 0 0 0 0 30" "What items do defenders get when they pickup a crylink" +set g_player_template_surv_defender_pickup_weapon_vortex "override 0 0 0 0 0 30" "What items do defenders get when they pickup a vortex" +set g_player_template_surv_defender_pickup_weapon_hagar "override 0 0 0 0 40" "What items do defenders get when they pickup a hagar" +set g_player_template_surv_defender_pickup_weapon_devastator "override 0 0 0 0 40" "What items do defenders get when they pickup a devastator" +set g_player_template_surv_defender_pickup_weapon_minelayer "override 0 0 0 0 40" "What items do defenders get when they pickup a mine layer" +set g_player_template_surv_defender_pickup_weapon_hlac "override 0 0 0 0 0 30" "What items do defenders get when they pickup a HLAC" +set g_player_template_surv_defender_pickup_weapon_rifle "override 0 0 0 80" "What items do defenders get when they pickup a rifle" +set g_player_template_surv_defender_pickup_weapon_seeker "override 0 0 0 0 40" "What items do defenders get when they pickup a TAG seeker" +set g_player_template_surv_defender_pickup_weapon_dropped_shotgun "override 0 0 15" "What items do defenders get when they pickup a dropped shotgun" +set g_player_template_surv_defender_pickup_weapon_dropped_machinegun "override 0 0 0 80" "What items do defenders get when they pickup a dropped machinegun" +set g_player_template_surv_defender_pickup_weapon_dropped_mortar "override 0 0 0 0 40" "What items do defenders get when they pickup a dropped mortar" +set g_player_template_surv_defender_pickup_weapon_dropped_electro "override 0 0 0 0 0 30" "What items do defenders get when they pickup a dropped electro" +set g_player_template_surv_defender_pickup_weapon_dropped_crylink "override 0 0 0 0 0 30" "What items do defenders get when they pickup a dropped crylink" +set g_player_template_surv_defender_pickup_weapon_dropped_vortex "override 0 0 0 0 0 30" "What items do defenders get when they pickup a dropped vortex" +set g_player_template_surv_defender_pickup_weapon_dropped_hagar "override 0 0 0 0 40" "What items do defenders get when they pickup a dropped hagar" +set g_player_template_surv_defender_pickup_weapon_dropped_devastator "override 0 0 0 0 40" "What items do defenders get when they pickup a dropped devastator" +set g_player_template_surv_defender_pickup_weapon_dropped_minelayer "override 0 0 0 0 40" "What items do defenders get when they pickup a dropped mine layer" +set g_player_template_surv_defender_pickup_weapon_dropped_hlac "override 0 0 0 0 0 30" "What items do defenders get when they pickup a dropped HLAC" +set g_player_template_surv_defender_pickup_weapon_dropped_rifle "override 0 0 0 80" "What items do defenders get when they pickup a dropped rifle" +set g_player_template_surv_defender_pickup_weapon_dropped_seeker "override 0 0 0 0 40" "What items do defenders get when they pickup a dropped TAG seeker" set g_surv_attacker_damage_score 0.025 "How much score attackers gain per 1 point of damage"