0dc95615e5
tidy breed function
2024-03-30 01:17:35 -04:00
b4a943690c
non-passive mobs fight back when attacked (thx fluxionary)
...
* backported commit c48821df03
* the check for player must be already also in the name hitter
* and yeah thanks to fluxionary cos we kjnow tenplus1 is not narcissist, petty
that-s why the commit is only do by itselft and not by merge
* includes commit 7044e20382
cos i allows alrady made commits from others
2024-03-29 19:33:38 -04:00
tenplus1
a0e0719dfe
fix missing FS
2024-03-29 19:18:29 -04:00
11ff8c34be
tweak for mineclone and 5.x
...
* backported from upstream, but still compatible with MT 0.4.X and 5.0pre
2024-03-29 18:40:36 -04:00
a8f447a346
err its better the xclusive player check, minetest api is shit
2023-08-05 22:50:30 -04:00
49a5d903d4
tweak velocity changes, merge from upstream
...
* Merge branch 'master' of https://notabug.org/TenPlus1/mobs_redo into main
2023-08-05 22:47:20 -04:00
93e4bc2268
fix nil node definition in minenux version
2023-08-05 22:47:15 -04:00
tenplus1
af7eafc22c
tweak velocity changes
2023-08-05 18:10:06 +01:00
950115d69e
Merge upstream sync: proper checks of player and mob_log_spawn feature log
...
* Merge upstream 'master' of https://notabug.org/TenPlus1/mobs_redo into main
* proper checks on mount logic
* seems minimized nodes at do_states, add older ones
* 042130baca added 'mob_log_spawn' setting to log mob spawning position
* 747af786a8 player nil check for mob attach 3 days ago
* 8201c165e7 can now ride mobs redo mobs in mineclone2
2023-08-01 10:56:14 -04:00
tenplus1
042130baca
added 'mob_log_spawn' setting to log mob spawning position.
2023-07-30 11:56:08 +01:00
48230662af
fix bad insert extra argument, inherit from older code
2023-07-28 23:25:19 -04:00
9ff2e25761
fix missing coma at api.lua table definition
2023-07-28 23:11:18 -04:00
f12519cd5f
dont force mc2 or faroming, proper checks of player on mount logic
...
* proper checks on mount logic
* do not force mc2 or farming on local items
for craft recipes to work
* seems minimized nodes at do_states, add older ones
2023-07-28 23:05:30 -04:00
90292f9af2
Merge master of upstream https://notabug.org/TenPlus1/mobs_redo into main
...
* can now ride mobs redo mobs in mineclone2 (must be fine tuned)
better MineClone2 compatibility for api, items and crafts
* harder player checks (must be in better way)
add check to see what hit mob, player or entity for immune_to
* monsters will always attack creatura mobs,
anything else will defend it's owner if attacked
* change mobs_swing.ogg to mono
* can now add nodes to 'runaway_from' table
* add damage_per_second nil check
* on_breed spawns child a little higher
* remove htimer, tweak update_tag()
* add mtobjid mod to optional dependencies, stop mob count going
* added check to be sure creatura mod enabled
* if max_light_damage is 16 then use natural light
value to damage mob
* min/max light set to 15, only kill mob with natural light
* better way to reset pause_timer with "stand" order
* pause timer reset, mobs ordered to "stand", fix knockback
* fix group attack anim reset, tidy code
* simplify yaw clamping
2023-07-28 22:13:44 -04:00
tenplus1
07dce8208b
harden is_player checks
2023-07-26 17:43:40 +01:00
tenplus1
e2ee5c62c7
tidy compat
2023-07-26 14:15:03 +01:00
tenplus1
f31cf75b24
better MineClone2 compatibility for api, items and crafts
2023-07-26 13:43:06 +01:00
tenplus1
dcc702848f
can now add nodes to 'runaway_from' table
2023-07-15 08:58:18 +01:00
tenplus1
cc0798b617
add check to see what hit mob, player or entity for immune_to
2023-07-02 17:17:14 +01:00
810b8531f2
remove htimer reference
2023-06-13 14:06:15 -04:00
d3066e2c4b
Update sync upstream 'master' of https://notabug.org/TenPlus1/mobs_redo into main
...
* Fix error api: https://notabug.org/TenPlus1/nssm/issues/18
2023-06-13 13:43:41 -04:00
tenplus1
e32d87c70d
add damage_per_second nil check
2023-06-13 07:58:17 +01:00
tenplus1
cf18cd43de
on_breed spawns child a little higher
2023-06-09 08:32:59 +01:00
a51b1471a6
update api respect upstream remove htimer and tweak update_tag()
2023-06-07 09:37:08 -04:00
tenplus1
70b562c371
remove htimer, tweak update_tag()
2023-06-07 08:21:34 +01:00
8b074b0602
sync upstream master of https://notabug.org/TenPlus1/mobs_redo into main
...
* add mtobjid mod to optional dependencies, stop mob count going below 0
2023-06-06 09:16:40 -04:00
tenplus1
5f80d7a031
add mtobjid mod to optional dependencies, stop mob count going below 0
2023-06-06 08:49:45 +01:00
846275bd52
add nil checks and backguard compatiblity
...
* real fix for https://notabug.org/TenPlus1/mobs_redo/issues/112
use right variable in mount.lua and detect player api
* adapt patch from https://notabug.org/TenPlus1/mobs_redo/issues/114
about the rare rare crash of srt.find never got cause
* check right player privilegies only if player its valid for
when player its really peaceful_player and not only mod flag
* check right player nature when check if mobs can follow
* active mobs its zero event negative amount
fix for https://notabug.org/TenPlus1/mobs_redo/issues/144
2023-06-05 23:25:33 -04:00
0d96b633bf
Merge sync upstream 'master' of https://notabug.org/TenPlus1/mobs_redo into main
...
* pending changes made by mckaygerhard:
* https://notabug.org/TenPlus1/mobs_redo/issues/144 (seems need more)
* https://notabug.org/TenPlus1/mobs_redo/issues/114
* https://notabug.org/TenPlus1/mobs_redo/issues/112
2023-06-05 16:34:21 -04:00
tenplus1
cc71ea4e95
tweak child textures when growing
2023-05-27 19:29:01 +01:00
tenplus1
b42f7c63c8
added check to be sure creatura mod enabled
2023-05-26 16:27:01 +01:00
tenplus1
05f0550876
monsters will always attack creatura mobs, anything else will defend it's owner if attacked.
2023-05-26 16:17:58 +01:00
tenplus1
194c9f7847
added 'mobs_attack_creatura' setting for monsters to attack Creatura mob mobs
2023-05-26 14:04:50 +01:00
tenplus1
267ee57837
fix jumping when on need to
2023-05-24 07:22:36 +01:00
tenplus1
b16eefa0ec
add 'mob_node_timer_interval' and 'mob_main_timer_interval' settings to handle function timings
2023-05-19 08:46:37 +01:00
tenplus1
29bc2f27f2
have separate get_nodes function for nodes around mob, update api.txt
2023-05-18 11:19:28 +01:00
tenplus1
1e3d26937e
tweak do_jump for better blockage checks
2023-05-18 08:53:08 +01:00
tenplus1
ce53afcfdb
when attacking dont call unecessary functions every step
2023-05-17 11:36:55 +01:00
tenplus1
14a3dc83e5
if max_light_damage is 16 then use natural light value to damage mob
2023-05-14 10:44:12 +01:00
tenplus1
9a5d4278ff
if min/max light set to 15, only kill mob with natural light
2023-05-02 08:35:12 +01:00
tenplus1
f5ccec9b60
better way to reset pause_timer with "stand" order
2023-04-27 10:21:31 +01:00
tenplus1
6af671997b
pause timer reset
2023-04-26 09:53:07 +01:00
tenplus1
eb6bc6e349
mobs ordered to "stand", fix knockback
2023-04-26 09:46:57 +01:00
tenplus1
ce9c30949c
fix group attack anim reset, tidy code
2023-04-26 09:16:38 +01:00
tenplus1
6cce24f04e
simplify yaw clamping
2023-04-25 12:54:54 +01:00
tenplus1
4bdd8eaa5f
2nd attempt at clamping yaw to stop spinny mobs
2023-04-23 16:34:35 +01:00
tenplus1
36a26d2d21
code tidy
2023-04-03 11:53:05 +01:00
tenplus1
6b9331064c
add staticdata clean function, update api.txt
2023-04-03 08:08:37 +01:00
tenplus1
407b2e7b56
reset parent movement after baby born
2023-03-31 14:14:43 +01:00
tenplus1
5e67163d09
fix flying mobs sinking into water
2023-03-28 14:11:30 +01:00