MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / GetShotReloadTime

Method GetShotReloadTime

src/lua/LuaCallOuts.cpp:2819–2826  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2817
2818
2819int LuaCallOuts::GetShotReloadTime(lua_State* L) {
2820 const ShotPath* shot = ParseShot(L, 1);
2821 if (shot == NULL) {
2822 return luaL_pushnil(L);
2823 }
2824 lua_pushfloat(L, shot->getReloadTime());
2825 return 1;
2826}
2827
2828
2829int LuaCallOuts::RemoveShot(lua_State* L) {

Callers

nothing calls this directly

Calls 4

ParseShotFunction · 0.85
luaL_pushnilFunction · 0.85
lua_pushfloatFunction · 0.85
getReloadTimeMethod · 0.45

Tested by

no test coverage detected