mirror of
				https://github.com/KartKrewDev/RingRacers.git
				synced 2025-10-30 08:01:28 +00:00 
			
		
		
		
	Expose K_TimeLimitForGametype to Lua
This commit is contained in:
		
							parent
							
								
									d53859e2dd
								
							
						
					
					
						commit
						6270222e8a
					
				
					 1 changed files with 8 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -4689,6 +4689,13 @@ static int lib_kUnsetItemOut(lua_State *L)
 | 
			
		|||
	return 0;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static int lib_kTimeLimitForGametype(lua_State *L)
 | 
			
		||||
{
 | 
			
		||||
	INLEVEL
 | 
			
		||||
	lua_pushinteger(L, K_TimeLimitForGametype());
 | 
			
		||||
	return 1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static int lib_kGetCollideAngle(lua_State *L)
 | 
			
		||||
{
 | 
			
		||||
	mobj_t *t1 = *((mobj_t **)luaL_checkudata(L, 1, META_MOBJ));
 | 
			
		||||
| 
						 | 
				
			
			@ -5169,6 +5176,7 @@ static luaL_Reg lib[] = {
 | 
			
		|||
	{"K_ItemScaleForPlayer",lib_kItemScaleForPlayer},
 | 
			
		||||
	{"K_SetItemOut",lib_kSetItemOut},
 | 
			
		||||
	{"K_UnsetItemOut",lib_kUnsetItemOut},
 | 
			
		||||
	{"K_TimeLimitForGametype",lib_kTimeLimitForGametype},
 | 
			
		||||
 | 
			
		||||
	{"K_GetCollideAngle",lib_kGetCollideAngle},
 | 
			
		||||
	{"K_AddHitLag",lib_kAddHitLag},
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue