ctf_classes: Add sniper class

This commit is contained in:
ANAND 2020-04-26 10:45:03 +05:30 committed by ANAND
parent 2268485cdf
commit 21127ddbd6
5 changed files with 48 additions and 3 deletions

View file

@ -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" },

View file

@ -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

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1 KiB