mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Expose K_Cooperative to Lua
This commit is contained in:
parent
d677c37b53
commit
3e66335a71
1 changed files with 8 additions and 0 deletions
|
|
@ -4703,6 +4703,13 @@ static int lib_kPointLimitForGametype(lua_State *L)
|
|||
return 1;
|
||||
}
|
||||
|
||||
static int lib_kCooperative(lua_State *L)
|
||||
{
|
||||
INLEVEL
|
||||
lua_pushboolean(L, K_Cooperative());
|
||||
return 1;
|
||||
}
|
||||
|
||||
static int lib_kGetCollideAngle(lua_State *L)
|
||||
{
|
||||
mobj_t *t1 = *((mobj_t **)luaL_checkudata(L, 1, META_MOBJ));
|
||||
|
|
@ -5185,6 +5192,7 @@ static luaL_Reg lib[] = {
|
|||
{"K_UnsetItemOut",lib_kUnsetItemOut},
|
||||
{"K_TimeLimitForGametype",lib_kTimeLimitForGametype},
|
||||
{"K_PointLimitForGametype",lib_kPointLimitForGametype},
|
||||
{"K_Cooperative",lib_kCooperative},
|
||||
|
||||
{"K_GetCollideAngle",lib_kGetCollideAngle},
|
||||
{"K_AddHitLag",lib_kAddHitLag},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue