Code reformating

This commit is contained in:
Walter Julius Hennecke 2013-05-09 01:59:07 +02:00
parent 17163a2fb0
commit a59e311157
10 changed files with 303 additions and 303 deletions

View file

@ -61,11 +61,11 @@ static int Cinematic_DeactivateGlobal(lua_State *L) {
}
static const luaL_Reg lib_cinematic[] = {
{"Activate", Cinematic_Activate},
{"Deactivate", Cinematic_Deactivate},
{"ActivateGlobal", Cinematic_ActivateGlobal},
{"DeactivateGlobal", Cinematic_DeactivateGlobal},
{NULL, NULL}
{ "Activate", Cinematic_Activate },
{ "Deactivate", Cinematic_Deactivate },
{ "ActivateGlobal", Cinematic_ActivateGlobal },
{ "DeactivateGlobal", Cinematic_DeactivateGlobal },
{ NULL, NULL }
};
int Luaopen_Cinematic(lua_State *L) {

View file

@ -104,11 +104,11 @@ static int Cvar_rpg_phaserdmg(lua_State *L) {
}
static const luaL_Reg lib_cvar[] = {
{"Integer", Cvar_Integer},
{"Value", Cvar_Value},
{"String", Cvar_String},
{"rpg_phaserdmg", Cvar_rpg_phaserdmg}, // cvar does not exist anymore ... modified function to return the correct information for convinience
{NULL, NULL}
{ "Integer", Cvar_Integer },
{ "Value", Cvar_Value },
{ "String", Cvar_String },
{ "rpg_phaserdmg", Cvar_rpg_phaserdmg }, // cvar does not exist anymore ... modified function to return the correct information for convinience
{ NULL, NULL}
};
int Luaopen_Cvar(lua_State *L) {

View file

@ -4001,285 +4001,285 @@ static int Entity_SetTeammaster(lua_State *L) {
}
static const luaL_Reg Entity_ctor[] = {
{"Spawn", Entity_Spawn},
{"Find", Entity_Find},
{"FindMMB", Entity_FindMMB},
{"FindNumber", Entity_FindNumber},
{"FindBModel", Entity_FindBModel},
{"GetTarget", Entity_GetTarget},
{"MMBRefit", Entity_MMBRefit},
{"CallSpawn", Entity_CallSpawn},
{"DelayedCallSpawn", Entity_DelayedCallSpawn },
{"Remove", Entity_Remove},
{"RemoveUnnamedSpawns", Entity_RemoveUnnamedSpawns},
{"RemoveSpawns", Entity_RemoveSpawns},
{"RemoveType", Entity_RemoveType},
{"Use", Entity_Use},
{NULL, NULL}
{ "Spawn", Entity_Spawn },
{ "Find", Entity_Find },
{ "FindMMB", Entity_FindMMB },
{ "FindNumber", Entity_FindNumber },
{ "FindBModel", Entity_FindBModel },
{ "GetTarget", Entity_GetTarget },
{ "MMBRefit", Entity_MMBRefit },
{ "CallSpawn", Entity_CallSpawn },
{ "DelayedCallSpawn", Entity_DelayedCallSpawn },
{ "Remove", Entity_Remove },
{ "RemoveUnnamedSpawns", Entity_RemoveUnnamedSpawns },
{ "RemoveSpawns", Entity_RemoveSpawns },
{ "RemoveType", Entity_RemoveType },
{ "Use", Entity_Use },
{ NULL, NULL }
};
static const luaL_Reg Entity_meta[] = {
{"__gc", Entity_GC},
{"__tostring", Entity_ToString},
{"GetNumber", Entity_GetNumber},
{"IsClient", Entity_IsClient},
{"GetClientname", Entity_GetClientName},
{"Print", Entity_Print},
{"CenterPrint", Entity_CenterPrint},
{ "__gc", Entity_GC },
{ "__tostring", Entity_ToString },
{ "GetNumber", Entity_GetNumber },
{ "IsClient", Entity_IsClient },
{ "GetClientname", Entity_GetClientName },
{ "Print", Entity_Print },
{ "CenterPrint", Entity_CenterPrint },
{"GetClassname", Entity_GetClassName}, // args: none; return: string
{"SetClassname", Entity_SetClassName}, // args: string; return: nothing
{ "GetClassname", Entity_GetClassName }, // args: none; return: string
{ "SetClassname", Entity_SetClassName }, // args: string; return: nothing
{ "GetTargetname", Entity_GetTargetName }, // args: none; return: string
{ "SetTargetname", Entity_SetTargetName }, // args: string; return: nothing
{"GetTargetname", Entity_GetTargetName}, // args: none; return: string
{"SetTargetname", Entity_SetTargetName}, // args: string; return: nothing
{ "Rotate", Entity_Rotate },
{"Rotate", Entity_Rotate},
{ "IsRocket", Entity_IsRocket },
{ "IsGrenade", Entity_IsGrenade },
{ "Teleport", Entity_Teleport },
{ "SetKeyValue", Entity_SetKeyValue },
{ "GetOrigin", Entity_GetOrigin },
{ "SetupTrigger", Entity_SetupTrigger },
{"IsRocket", Entity_IsRocket},
{"IsGrenade", Entity_IsGrenade},
{"Teleport", Entity_Teleport},
{"SetKeyValue", Entity_SetKeyValue},
{"GetOrigin", Entity_GetOrigin},
{"SetupTrigger", Entity_SetupTrigger},
{ "Lock", Entity_Lock },
{ "Unlock", Entity_Unlock },
{ "IsLocked", Entity_IsLocked },
{"Lock", Entity_Lock},
{"Unlock", Entity_Unlock},
{"IsLocked", Entity_IsLocked},
{ "GetParm", Entity_GetParm },
{ "SetParm", Entity_SetParm },
{"GetParm", Entity_GetParm},
{"SetParm", Entity_SetParm},
{ "GetActivator", Entity_GetActivator }, // args: none; return: ent
{ "SetActivator", Entity_SetActivator }, // args: ent; return: nothing
{"GetActivator", Entity_GetActivator}, // args: none; return: ent
{"SetActivator", Entity_SetActivator}, // args: ent; return: nothing
{ "GetAngle", Entity_GetAngle }, // args: none; return: float
{ "SetAngle", Entity_SetAngle }, // args: float; return: nothing
{"GetAngle", Entity_GetAngle}, // args: none; return: float
{"SetAngle", Entity_SetAngle}, // args: float; return: nothing
{ "GetApos1", Entity_GetApos1 }, // args: none; return: vec
{ "GetApos2", Entity_GetApos2 }, // args: none; return: vec
{"GetApos1", Entity_GetApos1}, // args: none; return: vec
{"GetApos2", Entity_GetApos2}, // args: none; return: vec
{ "SetApos1", Entity_SetApos1 }, // args: vec; return: nothing
{ "SetApos2", Entity_SetApos2 }, // args: vec; return: nothing
{"SetApos1", Entity_SetApos1}, // args: vec; return: nothing
{"SetApos2", Entity_SetApos2}, // args: vec; return: nothing
{ "GetBluename", Entity_GetBluename }, // args: none; return: string
{ "SetBluename", Entity_SetBluename }, // args: string; return: nothing
{"GetBluename", Entity_GetBluename}, // args: none; return: string
{"SetBluename", Entity_SetBluename}, // args: string; return: nothing
{ "GetBluesound", Entity_GetBluesound }, // args: none; return: string
{ "SetBluesound", Entity_SetBluesound }, // args: string; return: nothing
{"GetBluesound", Entity_GetBluesound}, // args: none; return: string
{"SetBluesound", Entity_SetBluesound}, // args: string; return: nothing
{ "GetBooleanstate", Entity_GetBooleanstate }, // args: none; return: bool
{ "SetBooleanstate", Entity_SetBooleanstate }, // args: bool; return: nothing
{"GetBooleanstate", Entity_GetBooleanstate}, // args: none; return: bool
{"SetBooleanstate", Entity_SetBooleanstate}, // args: bool; return: nothing
{ "GetClipmask", Entity_GetClipmask }, // args: none; return: int
{ "SetClipmask", Entity_SetClipmask }, // args: int; return: nothing
{"GetClipmask", Entity_GetClipmask}, // args: none; return: int
{"SetClipmask", Entity_SetClipmask}, // args: int; return: nothing
{ "GetCount", Entity_GetCount }, // args: none; return: int
{ "SetCount", Entity_SetCount }, // args: int; return: nothing
{"GetCount", Entity_GetCount}, // args: none; return: int
{"SetCount", Entity_SetCount}, // args: int; return: nothing
{ "GetDamage", Entity_GetDamage }, // args: none; return: int
{ "SetDamage", Entity_SetDamage }, // args: int; return: nothing
{"GetDamage", Entity_GetDamage}, // args: none; return: int
{"SetDamage", Entity_SetDamage}, // args: int; return: nothing
{ "GetDistance", Entity_GetDistance }, // args: none; return: float
{ "SetDistance", Entity_SetDistance }, // args: float; return: nothing
{"GetDistance", Entity_GetDistance}, // args: none; return: float
{"SetDistance", Entity_SetDistance}, // args: float; return: nothing
{ "GetEnemy", Entity_GetEnemy }, // args: none; return: ent
{ "SetEnemy", Entity_SetEnemy }, // args: ent; return: nothing
{"GetEnemy", Entity_GetEnemy}, // args: none; return: ent
{"SetEnemy", Entity_SetEnemy}, // args: ent; return: nothing
{ "GetEventTime", Entity_GetEventTime }, // args: none; return: int
{ "SetEventTime", Entity_SetEventTime }, // args: int; return: nothing
{"GetEventTime", Entity_GetEventTime}, // args: none; return: int
{"SetEventTime", Entity_SetEventTime}, // args: int; return: nothing
{ "GetFalsename", Entity_GetFalsename }, // args: none; return: string
{ "SetFalsename", Entity_SetFalsename }, // args: string; return: nothing
{"GetFalsename", Entity_GetFalsename}, // args: none; return: string
{"SetFalsename", Entity_SetFalsename}, // args: string; return: nothing
{ "GetTruename", Entity_GetTruename }, // args: none; return: string
{ "SetTruename", Entity_SetTruename }, // args: string; return: nothing
{"GetTruename", Entity_GetTruename}, // args: none; return: string
{"SetTruename", Entity_SetTruename}, // args: string; return: nothing
{ "GetFalsetarget", Entity_GetFalsetarget }, // args: none; return: string
{ "SetFalsetarget", Entity_SetFalsetarget }, // args: string; return: nothing
{"GetFalsetarget", Entity_GetFalsetarget}, // args: none; return: string
{"SetFalsetarget", Entity_SetFalsetarget}, // args: string; return: nothing
{ "GetTruetarget", Entity_GetTruetarget }, // args: none; return: string
{ "SetTruetarget", Entity_SetTruetarget }, // args: string; return: nothing
{"GetTruetarget", Entity_GetTruetarget}, // args: none; return: string
{"SetTruetarget", Entity_SetTruetarget}, // args: string; return: nothing
{ "GetFlags", Entity_GetFlags }, // args: none; return: int
{ "SetFlags", Entity_SetFlags }, // args: int; return: nothing
{"GetFlags", Entity_GetFlags}, // args: none; return: int
{"SetFlags", Entity_SetFlags}, // args: int; return: nothing
{ "GetFreeAfterEvent", Entity_GetFreeAfterEvent }, // args: none; return: bool
{ "SetFreeAfterEvent", Entity_SetFreeAfterEvent }, // args: bool; return: nothing
{"GetFreeAfterEvent", Entity_GetFreeAfterEvent}, // args: none; return: bool
{"SetFreeAfterEvent", Entity_SetFreeAfterEvent}, // args: bool; return: nothing
{ "GetFreetime", Entity_GetFreetime }, // args: none; return: int
{"GetFreetime", Entity_GetFreetime}, // args: none; return: int
{ "GetGreensound", Entity_GetGreensound }, // args: none; return: string
{ "SetGreensound", Entity_SetGreensound }, // args: string; return: nothing
{"GetGreensound", Entity_GetGreensound}, // args: none; return: string
{"SetGreensound", Entity_SetGreensound}, // args: string; return: nothing
{ "GetHealth", Entity_GetHealth }, // args: none; return: int
{ "SetHealth", Entity_SetHealth }, // args: int; return: nothing
{"GetHealth", Entity_GetHealth}, // args: none; return: int
{"SetHealth", Entity_SetHealth}, // args: int; return: nothing
{ "GetInUse", Entity_GetInUse }, // args: none; return: bool
{"GetInUse", Entity_GetInUse}, // args: none; return: bool
{ "GetLastEnemy", Entity_GetLastEnemy }, // args: none; return: ent
{ "SetLastEnemy", Entity_SetLastEnemy }, // args: ent; return: nothing
{ "GetLuaDie", Entity_GetLuaDie }, // args: none; return: string
{ "SetLuaDie", Entity_SetLuaDie }, // args: string; return: nothing
{"GetLastEnemy", Entity_GetLastEnemy}, // args: none; return: ent
{"SetLastEnemy", Entity_SetLastEnemy}, // args: ent; return: nothing
{ "GetLuaEntity", Entity_GetLuaEntity }, // args: none; return: bool
{ "GetLuaFree", Entity_GetLuaFree }, // args: none; return: string
{ "SetLuaFree", Entity_SetLuaFree }, // args: string; return: nothing
{"GetLuaDie", Entity_GetLuaDie}, // args: none; return: string
{"SetLuaDie", Entity_SetLuaDie}, // args: string; return: nothing
{ "GetLuaHurt", Entity_GetLuaHurt }, // args: none; return: string
{ "SetLuaHurt", Entity_SetLuaHurt }, // args: string; return: nothing
{"GetLuaEntity", Entity_GetLuaEntity}, // args: none; return: bool
{ "GetLuaReached", Entity_GetLuaReached }, // args: none; return: string
{ "SetLuaReached", Entity_SetLuaReached }, // args: string; return: nothing
{"GetLuaFree", Entity_GetLuaFree}, // args: none; return: string
{"SetLuaFree", Entity_SetLuaFree}, // args: string; return: nothing
{ "GetLuaReachedAngular", Entity_GetLuaReachedAngular }, // args: none; return: string
{ "SetLuaReachedAngular", Entity_SetLuaReachedAngular }, // args: string; return: nothing
{"GetLuaHurt", Entity_GetLuaHurt}, // args: none; return: string
{"SetLuaHurt", Entity_SetLuaHurt}, // args: string; return: nothing
{ "GetLuaSpawn", Entity_GetLuaSpawn }, // args: none; return: string
{ "SetLuaSpawn", Entity_SetLuaSpawn }, // args: string; return: nothing
{"GetLuaReached", Entity_GetLuaReached}, // args: none; return: string
{"SetLuaReached", Entity_SetLuaReached}, // args: string; return: nothing
{ "GetLuaThink", Entity_GetLuaThink }, // args: none; return: string
{ "SetLuaThink", Entity_SetLuaThink }, // args: string; return: nothing
{"GetLuaReachedAngular", Entity_GetLuaReachedAngular}, // args: none; return: string
{"SetLuaReachedAngular", Entity_SetLuaReachedAngular}, // args: string; return: nothing
{ "GetLuaTouch", Entity_GetLuaTouch }, // args: none; return: string
{ "SetLuaTouch", Entity_SetLuaTouch }, // args: string; return: nothing
{"GetLuaSpawn", Entity_GetLuaSpawn}, // args: none; return: string
{"SetLuaSpawn", Entity_SetLuaSpawn}, // args: string; return: nothing
{ "GetLuaTrigger", Entity_GetLuaTrigger }, // args: none; return: string
{ "SetLuaTrigger", Entity_SetLuaTrigger }, // args: string; return: nothing
{"GetLuaThink", Entity_GetLuaThink}, // args: none; return: string
{"SetLuaThink", Entity_SetLuaThink}, // args: string; return: nothing
{ "GetLuaUse", Entity_GetLuaUse }, // args: none; return: string
{ "SetLuaUse", Entity_SetLuaUse }, // args: string; return: nothing
{"GetLuaTouch", Entity_GetLuaTouch}, // args: none; return: string
{"SetLuaTouch", Entity_SetLuaTouch}, // args: string; return: nothing
{ "GetMessage", Entity_GetMessage }, // args: none; return: string
{ "SetMessage", Entity_SetMessage }, // args: string; return: nothing
{ "GetMethodOfDeath", Entity_GetMethodOfDeath }, // args: none; return: int
{ "SetMethodOfDeath", Entity_SetMethodOfDeath }, // args: int; return: nothing
{"GetLuaTrigger", Entity_GetLuaTrigger}, // args: none; return: string
{"SetLuaTrigger", Entity_SetLuaTrigger}, // args: string; return: nothing
{ "GetModel", Entity_GetModel }, // args: none; return: string
{ "SetModel", Entity_SetModel }, // args: string; return: nothing
{"GetLuaUse", Entity_GetLuaUse}, // args: none; return: string
{"SetLuaUse", Entity_SetLuaUse}, // args: string; return: nothing
{ "GetModel2", Entity_GetModel2 }, // args: none; return: string
{ "SetModel2", Entity_SetModel2 }, // args: string; return: nothing
{"GetMessage", Entity_GetMessage}, // args: none; return: string
{"SetMessage", Entity_SetMessage}, // args: string; return: nothing
{ "GetMovedir", Entity_GetMovedir }, // args: none; return: vec
{ "SetMovedir", Entity_SetMovedir }, // args: vec; return: nothing
{"GetMethodOfDeath", Entity_GetMethodOfDeath}, // args: none; return: int
{"SetMethodOfDeath", Entity_SetMethodOfDeath}, // args: int; return: nothing
{ "GetMoverstate", Entity_GetMoverstate }, // args: none; return: int
{ "SetMoverstate", Entity_SetMoverstate }, // args: int; return: nothing
{"GetModel", Entity_GetModel}, // args: none; return: string
{"SetModel", Entity_SetModel}, // args: string; return: nothing
{ "GetN00bCount", Entity_GetN00bCount }, // args: none; return: int
{ "SetN00bCount", Entity_SetN00bCount }, // args: int; return: nothing
{"GetModel2", Entity_GetModel2}, // args: none; return: string
{"SetModel2", Entity_SetModel2}, // args: string; return: nothing
{ "GetWait", Entity_GetWait }, // args: none; return: int
{ "SetWait", Entity_SetWait }, // args: int; return: nothing
{"GetMovedir", Entity_GetMovedir}, // args: none; return: vec
{"SetMovedir", Entity_SetMovedir}, // args: vec; return: nothing
{ "GetNeverFree", Entity_GetNeverFree }, // args: none; return: bool
{ "SetNeverFree", Entity_SetNeverFree }, // args: bool; return: nothing
{"GetMoverstate", Entity_GetMoverstate}, // args: none; return: int
{"SetMoverstate", Entity_SetMoverstate}, // args: int; return: nothing
{ "GetNextthink", Entity_GetNexthink }, // args: none; return: int
{ "SetNextthink", Entity_SetNexthink }, // args: int; return: nothing
{"GetN00bCount", Entity_GetN00bCount}, // args: none; return: int
{"SetN00bCount", Entity_SetN00bCount}, // args: int; return: nothing
{ "GetNextTrain", Entity_GetNextTrain }, // args: none; return: ent
{ "SetNextTrain", Entity_SetNextTrain }, // args: ent; return: nothing
{"GetWait", Entity_GetWait}, // args: none; return: int
{"SetWait", Entity_SetWait}, // args: int; return: nothing
{ "GetNoiseIndex", Entity_GetNoiseIndex }, // args: none; return: int
{ "SetNoiseIndex", Entity_SetNoiseIndex }, // args: int; return: nothing
{"GetNeverFree", Entity_GetNeverFree}, // args: none; return: bool
{"SetNeverFree", Entity_SetNeverFree}, // args: bool; return: nothing
{ "GetOldHealth", Entity_GetOldHealth }, // args: none; return: int
{ "SetOldHealth", Entity_SetOldHealth }, // args: int; return: nothing
{"GetNextthink", Entity_GetNexthink}, // args: none; return: int
{"SetNextthink", Entity_SetNexthink}, // args: int; return: nothing
{ "GetPaintarget", Entity_GetPaintarget }, // args: none; return: string
{ "SetPaintarget", Entity_SetPaintarget }, // args: string; return: nothing
{"GetNextTrain", Entity_GetNextTrain}, // args: none; return: ent
{"SetNextTrain", Entity_SetNextTrain}, // args: ent; return: nothing
{ "GetPainDebounceTime", Entity_GetPainDebounceTime }, // args: none; return: int
{ "SetPainDebounceTime", Entity_SetPainDebounceTime }, // args: int; return: nothing
{"GetNoiseIndex", Entity_GetNoiseIndex}, // args: none; return: int
{"SetNoiseIndex", Entity_SetNoiseIndex}, // args: int; return: nothing
{ "GetParent", Entity_GetParent }, // args: none; return: ent
{ "SetParent", Entity_SetParent }, // args: ent; return: nothing
{"GetOldHealth", Entity_GetOldHealth}, // args: none; return: int
{"SetOldHealth", Entity_SetOldHealth}, // args: int; return: nothing
{ "GetPhysicsBounce", Entity_GetPhysicsBounce }, // args: none; return: float
{ "SetPhysicsBounce", Entity_SetPhysicsBounce }, // args: float; return: nothing
{"GetPaintarget", Entity_GetPaintarget}, // args: none; return: string
{"SetPaintarget", Entity_SetPaintarget}, // args: string; return: nothing
{ "GetPhysicsObject", Entity_GetPhysicsObject }, // args: none; return: bool
{ "SetPhysicsObject", Entity_SetPhysicsObject }, // args: bool; return: nothing
{"GetPainDebounceTime", Entity_GetPainDebounceTime}, // args: none; return: int
{"SetPainDebounceTime", Entity_SetPainDebounceTime}, // args: int; return: nothing
{ "GetPos1", Entity_GetPos1 }, // args: none; return: vec
{ "SetPos1", Entity_SetPos1 }, // args: vec; return: nothing
{"GetParent", Entity_GetParent}, // args: none; return: ent
{"SetParent", Entity_SetParent}, // args: ent; return: nothing
{ "GetPos2", Entity_GetPos2 }, // args: none; return: vec
{ "SetPos2", Entity_SetPos2 }, // args: vec; return: nothing
{"GetPhysicsBounce", Entity_GetPhysicsBounce}, // args: none; return: float
{"SetPhysicsBounce", Entity_SetPhysicsBounce}, // args: float; return: nothing
{ "GetPrevTrain", Entity_GetPrevTrain }, // args: none; return: ent
{ "SetPrevTrain", Entity_SetPrevTrain }, // args: ent; return: nothing
{"GetPhysicsObject", Entity_GetPhysicsObject}, // args: none; return: bool
{"SetPhysicsObject", Entity_SetPhysicsObject}, // args: bool; return: nothing
{ "GetRandom", Entity_GetRandom }, // args: none; return: float
{ "SetRandom", Entity_SetRandom }, // args: float; return: nothing
{"GetPos1", Entity_GetPos1}, // args: none; return: vec
{"SetPos1", Entity_SetPos1}, // args: vec; return: nothing
{ "GetRedsound", Entity_GetRedsound }, // args: none; return: string
{ "SetRedsound", Entity_SetRedsound }, // args: string; return: nothing
{"GetPos2", Entity_GetPos2}, // args: none; return: vec
{"SetPos2", Entity_SetPos2}, // args: vec; return: nothing
{ "GetSound1To2", Entity_GetSound1To2 }, // args: none; return: int
{ "SetSound1To2", Entity_SetSound1To2 }, // args: int; return: nothing
{"GetPrevTrain", Entity_GetPrevTrain}, // args: none; return: ent
{"SetPrevTrain", Entity_SetPrevTrain}, // args: ent; return: nothing
{ "GetSound2To1", Entity_GetSound2To1 }, // args: none; return: int
{ "SetSound2To1", Entity_SetSound2To1 }, // args: int return: nothing
{"GetRandom", Entity_GetRandom}, // args: none; return: float
{"SetRandom", Entity_SetRandom}, // args: float; return: nothing
{ "GetSoundLoop", Entity_GetSoundLoop }, // args: none; return: int
{ "SetSoundLoop", Entity_SetSoundLoop }, // args: int; return: nothing
{"GetRedsound", Entity_GetRedsound}, // args: none; return: string
{"SetRedsound", Entity_SetRedsound}, // args: string; return: nothing
{ "GetSoundPos1", Entity_GetSoundPos1 }, // args: none; return: int
{ "SetSoundPos1", Entity_SetSoundPos1 }, // args: int; return: nothing
{"GetSound1To2", Entity_GetSound1To2}, // args: none; return: int
{"SetSound1To2", Entity_SetSound1To2}, // args: int; return: nothing
{ "GetSoundPos2", Entity_GetSoundPos2 }, // args: none; return: int
{ "SetSoundPos2", Entity_SetSoundPos2 }, // args: int; return: nothing
{"GetSound2To1", Entity_GetSound2To1}, // args: none; return: int
{"SetSound2To1", Entity_SetSound2To1}, // args: int return: nothing
{ "GetSpawnflags", Entity_GetSpawnflags }, // args: none; return: int
{ "SetSpawnflags", Entity_SetSpawnflags }, // args: int; return: nothing
{"GetSoundLoop", Entity_GetSoundLoop}, // args: none; return: int
{"SetSoundLoop", Entity_SetSoundLoop}, // args: int; return: nothing
{ "GetSpeed", Entity_GetSpeed }, // args: none; return: float
{ "SetSpeed", Entity_SetSpeed }, // args: float; return: nothing
{"GetSoundPos1", Entity_GetSoundPos1}, // args: none; return: int
{"SetSoundPos1", Entity_SetSoundPos1}, // args: int; return: nothing
{ "GetSplashDamage", Entity_GetSplashDamage }, // args: none; return: int
{ "SetSplashDamage", Entity_SetSplashDamage }, // args: int; return: nothing
{"GetSoundPos2", Entity_GetSoundPos2}, // args: none; return: int
{"SetSoundPos2", Entity_SetSoundPos2}, // args: int; return: nothing
{ "GetSplashMethodOfDeath", Entity_GetSplashMethodOfDeath }, // args: none; return: int
{ "SetSplashMethodOfDeath", Entity_SetSplashMethodOfDeath }, // args: int; return: nothing
{"GetSpawnflags", Entity_GetSpawnflags}, // args: none; return: int
{"SetSpawnflags", Entity_SetSpawnflags}, // args: int; return: nothing
{ "GetSplashRadius", Entity_GetSplashRadius }, // args: none; return: int
{ "SetSplashRadius", Entity_SetSplashRadius }, // args: int; return: nothing
{"GetSpeed", Entity_GetSpeed}, // args: none; return: float
{"SetSpeed", Entity_SetSpeed}, // args: float; return: nothing
{ "GetSwapname", Entity_GetSwapname }, // args: none; return: string
{ "SetSwapname", Entity_SetSwapname }, // args: string; return: nothing
{"GetSplashDamage", Entity_GetSplashDamage}, // args: none; return: int
{"SetSplashDamage", Entity_SetSplashDamage}, // args: int; return: nothing
{ "GetTakedamage", Entity_GetTakedamage }, // args: none; return: bool
{ "SetTakedamage", Entity_SetTakedamage }, // args: bool; return: nothing
{"GetSplashMethodOfDeath", Entity_GetSplashMethodOfDeath}, // args: none; return: int
{"SetSplashMethodOfDeath", Entity_SetSplashMethodOfDeath}, // args: int; return: nothing
{ "SetTarget", Entity_SetTarget }, // args: string; return: nothing
{"GetSplashRadius", Entity_GetSplashRadius}, // args: none; return: int
{"SetSplashRadius", Entity_SetSplashRadius}, // args: int; return: nothing
{ "GetTargetname2", Entity_GetTargetname2 }, // args: none; return: string
{ "SetTargetname2", Entity_SetTargetname2 }, // args: string; return: nothing
{"GetSwapname", Entity_GetSwapname}, // args: none; return: string
{"SetSwapname", Entity_SetSwapname}, // args: string; return: nothing
{ "GetTargetShaderName", Entity_GetTargetShaderName }, // args: none; return: string
{ "SetTargetShaderName", Entity_SetTargetShaderName }, // args: string; return: nothing
{"GetTakedamage", Entity_GetTakedamage}, // args: none; return: bool
{"SetTakedamage", Entity_SetTakedamage}, // args: bool; return: nothing
{ "GetTargetShaderNewName", Entity_GetTargetShaderNewName }, // args: none; return: string
{ "SetTargetShaderNewName", Entity_SetTargetShaderNewName }, // args: string; return: nothing
{"SetTarget", Entity_SetTarget}, // args: string; return: nothing
{ "GetTargetEnt", Entity_GetTargetEnt }, // args: none; return: ent
{ "SetTargetEnt", Entity_SetTargetEnt }, // args: ent; return: nothing
{"GetTargetname2", Entity_GetTargetname2}, // args: none; return: string
{"SetTargetname2", Entity_SetTargetname2}, // args: string; return: nothing
{ "GetTeam", Entity_GetTeam }, // args: none; return: string
{ "SetTeam", Entity_SetTeam }, // args: string; return nothing
{"GetTargetShaderName", Entity_GetTargetShaderName}, // args: none; return: string
{"SetTargetShaderName", Entity_SetTargetShaderName}, // args: string; return: nothing
{ "GetTeamchain", Entity_GetTeamchain }, // args: none; return: ent
{ "SetTeamchain", Entity_SetTeamchain }, // args: ent; return: nothing
{"GetTargetShaderNewName", Entity_GetTargetShaderNewName}, // args: none; return: string
{"SetTargetShaderNewName", Entity_SetTargetShaderNewName}, // args: string; return: nothing
{ "GetTeammaster", Entity_GetTeammaster },
{ "SetTeammaster", Entity_SetTeammaster },
{"GetTargetEnt", Entity_GetTargetEnt}, // args: none; return: ent
{"SetTargetEnt", Entity_SetTargetEnt}, // args: ent; return: nothing
{"GetTeam", Entity_GetTeam}, // args: none; return: string
{"SetTeam", Entity_SetTeam}, // args: string; return nothing
{"GetTeamchain", Entity_GetTeamchain}, // args: none; return: ent
{"SetTeamchain", Entity_SetTeamchain}, // args: ent; return: nothing
{"GetTeammaster", Entity_GetTeammaster},
{"SetTeammaster", Entity_SetTeammaster},
{NULL, NULL}
{ NULL, NULL }
};
/*void dummy(gentity_t *ent) {

View file

@ -456,21 +456,21 @@ static int Game_Repair(lua_State *L) {
}
static const luaL_Reg lib_game[] = {
{"Damage", Game_Damage},
{"Repair", Game_Repair},
{"Print", Game_Print},
{"MessagePrint", Game_MessagePrint},
{"CenterPrint", Game_CenterPrint},
{"ClientPrint", Game_ClientPrint},
{"GetTime", Game_Leveltime},
{ "Damage", Game_Damage },
{ "Repair", Game_Repair },
{ "Print", Game_Print },
{ "MessagePrint", Game_MessagePrint },
{ "CenterPrint", Game_CenterPrint },
{ "ClientPrint", Game_ClientPrint },
{ "GetTime", Game_Leveltime },
{"AlertSetup", Game_AlertSetup},
{"AlertAddShader", Game_AlertAddShader},
{"Alert", Game_Alert},
{ "AlertSetup", Game_AlertSetup },
{ "AlertAddShader", Game_AlertAddShader },
{ "Alert", Game_Alert },
{"SetGlobal", Game_SetGlobal},
{"GetGlobal", Game_GetGlobal},
{NULL, NULL}
{ "SetGlobal", Game_SetGlobal },
{ "GetGlobal", Game_GetGlobal },
{ NULL, NULL }
};
int Luaopen_Game(lua_State *L) {

View file

@ -420,16 +420,16 @@ static int Mover_ToPosition(lua_State * L)
}
static const luaL_Reg lib_mover[] = {
{"Halt", Mover_Halt},
{"HaltAngles", Mover_HaltAngles},
{"AsTrain", Mover_AsTrain},
{"SetPosition", Mover_SetPosition},
{"SetOrigin", Mover_SetPosition},
{"ToPosition", Mover_ToPosition},
{"SetAngles", Mover_SetAngles},
{"SetAngles2", Mover_SetAngles2},
{"ToAngles", Mover_ToAngles},
{NULL, NULL}
{ "Halt", Mover_Halt },
{ "HaltAngles", Mover_HaltAngles },
{ "AsTrain", Mover_AsTrain },
{ "SetPosition", Mover_SetPosition },
{ "SetOrigin", Mover_SetPosition },
{ "ToPosition", Mover_ToPosition },
{ "SetAngles", Mover_SetAngles },
{ "SetAngles2", Mover_SetAngles2 },
{ "ToAngles", Mover_ToAngles },
{ NULL, NULL }
};
int Luaopen_Mover(lua_State *L) {

View file

@ -382,35 +382,35 @@ static int Qmath_FLrandom(lua_State * L)
}
static const luaL_Reg lib_qmath[] = {
{"abs", Qmath_Abs},
{"sin", Qmath_Sin},
{"cos", Qmath_Cos},
{"tan", Qmath_Tan},
{"asin", Qmath_Asin},
{"acos", Qmath_Acos},
{"atan", Qmath_Atan},
{"atan2", Qmath_Atan2},
{"ceil", Qmath_Ceil},
{"floor", Qmath_Floor},
{"fmod", Qmath_Fmod},
{"modf", Qmath_Modf},
{"frexp", Qmath_Frexp},
{"ldexp", Qmath_Ldexp},
{"sqrt", Qmath_Sqrt},
{"min", Qmath_Min},
{"max", Qmath_Max},
{"log", Qmath_Log},
{"log10", Qmath_Log10},
{"exp", Qmath_Exp},
{"deg", Qmath_Deg},
{"pow", Qmath_Pow},
{"rad", Qmath_Rad},
{"rand", Qmath_Rand},
{"candom", Qmath_Crandom},
{"random", Qmath_Random},
{"irandom", Qmath_Irandom},
{"flrandom", Qmath_FLrandom},
{NULL, NULL}
{ "abs", Qmath_Abs },
{ "sin", Qmath_Sin },
{ "cos", Qmath_Cos },
{ "tan", Qmath_Tan },
{ "asin", Qmath_Asin },
{ "acos", Qmath_Acos },
{ "atan", Qmath_Atan },
{ "atan2", Qmath_Atan2 },
{ "ceil", Qmath_Ceil },
{ "floor", Qmath_Floor },
{ "fmod", Qmath_Fmod },
{ "modf", Qmath_Modf },
{ "frexp", Qmath_Frexp },
{ "ldexp", Qmath_Ldexp },
{ "sqrt", Qmath_Sqrt },
{ "min", Qmath_Min },
{ "max", Qmath_Max },
{ "log", Qmath_Log },
{ "log10", Qmath_Log10 },
{ "exp", Qmath_Exp },
{ "deg", Qmath_Deg },
{ "pow", Qmath_Pow },
{ "rad", Qmath_Rad },
{ "rand", Qmath_Rand },
{ "candom", Qmath_Crandom },
{ "random", Qmath_Random },
{ "irandom", Qmath_Irandom },
{ "flrandom", Qmath_FLrandom },
{ NULL, NULL }
};
int Luaopen_Qmath(lua_State * L)

View file

@ -34,8 +34,8 @@ static int Sound_PlaySound(lua_State *L) {
}
static const luaL_Reg lib_sound[] = {
{"PlaySound", Sound_PlaySound},
{NULL, NULL}
{ "PlaySound", Sound_PlaySound },
{ NULL, NULL }
};
int Luaopen_Sound(lua_State *L) {

View file

@ -160,23 +160,23 @@ static int Trace_GetEntity(lua_State *L) {
}
static const luaL_Reg lib_trace[] = {
{"DoTrace", Trace_DoTrace},
{"FreeTrace", Trace_FreeTrace},
{NULL, NULL}
{ "DoTrace", Trace_DoTrace },
{ "FreeTrace", Trace_FreeTrace },
{ NULL, NULL }
};
static const luaL_Reg Trace_meta[] = {
{"__gc", Trace_GC},
{"__tostring", Trace_ToString},
{"GetAllsolid", Trace_GetAllsolid},
{"GetStartsolid", Trace_GetStartsolid},
{"GetFraction", Trace_GetFraction},
{"GetEndpos", Trace_GetEndpos},
{"GetSurfaceFlags", Trace_GetSurfaceFlags},
{"GetContents", Trace_GetContents},
{"GetEntityNum", Trace_GetEntityNum},
{"GetEntity", Trace_GetEntity},
{NULL, NULL}
{ "__gc", Trace_GC },
{ "__tostring", Trace_ToString },
{ "GetAllsolid", Trace_GetAllsolid },
{ "GetStartsolid", Trace_GetStartsolid },
{ "GetFraction", Trace_GetFraction },
{ "GetEndpos", Trace_GetEndpos },
{ "GetSurfaceFlags", Trace_GetSurfaceFlags },
{ "GetContents", Trace_GetContents },
{ "GetEntityNum", Trace_GetEntityNum },
{ "GetEntity", Trace_GetEntity },
{ NULL, NULL }
};
int Luaopen_Trace(lua_State *L) {

View file

@ -375,33 +375,33 @@ static int Vector_ToString(lua_State *L) {
}
static const luaL_Reg vector_ctor[] = {
{"New", Vector_New},
{"Construct", Vector_Construct},
{"RotatePointAround", Vector_RotatePointAround},
{"Perpendicular", Vector_Perpendicular},
{"VecToAngles", Vector_VecToAngles },
{"AngleVectors", Vector_AngleVectors },
{NULL, NULL}
{ "New", Vector_New },
{ "Construct", Vector_Construct },
{ "RotatePointAround", Vector_RotatePointAround },
{ "Perpendicular", Vector_Perpendicular },
{ "VecToAngles", Vector_VecToAngles },
{ "AngleVectors", Vector_AngleVectors },
{ NULL, NULL }
};
static const luaL_Reg vector_meta[] = {
{"__index", Vector_Index},
{"__newindex", Vector_NewIndex},
{"__add", Vector_AddOperator},
{"__sub", Vector_SubOperator},
{"__mul", Vector_DotOperator},
{"__unm", Vector_NegateOperator},
{"__gc", Vector_GC},
{"__tostring", Vector_ToString},
{"Set", Vector_Set},
{"Length", Vector_Length},
{"Normalize", Vector_Normalize},
{"NormalizeFast", Vector_NormalizeFast},
{"Add", Vector_Add},
{"Subtract", Vector_Subtract},
{"Scale", Vector_Scale},
{"Clear", Vector_Clear},
{NULL, NULL}
{ "__index", Vector_Index },
{ "__newindex", Vector_NewIndex },
{ "__add", Vector_AddOperator },
{ "__sub", Vector_SubOperator },
{ "__mul", Vector_DotOperator },
{ "__unm", Vector_NegateOperator },
{ "__gc", Vector_GC },
{ "__tostring", Vector_ToString },
{ "Set", Vector_Set },
{ "Length", Vector_Length },
{ "Normalize", Vector_Normalize },
{ "NormalizeFast", Vector_NormalizeFast },
{ "Add", Vector_Add },
{ "Subtract", Vector_Subtract },
{ "Scale", Vector_Scale },
{ "Clear", Vector_Clear },
{NULL, NULL }
};
int Luaopen_Vector(lua_State *L) {

View file

@ -106,12 +106,12 @@ static int weapon_Damage(lua_State *L) {
}
static const luaL_Reg lib_weapons[] = {
{"GetForward", weapon_GetForward},
{"GetRight", weapon_GetRight},
{"GetUp", weapon_GetUp},
{"GetMuzzle", weapon_GetMuzzle},
{"Damage", weapon_Damage},
{NULL, NULL}
{ "GetForward", weapon_GetForward },
{ "GetRight", weapon_GetRight },
{ "GetUp", weapon_GetUp },
{ "GetMuzzle", weapon_GetMuzzle },
{ "Damage", weapon_Damage },
{ NULL, NULL }
};
int Luaopen_Weapons(lua_State *L) {