Skip to content

Expose RESPAWNST_ Constants To Lua

I honestly thought this had been done already but I guess not. A very simple change that'll help a lot of people doing racer-focused Lua scripts.

Lua:

addHook("MapLoad",function(mn)
	for player in players.iterate do
		CONS_Printf(player,"RESPAWNST_NONE: "..RESPAWNST_NONE)
		CONS_Printf(player,"RESPAWNST_MOVE: "..RESPAWNST_MOVE)
		CONS_Printf(player,"RESPAWNST_DROP: "..RESPAWNST_DROP)
	end
end)

In-Game:

image

Merge request reports

Loading