Add new swim movement pattern

Cleanup useless comments in patterns
This commit is contained in:
sapier 2013-10-03 19:45:13 +02:00
parent abb692a8dd
commit c6e5128a84
6 changed files with 35 additions and 29 deletions

View File

@ -27,11 +27,6 @@ local flight_pattern1_prototype = {
random_jump_initial_speed =0,
random_jump_delay =10,
random_acceleration_change =0.3,
--
-- --run towards player or run away? 1 <-> -1
-- player_attraction =0,
-- --maximum distance a player has an effect
-- player_attraction_range =-1,
}
--!@}

View File

@ -28,12 +28,6 @@ local run_and_jump_low_prototype = {
random_jump_initial_speed =3.5,
random_jump_delay =2,
random_acceleration_change =0.6,
--
-- --run towards player or run away? 1 <-> -1
-- player_attraction =0,
-- --maximum distance a player has an effect
-- player_attraction_range =-1,
}
--!~@}

View File

@ -26,12 +26,6 @@ local stop_and_go_prototype = {
random_jump_initial_speed =0,
random_jump_delay =0,
random_acceleration_change =0.01,
--
-- --run towards player or run away? 1 <-> -1
-- player_attraction =0,
-- --maximum distance a player has an effect
-- player_attraction_range =-1,
}
--!@}

View File

@ -26,12 +26,6 @@ local swim_pattern1_prototype = {
random_jump_initial_speed =0,
random_jump_delay =10,
random_acceleration_change =0.5,
--
-- --run towards player or run away? 1 <-> -1
-- player_attraction =0,
-- --maximum distance a player has an effect
-- player_attraction_range =-1,
}
--!@}

View File

@ -26,12 +26,6 @@ local swim_pattern2_prototype = {
random_jump_initial_speed =0,
random_jump_delay =15,
random_acceleration_change =0.7,
--
-- --run towards player or run away? 1 <-> -1
-- player_attraction =0,
-- --maximum distance a player has an effect
-- player_attraction_range =-1,
}
--!@}

View File

@ -0,0 +1,35 @@
-------------------------------------------------------------------------------
-- 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 swim_pattern1.lua
--! @brief movementpattern for slow swimming mobs
--! @copyright Sapier
--! @author Sapier
--! @date 2012-08-10
--
--! @addtogroup mpatterns
--! @{
-- Contact sapier a t gmx net
-------------------------------------------------------------------------------
--! @struct swim_pattern1_prototype
--! @brief movement pattern for mobs swimming slow
local swim_pattern3_prototype = {
name ="swim_pattern3",
jump_up =0,
random_jump_chance =0.2,
random_jump_initial_speed =0,
random_jump_delay =10,
random_acceleration_change =0.5,
min_height_above_ground = 3
}
--!@}
table.insert(mov_patterns_defined,swim_pattern3_prototype)