diff --git a/mods/ctf/ctf_classes/classes.lua b/mods/ctf/ctf_classes/classes.lua index e6e889e..d49e523 100644 --- a/mods/ctf/ctf_classes/classes.lua +++ b/mods/ctf/ctf_classes/classes.lua @@ -45,8 +45,6 @@ ctf_classes.register("shooter", { "shooter_guns:rifle", "shooter_guns:machine_gun", "shooter_guns:shotgun", - "sniper_rifles:rifle_762", - "sniper_rifles:rifle_magnum" }, shooter_multipliers = { @@ -79,6 +77,53 @@ ctf_classes.register("medic", { }, }) +ctf_classes.register("sniper", { + description = "Sniper", + pros = { "+25% range", "+25% faster shooting" }, + cons = {}, + color = "#96a", + properties = { + -- Disallow snipers from capturing flags - they're intended to be support + can_capture = false, + + 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" }, diff --git a/mods/ctf/ctf_classes/mod.conf b/mods/ctf/ctf_classes/mod.conf index f0714a9..cecd372 100644 --- a/mods/ctf/ctf_classes/mod.conf +++ b/mods/ctf/ctf_classes/mod.conf @@ -1,3 +1,3 @@ name = ctf_classes -depends = ctf, ctf_flag, ctf_colors, ctf_map_core, ctf_stats, ctf_bandages, physics, shooter, hpregen, give_initial_stuff, dropondie, crafting +depends = ctf, ctf_flag, ctf_colors, ctf_map_core, ctf_stats, ctf_bandages, physics, shooter, hpregen, give_initial_stuff, dropondie, crafting, sniper_rifles, grenades description = Adds classes, including knight, shooter, and medic diff --git a/mods/ctf/ctf_classes/textures/ctf_classes_skin_sniper_blue.png b/mods/ctf/ctf_classes/textures/ctf_classes_skin_sniper_blue.png new file mode 100644 index 0000000..6625fb7 Binary files /dev/null and b/mods/ctf/ctf_classes/textures/ctf_classes_skin_sniper_blue.png differ diff --git a/mods/ctf/ctf_classes/textures/ctf_classes_skin_sniper_red.png b/mods/ctf/ctf_classes/textures/ctf_classes_skin_sniper_red.png new file mode 100644 index 0000000..c92cba8 Binary files /dev/null and b/mods/ctf/ctf_classes/textures/ctf_classes_skin_sniper_red.png differ diff --git a/mods/ctf/ctf_classes/textures/ctf_classes_sniper.png b/mods/ctf/ctf_classes/textures/ctf_classes_sniper.png new file mode 100644 index 0000000..ac99877 Binary files /dev/null and b/mods/ctf/ctf_classes/textures/ctf_classes_sniper.png differ