e4s-sdk/gamedata/scripts/game_registrator.script
2026-06-17 23:06:51 +03:00

41 lines
932 B
Text

function register(object_factory)
end
function get_game_clsid(game_type_option,is_server)
if(is_server==true) then
if(game_type_option == "single") then
return "SV_SINGL" end
if(game_type_option == "deathmatch") then
return "SV_DM" end
if(game_type_option == "teamdeathmatch") then
return "SV_TDM" end
if(game_type_option == "artefacthunt") then
return "SV_AHUNT" end
if(game_type_option == "capturetheartefact") then
return "SV_CTA" end
end
if(is_server==false) then
if(game_type_option == "single") then
return "CL_SINGL" end
if(game_type_option == "deathmatch") then
return "CL_DM" end
if(game_type_option == "teamdeathmatch") then
return "CL_TDM" end
if(game_type_option == "artefacthunt") then
return "CL_AHUNT" end
if(game_type_option == "capturetheartefact") then
return "CL_CTA" end
end
return ""
end