diff --git a/README.md b/README.md index 22618812..50ee498a 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,7 @@ The following mods are also included: * hostils/ * animal_creeper ([animals_modpack][]) ([CC-BY-SA](mods/hostils/animal_creeper/License.txt)) * ghost ([Creatures MOB-Engine][cme]) + * mob_archer ([animals_modpack][]) ([CC-BY-SA / CC0](mods/hostils/mob_archer/License.txt)) * mob_shark ([animals_modpack][]) ([CC-BY-SA](mods/hostils/mob_shark/License.txt)) * [mobs_goblins][] ([CC-BY-SA / CC-BY / CC0](mods/hostils/mobs_goblins/README.md)) * oerrki ([Creatures MOB-Engine][cme]) diff --git a/mods/hostils/mob_archer/License.txt b/mods/hostils/mob_archer/License.txt new file mode 100644 index 00000000..aef28569 --- /dev/null +++ b/mods/hostils/mob_archer/License.txt @@ -0,0 +1,9 @@ +Licenses + +CC0: + mob_archer_melee.ogg + mob_archer_shoot.ogg + +Everything not mentioned: + CC-BY-SA 3.0, Author sapier + URL: http://creativecommons.org/licenses/by-sa/3.0/de/legalcode \ No newline at end of file diff --git a/mods/hostils/mob_archer/depends.txt b/mods/hostils/mob_archer/depends.txt new file mode 100644 index 00000000..57bbb753 --- /dev/null +++ b/mods/hostils/mob_archer/depends.txt @@ -0,0 +1,5 @@ +default +mob_environments +mobf +intllib? +animal_resources diff --git a/mods/hostils/mob_archer/init.lua b/mods/hostils/mob_archer/init.lua new file mode 100644 index 00000000..ce686a49 --- /dev/null +++ b/mods/hostils/mob_archer/init.lua @@ -0,0 +1,162 @@ +------------------------------------------------------------------------------- +-- Mob Framework Mod by Sapier +-- +-- You may copy, use, modify or do nearly anything except removing this +-- copyright notice. +-- And of course you are NOT allow to pretend you have written it. +-- +--! @file init.lua +--! @brief npc implementation +--! @copyright Sapier +--! @author Sapier +--! @date 2013-01-27 +-- +-- Contact sapier a t gmx net +------------------------------------------------------------------------------- + +-- Boilerplate to support localized strings if intllib mod is installed. +local S +if (minetest.get_modpath("intllib")) then + dofile(minetest.get_modpath("intllib").."/intllib.lua") + S = intllib.Getter(minetest.get_current_modname()) +else + S = function ( s ) return s end +end + +minetest.log("action","MOD: mob_archer mod loading ...") + +local version = "0.2.1" +local archer_groups = { + not_in_creative_inventory=1 + } + +archer_prototype = { + name="archer", + modname="mob_archer", + + factions = { + member = { + "npc", + "hireling" + } + }, + + generic = { + description= S("Archer"), + base_health=40, + kill_result="", + armor_groups= { + fleshy=75, + }, + groups = archer_groups, + envid="simple_air", + stepheight = 0.51, + }, + movement = { + guardspawnpoint = true, + teleportdelay = 60, + min_accel=0.3, + max_accel=0.7, + max_speed=1.5, + min_speed=0.01, + pattern="stop_and_go", + canfly=false, + max_distance=0.1, + }, + catching = { + tool="animalmaterials:contract", + consumed=true, + }, + combat = { + angryness=0.99, + starts_attack=true, + sun_sensitive=false, + attack_hostile_mobs = true, + melee = { + maxdamage=1, + range=2, + speed=1, + }, + distance = { + attack="animal_resources:arrow_entity", + range=17, + min_range=5, + speed = 1, + balistic = true, + }, + self_destruct = nil, + }, + states = { + { + name = "combat_distance", + movgen = "none", + typical_state_time = 9999, + chance = 0.0, + animation = "shoot", + state_mode = "combat", + }, + { + name = "combat", + movgen = "none", + typical_state_time = 9999, + chance = 0.0, + animation = "punch", + state_mode = "combat", + }, + { + name = "default", + movgen = "follow_mov_gen", + typical_state_time = 180, + chance = 1.00, + animation = "stand", + state_mode = "auto", + graphics_3d = { + visual = "mesh", + mesh = "mob_archer_archer.b3d", + textures = {"mob_archer_archer_mesh.png"}, + collisionbox = {-0.3,-1.0,-0.3, 0.3,0.8,0.3}, + visual_size= {x=1, y=1}, + }, + }, + }, + animation = { + walk = { + start_frame = 168, + end_frame = 187, + basevelocity = 18, + }, + stand = { + start_frame = 0, + end_frame = 79, + }, + punch = { + start_frame = 189, + end_frame = 199, + }, + shoot = { + start_frame = 221, + end_frame = 250, + }, + }, + sound = { + shoot_distance = { + name="mob_archer_shoot", + gain = 0.5, + max_hear_distance = 17, + }, + melee = { + name="mob_archer_meele", + gain = 0.5, + max_hear_distance = 5, + }, + hit = { + name="animal_resources_mattgarkusha_human_male_grunt", + gain = 0.5, + max_hear_distance = 5, + } + }, + } + +minetest.log("action","\tadding mob "..archer_prototype.name) +mobf_add_mob(archer_prototype) +minetest.log("action","MOD: mob_archer mod version " .. version .. " loaded") diff --git a/mods/hostils/mob_archer/locale/de.txt b/mods/hostils/mob_archer/locale/de.txt new file mode 100644 index 00000000..ee94b179 --- /dev/null +++ b/mods/hostils/mob_archer/locale/de.txt @@ -0,0 +1,3 @@ +# Translation by Xanthin + +Archer = Bogenschuetze diff --git a/mods/hostils/mob_archer/locale/es.txt b/mods/hostils/mob_archer/locale/es.txt new file mode 100644 index 00000000..b8710770 --- /dev/null +++ b/mods/hostils/mob_archer/locale/es.txt @@ -0,0 +1,5 @@ +# Spanish translation for Animals Modpack. +# Traducción al español de Animals Modpack. +# Author/Autor: Diego Martínez + +Archer = Arquero diff --git a/mods/hostils/mob_archer/locale/template.txt b/mods/hostils/mob_archer/locale/template.txt new file mode 100644 index 00000000..97dc6a27 --- /dev/null +++ b/mods/hostils/mob_archer/locale/template.txt @@ -0,0 +1,3 @@ +# Template + +Archer = diff --git a/mods/hostils/mob_archer/models/archer.blend b/mods/hostils/mob_archer/models/archer.blend new file mode 100644 index 00000000..fcba7590 Binary files /dev/null and b/mods/hostils/mob_archer/models/archer.blend differ diff --git a/mods/hostils/mob_archer/models/archer.xcf b/mods/hostils/mob_archer/models/archer.xcf new file mode 100644 index 00000000..366eb465 Binary files /dev/null and b/mods/hostils/mob_archer/models/archer.xcf differ diff --git a/mods/hostils/mob_archer/models/mob_archer_archer.b3d b/mods/hostils/mob_archer/models/mob_archer_archer.b3d new file mode 100644 index 00000000..e49b9ab5 Binary files /dev/null and b/mods/hostils/mob_archer/models/mob_archer_archer.b3d differ diff --git a/mods/hostils/mob_archer/sounds/mob_archer_meele.ogg b/mods/hostils/mob_archer/sounds/mob_archer_meele.ogg new file mode 100644 index 00000000..ac055151 Binary files /dev/null and b/mods/hostils/mob_archer/sounds/mob_archer_meele.ogg differ diff --git a/mods/hostils/mob_archer/sounds/mob_archer_shoot.ogg b/mods/hostils/mob_archer/sounds/mob_archer_shoot.ogg new file mode 100644 index 00000000..dbd8e397 Binary files /dev/null and b/mods/hostils/mob_archer/sounds/mob_archer_shoot.ogg differ diff --git a/mods/hostils/mob_archer/textures/mob_archer_archer_item.png b/mods/hostils/mob_archer/textures/mob_archer_archer_item.png new file mode 100644 index 00000000..ccf484de Binary files /dev/null and b/mods/hostils/mob_archer/textures/mob_archer_archer_item.png differ diff --git a/mods/hostils/mob_archer/textures/mob_archer_archer_mesh.png b/mods/hostils/mob_archer/textures/mob_archer_archer_mesh.png new file mode 100644 index 00000000..1f4badf5 Binary files /dev/null and b/mods/hostils/mob_archer/textures/mob_archer_archer_mesh.png differ