2020-03-14 19:56:40 +00:00
|
|
|
ctf_classes.default_class = "knight"
|
|
|
|
|
|
|
|
ctf_classes.register("knight", {
|
|
|
|
description = "Knight",
|
2022-07-01 21:24:57 +00:00
|
|
|
pros = { "* Skilled with swords", "* +50% health points" },
|
|
|
|
cons = { "* -10% speed" },
|
2020-03-14 19:56:40 +00:00
|
|
|
color = "#ccc",
|
|
|
|
properties = {
|
|
|
|
max_hp = 30,
|
|
|
|
speed = 0.90,
|
2020-10-13 15:42:41 +00:00
|
|
|
melee_bonus = 1,
|
2020-03-14 19:56:40 +00:00
|
|
|
|
|
|
|
initial_stuff = {
|
2021-01-06 20:55:35 +00:00
|
|
|
"ctf_classes:sword_bronze",
|
2020-03-14 19:56:40 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
allowed_guns = {
|
2020-03-14 21:51:24 +00:00
|
|
|
"shooter_guns:pistol",
|
|
|
|
"shooter_guns:shotgun",
|
2020-03-14 19:56:40 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
ctf_classes.register("shooter", {
|
|
|
|
description = "Sharp Shooter",
|
2022-07-01 21:24:57 +00:00
|
|
|
pros = { "* Skilled with ranged", "weapons and can", "craft/use sniper rifles"},
|
|
|
|
cons = { "* -20% health points" },
|
2020-03-14 19:56:40 +00:00
|
|
|
color = "#c60",
|
|
|
|
properties = {
|
|
|
|
allow_grapples = true,
|
2020-12-02 22:59:09 +00:00
|
|
|
max_hp = 16,
|
2020-03-14 19:56:40 +00:00
|
|
|
|
|
|
|
initial_stuff = {
|
2020-03-14 21:51:24 +00:00
|
|
|
"shooter_guns:rifle_loaded",
|
|
|
|
"shooter_hook:grapple_gun_loaded",
|
2020-11-15 18:29:38 +00:00
|
|
|
"shooter:ammo 2"
|
|
|
|
},
|
|
|
|
|
|
|
|
item_blacklist = {
|
|
|
|
"shooter_guns:rifle_loaded",
|
|
|
|
"shooter_hook:grapple_gun_loaded",
|
2020-03-14 19:56:40 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
additional_item_blacklist = {
|
2020-03-14 21:51:24 +00:00
|
|
|
"shooter_hook:grapple_gun",
|
|
|
|
"shooter_hook:grapple_hook",
|
|
|
|
"shooter_guns:rifle",
|
2020-03-14 19:56:40 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
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",
|
2020-10-12 15:01:23 +00:00
|
|
|
"sniper_rifles:rifle_762",
|
|
|
|
"sniper_rifles:rifle_magnum"
|
|
|
|
},
|
|
|
|
|
|
|
|
crafting = {
|
|
|
|
"sniper_rifles:rifle_762",
|
|
|
|
"sniper_rifles:rifle_magnum"
|
2020-03-14 19:56:40 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
shooter_multipliers = {
|
|
|
|
range = 1.5,
|
2020-03-14 21:51:24 +00:00
|
|
|
tool_caps = {
|
|
|
|
full_punch_interval = 0.8,
|
|
|
|
},
|
2020-03-14 19:56:40 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
ctf_classes.register("medic", {
|
|
|
|
description = "Medic",
|
2022-07-01 21:24:57 +00:00
|
|
|
pros = { "* x2 regen for nearby", "friendlies", "* Building supplies +", "Paxel", "* +10% speed" },
|
2020-03-14 19:56:40 +00:00
|
|
|
cons = {},
|
|
|
|
color = "#0af",
|
|
|
|
properties = {
|
2020-03-14 19:59:10 +00:00
|
|
|
nearby_hpregen = true,
|
2020-04-30 15:04:23 +00:00
|
|
|
speed = 1.1,
|
2020-03-14 19:59:10 +00:00
|
|
|
|
2020-03-14 19:56:40 +00:00
|
|
|
initial_stuff = {
|
2020-10-24 22:20:16 +00:00
|
|
|
"ctf_bandages:bandage",
|
2021-01-06 20:55:35 +00:00
|
|
|
"ctf_classes:paxel_bronze",
|
2020-10-13 23:23:09 +00:00
|
|
|
"default:cobble 99"
|
|
|
|
},
|
|
|
|
|
|
|
|
item_whitelist = {
|
|
|
|
"default:cobble"
|
2020-03-14 19:56:40 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
allowed_guns = {
|
2020-03-14 21:51:24 +00:00
|
|
|
"shooter_guns:pistol",
|
2020-03-14 19:56:40 +00:00
|
|
|
},
|
2020-10-13 23:23:09 +00:00
|
|
|
|
|
|
|
crafting = {
|
|
|
|
"default:axe_bronze",
|
|
|
|
"default:axe_mese",
|
|
|
|
"default:axe_diamond",
|
|
|
|
"default:shovel_bronze",
|
|
|
|
"default:shovel_mese",
|
|
|
|
"default:shovel_diamond",
|
|
|
|
}
|
2020-03-14 19:56:40 +00:00
|
|
|
},
|
|
|
|
})
|
|
|
|
|
2020-10-12 15:01:23 +00:00
|
|
|
--[[
|
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 = {
|
2020-10-12 15:01:23 +00:00
|
|
|
"sniper_rifles:rifle_762",
|
|
|
|
"sniper_rifles:rifle_magnum"
|
2020-04-26 05:15:03 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
shooter_multipliers = {
|
|
|
|
range = 1.25,
|
|
|
|
tool_caps = {
|
|
|
|
full_punch_interval = 0.75,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
})
|
2020-10-12 15:01:23 +00:00
|
|
|
]]--
|
2020-04-26 05:15:03 +00:00
|
|
|
|
2021-02-07 20:53:20 +00:00
|
|
|
ctf_classes.register("rocketeer", {
|
2020-03-14 19:56:40 +00:00
|
|
|
description = "Rocketeer",
|
2022-07-02 17:00:46 +00:00
|
|
|
pros = { "* Can craft/use rockets" },
|
|
|
|
cons = { "* Can't capture the flag", "* -25% health points" },
|
2020-03-14 19:56:40 +00:00
|
|
|
color = "#fa0",
|
|
|
|
properties = {
|
2021-02-07 20:53:20 +00:00
|
|
|
-- Disallow rocketeers from capturing flags - they're intended to be support
|
|
|
|
can_capture = false,
|
2021-02-15 13:11:08 +00:00
|
|
|
max_hp = 15,
|
2021-04-29 20:20:51 +00:00
|
|
|
allow_rockets = true,
|
2021-02-07 20:53:20 +00:00
|
|
|
|
2020-03-14 19:56:40 +00:00
|
|
|
initial_stuff = {
|
2020-03-14 21:51:24 +00:00
|
|
|
"shooter_rocket:rocket_gun_loaded",
|
2022-07-01 21:24:57 +00:00
|
|
|
"ctf_classes:rocket",
|
|
|
|
"shooter_rocket:rocket 3",
|
2020-03-14 19:56:40 +00:00
|
|
|
},
|
|
|
|
|
2022-07-02 17:00:46 +00:00
|
|
|
item_whitelist = {
|
|
|
|
"shooter_rocket:rocket"
|
|
|
|
},
|
|
|
|
|
2020-03-14 19:56:40 +00:00
|
|
|
additional_item_blacklist = {
|
2020-03-14 21:51:24 +00:00
|
|
|
"shooter_rocket:rocket_gun",
|
2020-03-14 19:56:40 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
allowed_guns = {
|
2020-03-14 21:51:24 +00:00
|
|
|
"shooter_guns:pistol",
|
2020-03-14 19:56:40 +00:00
|
|
|
},
|
2020-03-14 22:48:50 +00:00
|
|
|
|
|
|
|
crafting = {
|
|
|
|
"shooter_rocket:rocket"
|
|
|
|
},
|
2020-03-14 19:56:40 +00:00
|
|
|
},
|
2021-02-07 20:53:20 +00:00
|
|
|
})
|
2022-09-19 12:27:03 +00:00
|
|
|
|
|
|
|
--[[ctf_classes.register("axefighter", {
|
|
|
|
description = "Axe Fighter",
|
|
|
|
pros = { "* Equipped with battleaxe" },
|
|
|
|
cons = {},
|
|
|
|
color = "#96a",
|
|
|
|
properties = {
|
|
|
|
initial_stuff = {
|
|
|
|
"ctf_classes:battleaxe"
|
|
|
|
},
|
|
|
|
|
|
|
|
allowed_guns = {
|
|
|
|
"shooter_guns:pistol",
|
|
|
|
},
|
|
|
|
|
|
|
|
crafting = {
|
|
|
|
"default:axe_bronze",
|
|
|
|
"default:axe_mese",
|
|
|
|
"default:axe_diamond",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
]]--
|