From ee5149accc6e35d3377d2efb5de0e21a40eeb241 Mon Sep 17 00:00:00 2001 From: Ren Erthilo Date: Sun, 22 Apr 2012 02:54:46 +0100 Subject: [PATCH] New verb: rightandwrong When used, it will arm every human mob that is not already a special role (and with a client assigned) with a random gun from the following list: -Taser -Egun -Laser -Revolver -C20r -Decloner -Desert Eagle TG: -Gyrojet Pistol -Pulse Rifle -Silenced Pistol -Laser Cannon -Combat Shotgun -Mini-Uzi -Mini-Ebow It will then inform the player that "You are the survivor! Your own safety matters above all else, trust no one and kill anyone who gets in your way. However, armed as you are, now would be the perfect time to settle that score or grab that pair of yellow gloves you've been eyeing..." And make them a traitor/give them the objective to survive till the round ends. After use, rightandwrong will remove itself from the users list of verbs. rightandwrong addeded to the Spellbook under "Summon Guns" The verb will appear in the spell tab. Updated changelog Revision: r3071 Author: kortgstation --- baystation12.dme | 1 + code/game/gamemodes/wizard/rightandwrong.dm | 54 +++++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 code/game/gamemodes/wizard/rightandwrong.dm diff --git a/baystation12.dme b/baystation12.dme index d37370c92b3..e52b3b38d5a 100644 --- a/baystation12.dme +++ b/baystation12.dme @@ -439,6 +439,7 @@ #include "code\game\gamemodes\sandbox\h_sandbox.dm" #include "code\game\gamemodes\sandbox\sandbox.dm" #include "code\game\gamemodes\traitor\traitor.dm" +#include "code\game\gamemodes\wizard\rightandwrong.dm" #include "code\game\gamemodes\wizard\soulstone.dm" #include "code\game\gamemodes\wizard\spellbook.dm" #include "code\game\gamemodes\wizard\spells.dm" diff --git a/code/game/gamemodes/wizard/rightandwrong.dm b/code/game/gamemodes/wizard/rightandwrong.dm new file mode 100644 index 00000000000..5bd77a7fdeb --- /dev/null +++ b/code/game/gamemodes/wizard/rightandwrong.dm @@ -0,0 +1,54 @@ + + +/client/proc/rightandwrong() + set category = "Spells" + set desc = "Summon Guns" + set name = "Wizards: No sense of right and wrong!" + + for(var/mob/living/carbon/human/H in world) + if(H.stat == 2 || !(H.client)) continue + if(is_special_character(H)) continue + if(prob(25)) + ticker.mode.traitors += H.mind + H.mind.special_role = "traitor" + var/datum/objective/survive/survive = new + survive.owner = H.mind + H.mind.objectives += survive + H << "You are the survivor! Your own safety matters above all else, trust no one and kill anyone who gets in your way. However, armed as you are, now would be the perfect time to settle that score or grab that pair of yellow gloves you've been eyeing..." + var/obj_count = 1 + for(var/datum/objective/OBJ in H.mind.objectives) + H << "Objective #[obj_count]: [OBJ.explanation_text]" + obj_count++ + var/randomize = pick("taser","egun","laser","revolver","smg","decloner","deagle","gyrojet","pulse","silenced","cannon","shotgun","freeze","uzi","crossbow") + switch (randomize) + if("taser") + new /obj/item/weapon/gun/energy/taser(get_turf(H)) + if("egun") + new /obj/item/weapon/gun/energy(get_turf(H)) + if("laser") + new /obj/item/weapon/gun/energy/laser(get_turf(H)) + if("revolver") + new /obj/item/weapon/gun/projectile(get_turf(H)) + if("smg") + new /obj/item/weapon/gun/projectile/automatic/c20r(get_turf(H)) + if("decloner") + new /obj/item/weapon/gun/energy/decloner(get_turf(H)) + if("deagle") + new /obj/item/weapon/gun/projectile/deagle/camo(get_turf(H)) + if("gyrojet") + new /obj/item/weapon/gun/projectile/gyropistol(get_turf(H)) + if("pulse") + new /obj/item/weapon/gun/energy/pulse_rifle(get_turf(H)) + if("silenced") + new /obj/item/weapon/gun/projectile/silenced(get_turf(H)) + if("cannon") + new /obj/item/weapon/gun/energy/lasercannon(get_turf(H)) + if("shotgun") + new /obj/item/weapon/gun/projectile/shotgun/combat(get_turf(H)) + if("freeze") + new /obj/item/weapon/gun/energy/temperature(get_turf(H)) + if("uzi") + new /obj/item/weapon/gun/projectile/automatic/mini_uzi(get_turf(H)) + if("crossbow") + new /obj/item/weapon/gun/energy/crossbow(get_turf(H)) + usr.verbs -= /client/proc/rightandwrong