mirror of
https://github.com/etlegacy/etlegacy-lua-scripts.git
synced 2024-11-23 04:42:22 +00:00
legacy mod cfg files for noq
This commit is contained in:
parent
34d3c9b97c
commit
30e0d83406
4 changed files with 220 additions and 5 deletions
73
noq/legacy_mods.cfg
Normal file
73
noq/legacy_mods.cfg
Normal file
|
@ -0,0 +1,73 @@
|
|||
-- put this file into your noquarter path (fs_homepath)
|
||||
-- never change values here unless you exactly know what you are doing
|
||||
return {
|
||||
-- Table: {1}
|
||||
{
|
||||
[0]="MOD_UNKNOWN",
|
||||
"MOD_MACHINEGUN",
|
||||
"MOD_BROWNING",
|
||||
"MOD_MG42",
|
||||
"MOD_GRENADE",
|
||||
"MOD_KNIFE",
|
||||
"MOD_LUGER",
|
||||
"MOD_COLT",
|
||||
"MOD_MP40",
|
||||
"MOD_THOMPSON",
|
||||
"MOD_STEN",
|
||||
"MOD_GARAND",
|
||||
"MOD_SILENCER",
|
||||
"MOD_FG42",
|
||||
"MOD_FG42SCOPE",
|
||||
"MOD_PANZERFAUST",
|
||||
"MOD_GRENADE_LAUNCHER",
|
||||
"MOD_FLAMETHROWER",
|
||||
"MOD_GRENADE_PINEAPPLE",
|
||||
"MOD_MAPMORTAR",
|
||||
"MOD_MAPMORTAR_SPLASH",
|
||||
"MOD_KICKED",
|
||||
"MOD_DYNAMITE",
|
||||
"MOD_AIRSTRIKE",
|
||||
"MOD_SYRINGE",
|
||||
"MOD_AMMO",
|
||||
"MOD_ARTY",
|
||||
"MOD_WATER",
|
||||
"MOD_SLIME",
|
||||
"MOD_LAVA",
|
||||
"MOD_CRUSH",
|
||||
"MOD_TELEFRAG",
|
||||
"MOD_FALLING",
|
||||
"MOD_SUICIDE",
|
||||
"MOD_TARGET_LASER",
|
||||
"MOD_TRIGGER_HURT",
|
||||
"MOD_EXPLOSIVE",
|
||||
"MOD_CARBINE",
|
||||
"MOD_KAR98",
|
||||
"MOD_GPG40",
|
||||
"MOD_M7",
|
||||
"MOD_LANDMINE",
|
||||
"MOD_SATCHEL",
|
||||
"MOD_SMOKEBOMB",
|
||||
"MOD_MOBILE_MG42",
|
||||
"MOD_SILENCED_COLT",
|
||||
"MOD_GARAND_SCOPE",
|
||||
"MOD_CRUSH_CONSTRUCTION",
|
||||
"MOD_CRUSH_CONSTRUCTIONDEATH",
|
||||
"MOD_CRUSH_CONSTRUCTIONDEATH_NOATTACKER",
|
||||
"MOD_K43",
|
||||
"MOD_K43_SCOPE",
|
||||
"MOD_MORTAR",
|
||||
"MOD_AKIMBO_COLT",
|
||||
"MOD_AKIMBO_LUGER",
|
||||
"MOD_AKIMBO_SILENCEDCOLT",
|
||||
"MOD_AKIMBO_SILENCEDLUGER",
|
||||
"MOD_SMOKEGRENADE",
|
||||
"MOD_SWAP_PLACES",
|
||||
"MOD_SWITCHTEAM",
|
||||
"MOD_SHOVE",
|
||||
"MOD_KNIFE_KABAR",
|
||||
"MOD_MOBILE_BROWNING",
|
||||
"MOD_MORTAR2",
|
||||
"MOD_BAZOOKA",
|
||||
"MOD_NUM_MODS",
|
||||
},
|
||||
}
|
73
noq/legacy_mods_names.cfg
Normal file
73
noq/legacy_mods_names.cfg
Normal file
|
@ -0,0 +1,73 @@
|
|||
-- put this file into your noquarter path (fs_homepath)
|
||||
-- never change values here unless you exactly know what you are doing
|
||||
return {
|
||||
-- Table: {1}
|
||||
{
|
||||
MOD_UNKNOWN=0,
|
||||
MOD_MACHINEGUN=1,
|
||||
MOD_BROWNING=2,
|
||||
MOD_MG42=3,
|
||||
MOD_GRENADE=4,
|
||||
MOD_KNIFE=5,
|
||||
MOD_LUGER=6,
|
||||
MOD_COLT=7,
|
||||
MOD_MP40=8,
|
||||
MOD_THOMPSON=9,
|
||||
MOD_STEN=10,
|
||||
MOD_GARAND=11,
|
||||
MOD_SILENCER=12,
|
||||
MOD_FG42=13,
|
||||
MOD_FG42SCOPE=14,
|
||||
MOD_PANZERFAUST=15,
|
||||
MOD_GRENADE_LAUNCHER=16,
|
||||
MOD_FLAMETHROWER=17,
|
||||
MOD_GRENADE_PINEAPPLE=18,
|
||||
MOD_MAPMORTAR=19,
|
||||
MOD_MAPMORTAR_SPLASH=20,
|
||||
MOD_KICKED=21,
|
||||
MOD_DYNAMITE=22,
|
||||
MOD_AIRSTRIKE=23,
|
||||
MOD_SYRINGE=24,
|
||||
MOD_AMMO=25,
|
||||
MOD_ARTY=26,
|
||||
MOD_WATER=27,
|
||||
MOD_SLIME=28,
|
||||
MOD_LAVA=29,
|
||||
MOD_CRUSH=30,
|
||||
MOD_TELEFRAG=31,
|
||||
MOD_FALLING=32,
|
||||
MOD_SUICIDE=33,
|
||||
MOD_TARGET_LASER=34,
|
||||
MOD_TRIGGER_HURT=35,
|
||||
MOD_EXPLOSIVE=36,
|
||||
MOD_CARBINE=37,
|
||||
MOD_KAR98=38,
|
||||
MOD_GPG40=39,
|
||||
MOD_M7=40,
|
||||
MOD_LANDMINE=41,
|
||||
MOD_SATCHEL=42,
|
||||
MOD_SMOKEBOMB=43,
|
||||
MOD_MOBILE_MG42=44,
|
||||
MOD_SILENCED_COLT=45,
|
||||
MOD_GARAND_SCOPE=46,
|
||||
MOD_CRUSH_CONSTRUCTION=47,
|
||||
MOD_CRUSH_CONSTRUCTIONDEATH=48,
|
||||
MOD_CRUSH_CONSTRUCTIONDEATH_NOATTACKER=49,
|
||||
MOD_K43=50,
|
||||
MOD_K43_SCOPE=51,
|
||||
MOD_MORTAR=52,
|
||||
MOD_AKIMBO_COLT=53,
|
||||
MOD_AKIMBO_LUGER=54,
|
||||
MOD_AKIMBO_SILENCEDCOLT=55,
|
||||
MOD_AKIMBO_SILENCEDLUGER=56,
|
||||
MOD_SMOKEGRENADE=57,
|
||||
MOD_SWAP_PLACES=58,
|
||||
MOD_SWITCHTEAM=59,
|
||||
MOD_SHOVE=60,
|
||||
MOD_KNIFE_KABAR=61,
|
||||
MOD_MOBILE_BROWNING=62,
|
||||
MOD_MORTAR2=63,
|
||||
MOD_BAZOOKA=64,
|
||||
MOD_NUM_MODS=65,
|
||||
},
|
||||
}
|
65
noq/legacy_weapons.cfg
Normal file
65
noq/legacy_weapons.cfg
Normal file
|
@ -0,0 +1,65 @@
|
|||
-- put this file into your noquarter path (fs_homepath)
|
||||
-- never change values here unless you exactly know what you are doing
|
||||
|
||||
-- TODO: We can use better names here
|
||||
|
||||
return {
|
||||
-- Table: {1}
|
||||
{
|
||||
[0]="WP_NONE",
|
||||
"WP_KNIFE",
|
||||
"WP_LUGER",
|
||||
"WP_MP40",
|
||||
"WP_GRENADE_LAUNCHER",
|
||||
"WP_PANZERFAUST",
|
||||
"WP_FLAMETHROWER",
|
||||
"WP_COLT",
|
||||
"WP_THOMPSON",
|
||||
"WP_GRENADE_PINEAPPLE",
|
||||
"WP_STEN",
|
||||
"WP_MEDIC_SYRINGE",
|
||||
"WP_AMMO",
|
||||
"WP_ARTY",
|
||||
"WP_SILENCER",
|
||||
"WP_DYNAMITE",
|
||||
"WP_SMOKETRAIL",
|
||||
"WP_MAPMORTAR",
|
||||
"VERYBIGEXPLOSION",
|
||||
"WP_MEDKIT",
|
||||
"WP_BINOCULARS",
|
||||
"WP_PLIERS",
|
||||
"WP_SMOKE_MARKER",
|
||||
"WP_KAR98",
|
||||
"WP_CARBINE",
|
||||
"WP_GARAND",
|
||||
"WP_LANDMINE",
|
||||
"WP_SATCHEL",
|
||||
"WP_SATCHEL_DET",
|
||||
"WP_SMOKE_BOMB",
|
||||
"WP_MOBILE_MG42",
|
||||
"WP_K43",
|
||||
"WP_FG42",
|
||||
"WP_DUMMY_MG42",
|
||||
"WP_MORTAR",
|
||||
"WP_AKIMBO_COLT",
|
||||
"WP_AKIMBO_LUGER",
|
||||
"WP_GPG40",
|
||||
"WP_M7",
|
||||
"WP_SILENCED_COLT",
|
||||
"WP_GARAND_SCOPE",
|
||||
"WP_K43_SCOPE",
|
||||
"WP_FG42SCOPE",
|
||||
"WP_MORTAR_SET",
|
||||
"WP_MEDIC_ADRENALINE",
|
||||
"WP_AKIMBO_SILENCEDCOLT",
|
||||
"WP_AKIMBO_SILENCEDLUGER",
|
||||
"WP_MOBILE_MG42_SET",
|
||||
"WP_KNIFE_KABAR",
|
||||
"WP_MOBILE_BROWNING",
|
||||
"WP_MOBILE_BROWNING_SET",
|
||||
"WP_MORTAR2",
|
||||
"WP_MORTAR2_SET",
|
||||
"WP_BAZOOKA",
|
||||
"WP_NUM_WEAPONS",
|
||||
},
|
||||
}
|
14
noq/noq.lua
14
noq/noq.lua
|
@ -25,7 +25,7 @@
|
|||
-- SQLite will create a file "noquarter.sqlite" at this location.
|
||||
--
|
||||
-- - Copy the content of this path to fs_homepath/fs_game/nq/noq
|
||||
-- - for example /home/<USER>/.etwolf/nq/noq (default case if fs_homepath is not set by admin)
|
||||
-- - for example /home/<USER>/.etlegacy/legacy/noq (default case if fs_homepath is not set by admin)
|
||||
--
|
||||
-- - Set lua_modules "noq/noq.lua noq/noq_i.lua"
|
||||
--
|
||||
|
@ -154,22 +154,26 @@ end
|
|||
-- at first we need to check for the modversion
|
||||
|
||||
modname = et.trap_Cvar_Get( "gamename" )
|
||||
modprefix = ""
|
||||
|
||||
if modname == "nq" then
|
||||
-- TODO: check for version incompatibilities...
|
||||
--version = et.trap_Cvar_Get( cvarname )
|
||||
modprefix = "noq"
|
||||
elseif modname == "etpro" then
|
||||
--TODO:
|
||||
-- only commands may work - no loadlib:/
|
||||
elseif modname == "legacy" then
|
||||
modprefix = "legacy"
|
||||
end
|
||||
|
||||
et.G_LogPrint("Loading NOQ config from ".. scriptpath.."\n")
|
||||
noqvartable = assert(table.load( scriptpath .. "noq_config.cfg"))
|
||||
-- TODO: check if we can do this in 2 tables
|
||||
meansofdeath = assert(table.load( scriptpath .. "noq_mods.cfg")) -- all MODS
|
||||
weapons = assert(table.load( scriptpath .. "noq_weapons.cfg")) -- all weapons
|
||||
mod = assert(table.load( scriptpath .. "noq_mods_names.cfg")) -- mods by name
|
||||
w = assert(table.load( scriptpath .. "noq_weapons_names.cfg")) -- weapons by name
|
||||
meansofdeath = assert(table.load( scriptpath .. modprefix .. "_mods.cfg")) -- all MODS
|
||||
weapons = assert(table.load( scriptpath .. modprefix .. "_weapons.cfg")) -- all weapons
|
||||
mod = assert(table.load( scriptpath .. modprefix .. "_mods_names.cfg")) -- mods by name
|
||||
w = assert(table.load( scriptpath .. modprefix .. "_weapons_names.cfg")) -- weapons by name
|
||||
-- end TODO
|
||||
greetings = assert(table.load( scriptpath .. "noq_greetings.cfg")) -- all greetings, customize as wished
|
||||
|
||||
|
|
Loading…
Reference in a new issue