mirror of
https://github.com/a-bad-dev/simple-shooter-game.git
synced 2026-06-15 06:02:33 +00:00
Massive update (#6)
* Refactor some of the code, multiple bug fixes * Fix something stupid * More bug fixes * LOTS OF STUFF * Make the sniper alot stronger and other changes * Prevent Players from respawning in the middle of a match * Fix stupid mistake * Small update * More updates * Remove minimap access.. and downgrade the sniper class
This commit is contained in:
parent
6c26978752
commit
17eeae8937
499 changed files with 616 additions and 225 deletions
33
mods/misc/xcompat/src/gameid.lua
Normal file
33
mods/misc/xcompat/src/gameid.lua
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
local game_alias = {
|
||||
mineclone2 = "mineclonia",
|
||||
}
|
||||
|
||||
local game_modnames = {
|
||||
mineclonia = "mcl_core",
|
||||
farlands_reloaded = "fl_core",
|
||||
minetest = "default",
|
||||
hades = "hades_core",
|
||||
exile = "exile_env_sounds",
|
||||
ksurvive2 = "ks_metals",
|
||||
}
|
||||
|
||||
local gameid = "xcompat_unknown_gameid"
|
||||
|
||||
if type(minetest.get_game_info) == "function" then
|
||||
gameid = minetest.get_game_info().id
|
||||
else
|
||||
for game, modname in pairs(game_modnames) do
|
||||
if minetest.get_modpath(modname) then
|
||||
gameid = game
|
||||
break
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
--for games that are similar/derviatives of other games
|
||||
if game_alias[gameid] then gameid = game_alias[gameid] end
|
||||
|
||||
--while minetest game derviates are not supported, we can still try to detect them
|
||||
if minetest.get_modpath("default") then gameid = "minetest" end
|
||||
|
||||
return gameid
|
||||
Loading…
Add table
Add a link
Reference in a new issue