Add "mob_archer" from "animals_modpack".

master
AntumDeluge 2016-08-04 14:40:26 -07:00
parent 9e6373a2da
commit f47be598b7
14 changed files with 188 additions and 0 deletions

View File

@ -36,6 +36,7 @@ The following mods are also included:
* hostils/ * hostils/
* animal_creeper ([animals_modpack][]) ([CC-BY-SA](mods/hostils/animal_creeper/License.txt)) * animal_creeper ([animals_modpack][]) ([CC-BY-SA](mods/hostils/animal_creeper/License.txt))
* ghost ([Creatures MOB-Engine][cme]) * 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)) * 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)) * [mobs_goblins][] ([CC-BY-SA / CC-BY / CC0](mods/hostils/mobs_goblins/README.md))
* oerrki ([Creatures MOB-Engine][cme]) * oerrki ([Creatures MOB-Engine][cme])

View File

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

View File

@ -0,0 +1,5 @@
default
mob_environments
mobf
intllib?
animal_resources

View File

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

View File

@ -0,0 +1,3 @@
# Translation by Xanthin
Archer = Bogenschuetze

View File

@ -0,0 +1,5 @@
# Spanish translation for Animals Modpack.
# Traducción al español de Animals Modpack.
# Author/Autor: Diego Martínez <kaeza>
Archer = Arquero

View File

@ -0,0 +1,3 @@
# Template
Archer =

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 152 KiB