add game&rawdata
This commit is contained in:
parent
0133cd976c
commit
49b34b5546
45731 changed files with 709831 additions and 0 deletions
41
gamedata/scripts/game_registrator.script
Normal file
41
gamedata/scripts/game_registrator.script
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue