ctf_classes: Add sniper class
This commit is contained in:
parent
2268485cdf
commit
21127ddbd6
5 changed files with 48 additions and 3 deletions
|
@ -45,8 +45,6 @@ ctf_classes.register("shooter", {
|
||||||
"shooter_guns:rifle",
|
"shooter_guns:rifle",
|
||||||
"shooter_guns:machine_gun",
|
"shooter_guns:machine_gun",
|
||||||
"shooter_guns:shotgun",
|
"shooter_guns:shotgun",
|
||||||
"sniper_rifles:rifle_762",
|
|
||||||
"sniper_rifles:rifle_magnum"
|
|
||||||
},
|
},
|
||||||
|
|
||||||
shooter_multipliers = {
|
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", {
|
--[[ctf_classes.register("rocketeer", {
|
||||||
description = "Rocketeer",
|
description = "Rocketeer",
|
||||||
pros = { "Can craft rockets" },
|
pros = { "Can craft rockets" },
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
name = ctf_classes
|
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
|
description = Adds classes, including knight, shooter, and medic
|
||||||
|
|
BIN
mods/ctf/ctf_classes/textures/ctf_classes_skin_sniper_blue.png
Normal file
BIN
mods/ctf/ctf_classes/textures/ctf_classes_skin_sniper_blue.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 8.3 KiB |
BIN
mods/ctf/ctf_classes/textures/ctf_classes_skin_sniper_red.png
Normal file
BIN
mods/ctf/ctf_classes/textures/ctf_classes_skin_sniper_red.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 8.5 KiB |
BIN
mods/ctf/ctf_classes/textures/ctf_classes_sniper.png
Normal file
BIN
mods/ctf/ctf_classes/textures/ctf_classes_sniper.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1 KiB |
Loading…
Reference in a new issue