COM_AddCommand("SpawnShield", function(player, arg) if gamestate != GS_LEVEL CONS_Printf(player, "You must be in a level to do this.") return end if arg == nil then CONS_Printf(player, "SpawnShield ") CONS_Printf(player, "There are 3 Shields currenlty avalible: Bubble, Lightning, and Fire") CONS_Printf(player, "You can also type B, L, and F respectivly to get the shield you want") end if arg == "Bubble" or arg == "B" then CONS_Printf(player, "Bubble Shield Spawned!") P_SpawnMobjFromMobj(player.mo, FixedMul(100*cos(player.mo.angle), player.mo.scale), FixedMul(100*sin(player.mo.angle), player.mo.scale), FixedMul(0*FU, player.mo.scale), MT_BUBBLEWRAP_BOX) end if arg == "Lightning" or arg == "L" then CONS_Printf(player, "Lightning Shield Spawned!") P_SpawnMobjFromMobj(player.mo, FixedMul(100*cos(player.mo.angle), player.mo.scale), FixedMul(100*sin(player.mo.angle), player.mo.scale), FixedMul(0*FU, player.mo.scale), MT_THUNDERCOIN_BOX) if arg == "Fire" or arg == "F" then CONS_Printf(player, "Fire Shield Spawned!") P_SpawnMobjFromMobj(player.mo, FixedMul(100*cos(player.mo.angle), player.mo.scale), FixedMul(100*sin(player.mo.angle), player.mo.scale), FixedMul(0*FU, player.mo.scale), MT_FLAMEAURA_BOX) end end end, COM_ADMIN)