capturetheflag/mods/ctf/ctf_classes/classes.lua

154 lines
2.8 KiB
Lua
Raw Normal View History

ctf_classes.default_class = "knight"
ctf_classes.register("knight", {
description = "Knight",
2020-07-28 23:46:53 +00:00
pros = { "+50% health points" },
cons = { "-10% speed" },
color = "#ccc",
properties = {
max_hp = 30,
speed = 0.90,
initial_stuff = {
"default:sword_steel",
},
allowed_guns = {
2020-03-14 21:51:24 +00:00
"shooter_guns:pistol",
2020-03-15 18:33:25 +00:00
"shooter_guns:machine_gun",
2020-03-14 21:51:24 +00:00
"shooter_guns:shotgun",
},
},
})
ctf_classes.register("shooter", {
description = "Sharp Shooter",
pros = { "+50% range", "+20% faster shooting" },
cons = {},
color = "#c60",
properties = {
allow_grapples = true,
initial_stuff = {
2020-03-14 21:51:24 +00:00
"shooter_guns:rifle_loaded",
"shooter_hook:grapple_gun_loaded",
},
additional_item_blacklist = {
2020-03-14 21:51:24 +00:00
"shooter_hook:grapple_gun",
"shooter_hook:grapple_hook",
"shooter_guns:rifle",
},
allowed_guns = {
2020-03-14 21:51:24 +00:00
"shooter_guns:pistol",
"shooter_guns:rifle",
2020-03-15 18:33:25 +00:00
"shooter_guns:machine_gun",
2020-03-14 21:51:24 +00:00
"shooter_guns:shotgun",
},
shooter_multipliers = {
range = 1.5,
2020-03-14 21:51:24 +00:00
tool_caps = {
full_punch_interval = 0.8,
},
},
},
})
ctf_classes.register("medic", {
description = "Medic",
pros = { "x2 regen for nearby friendlies", "+10% speed" },
cons = {},
color = "#0af",
properties = {
2020-03-14 19:59:10 +00:00
nearby_hpregen = true,
speed = 1.1,
2020-03-14 19:59:10 +00:00
initial_stuff = {
"ctf_bandages:bandage 50",
},
allowed_guns = {
2020-03-14 21:51:24 +00:00
"shooter_guns:pistol",
2020-03-15 18:33:25 +00:00
"shooter_guns:machine_gun",
2020-03-14 21:51:24 +00:00
"shooter_guns:shotgun",
},
},
})
2020-04-26 05:15:03 +00:00
ctf_classes.register("sniper", {
description = "Sniper",
pros = { "+25% range", "+25% faster shooting" },
2020-08-23 19:09:10 +00:00
cons = {"-50% health points"},
2020-04-26 05:15:03 +00:00
color = "#96a",
properties = {
-- Disallow snipers from capturing flags - they're intended to be support
can_capture = false,
2020-08-23 19:09:10 +00:00
max_hp = 10,
2020-04-26 05:15:03 +00:00
initial_stuff = {
"sniper_rifles:rifle_762_loaded",
"grenades:smoke 2",
"shooter:ammo 3"
},
item_blacklist = {
"sniper_rifles:rifle_762_loaded",
"shooter_grenade:grenade",
},
additional_item_blacklist = {
"sniper_rifles:rifle_762",
"sniper_rifles:rifle_magnum",
"sniper_rifles:rifle_magnum_loaded",
},
allowed_guns = {
"shooter_guns:pistol",
"shooter_guns:machine_gun",
"sniper_rifles:rifle_762",
"sniper_rifles:rifle_magnum"
},
crafting = {
"sniper_rifle:rifle_762",
"sniper_rifle:rifle_magnum"
},
shooter_multipliers = {
range = 1.25,
tool_caps = {
full_punch_interval = 0.75,
},
},
}
})
--[[ctf_classes.register("rocketeer", {
description = "Rocketeer",
pros = { "Can craft rockets" },
cons = {},
color = "#fa0",
properties = {
initial_stuff = {
2020-03-14 21:51:24 +00:00
"shooter_rocket:rocket_gun_loaded",
"shooter_rocket:rocket 4",
},
additional_item_blacklist = {
2020-03-14 21:51:24 +00:00
"shooter_rocket:rocket_gun",
},
allowed_guns = {
2020-03-14 21:51:24 +00:00
"shooter_guns:pistol",
2020-03-15 18:33:25 +00:00
"shooter_guns:machine_gun",
2020-03-14 21:51:24 +00:00
"shooter_guns:shotgun",
},
2020-03-14 22:48:50 +00:00
crafting = {
"shooter_rocket:rocket"
},
},
})]]