Skip to content

Commit

Permalink
Remove temp DDF/Lua testing function
Browse files Browse the repository at this point in the history
  • Loading branch information
dashodanger committed Oct 31, 2024
1 parent cf9081a commit 368e4fa
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
10 changes: 0 additions & 10 deletions edge_defs/scripts/lua/edge_hud.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,6 @@ local custom_stbar_darkest_color = vec3(0, 0, 0)
local custom_stbar_lightest_color = vec3(0, 0, 0)
local custom_stbar_average_hue = vec3(0, 0, 0)

local lua_state_test = 0

function LUA_STATE_CALL_TEST(info)
if info ~= nil then
lua_state_test = lua_state_test + 1
end
end

function doom_weapon_icon(slot, x, y, off_pic, on_pic)
if (player.has_weapon_slot(slot)) then
hud.draw_image(x, y, on_pic)
Expand Down Expand Up @@ -215,8 +207,6 @@ function doom_status_bar_common()
hud.draw_num2(90, 171, 3, player.health())
hud.draw_num2(221, 171, 3, player.total_armor())

hud.draw_num2(50, 50, 3, lua_state_test)

if (hud.game_mode() == "dm") then
hud.draw_num2(138, 171, 2, player.frags())
else
Expand Down
3 changes: 1 addition & 2 deletions edge_defs/scripts/things.ddf
Original file line number Diff line number Diff line change
Expand Up @@ -1980,8 +1980,7 @@ DROPITEM=CLIP;
RANGE_ATTACK=FORMER_HUMAN_PISTOL;

STATES(IDLE)=POSS:A:10:NORMAL:LOOKOUT,
POSS:B:10:NORMAL:LOOKOUT,
POSS:B:0:NORMAL:LUA_RUN_SCRIPT("LUA_STATE_CALL_TEST");
POSS:B:10:NORMAL:LOOKOUT;

STATES(CHASE)=POSS:A:4:NORMAL:CHASE,
POSS:A:4:NORMAL:CHASE,
Expand Down

0 comments on commit 368e4fa

Please sign in to comment.