Skip to content

Commit

Permalink
gumbo
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiskster committed Nov 14, 2023
1 parent d6c33d2 commit 3bc98c2
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/Lua/2_Console.lua
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,24 @@ COM_AddCommand("ptsr_setgamemode", function(player, arg)
print("Changed Gamemode to: ".. PTSR.gamemode_list[PTSR.gamemode])
end,1)

COM_AddCommand("ptsr_spawnpfai", function(player, randomplayer)
if gametype ~= GT_PTSPICER then
CONS_Printf(player, "Command must be ran in the Pizza Time Spice Runners mode.")
return
end

local newpizaface = P_SpawnMobj(PTSR.end_location.x*FRACUNIT,
PTSR.end_location.y*FRACUNIT,
PTSR.end_location.z*FRACUNIT,
MT_PIZZA_ENEMY)

if randomplayer then
PTSR:RNGPizzaTP(newpizaface, true)
end

CONS_Printf(player, "Spawned an AI Pizzaface")
end,1)

// ADDED FOR TESTING PURPOSES

CV_PTSR.x_positioning = CV_RegisterVar({
Expand Down

0 comments on commit 3bc98c2

Please sign in to comment.