Commit Graph

666 Commits (main)

Author SHA1 Message Date
mckaygerhard 1b8bffe6a6 mods - mobs - fix stop mob attacking if mobs attack other mobs and player
* another check nil of position when there is another mob inside range
  of the same attack
2024-04-18 17:15:08 -04:00
mckaygerhard e82e0fa9cc mods - mobs - fix nil when stop mob attacking if player isnt seen when explote
* the positionits not set cos the mobs is not attacking in such time
  seems there is a small amount of time that the actionis not true
* the stop is only after double check , but must be after first also
2024-04-16 16:50:43 -04:00
mckaygerhard e80a4596d8 mods - mobs - fix stop mob attacking if player isnt seen when explode
* the stop is only after double check , but must be after first also
2024-04-16 20:25:23 +00:00
mckaygerhard 03b478fcdd make api compatible with minetesty 0.4 and 5.0 and also multicraft 2.0.3
* stupid tenplus1 does not care others only him. so i sustitute
 the crap of modernish using equivalent to vector.offset that is just
 movement to the collisionbox offset
* more on https://git.minetest.io/minetest-stuffs/minetest-wiki-minenux/src/branch/master/en/backporting/minetest-engine-api.md#vector-offset
* closes #108
2024-04-09 22:16:41 -04:00
mckaygerhard a5fb5d0100 update information and changelog 2024-04-07 23:04:54 -04:00
general e58f20bebb fix default self.state
* backported upstream commit 903b1e34dfe15e0c90b7dee012c9b569f0c0c4a7
2024-04-07 22:58:08 -04:00
general 2276603a13 fix is_inside function error misctake at end with + 2024-04-07 22:57:05 -04:00
general 1cd4884707 mobs:add_mob() can now set mob texture
* backported upstream commit ce47b81da56bba7618f1ab62ede0daaca1b88ced
2024-04-07 22:18:25 -04:00
general 359ad19bf2 check for fire/lava in mob collisionbox area
* backported upstream commit ba79c2f1f14583a87163b0c4bed6a1fe20e0cd5c
2024-04-07 22:07:28 -04:00
general ae003fe323 add spawn check for collisionbox
* backported upstream commit d1f23e8ed848cbe0d7827c19285ff256a78fb6fe
2024-04-07 22:04:49 -04:00
general 81066c8b92 do not regiter mobs if there is not a mob
* backported from undocumented upstream
  commit 812f18430c343c9ac70b83276faa3aabf5a25116
2024-04-07 21:59:29 -04:00
general d0938ff178 property check player object as must be cos engine returns false positives 2024-04-07 21:48:34 -04:00
general d871b18e8f fix and tweak limit mobs reached that player spawns from "code tweaks"
* backport only the tweak of "code tweaks" of
  upstream commit 457eb1838cd1e694052298a42c84cd7b061d809d
  limit mobs reached that player spawns from creative or something
* add the check for player before send the chat msg, missing
  from upstream
2024-04-07 20:52:18 -04:00
general fe3c543136 fix and tweak runaway_timer from "code tweaks"
* backport only the tweak of "code tweaks" of
 upstream commit 457eb1838cd1e694052298a42c84cd7b061d809d
 run away soon and early
2024-04-07 20:48:35 -04:00
general 21cf18990b backport and tweak internal functions and document it
* backported internal fucntions cos the narcisits tenplus1 dont
  property document the changes.. the commit 457eb1838cd1e694052298a42c84cd7b061d809d
  of main master upstream tag has bugs inside changes and undocumented
  changes too, this commit was named "code tweaks" only!
* also backported commit ed74f3c4c4d3f4c7e17127fa26ac4f0adbd2900d
  named "add :is_inside() function (thx cora for idea)" non credited
  in changes
* add global node_ok, effect and yaw_to_pos global deprecated functions for
  backguard compatibility
* add selft mob_class list of functions also is_inside, yaw_to_pos,
  set_velocity
2024-04-07 20:31:25 -04:00
general 8ddc921789 add self.attack_patience to add custom times, add self.attack nil check to pathfinding
* backport commit 9e27f45663cc0c0df0e329bfbcf92466cca2ce3c from upstream
  and fix previous commit of this version that for rare reason mixed only one line
2024-04-07 17:10:38 -04:00
mckaygerhard 7771da2e0a fix autodetect ":" to beginning of entity registration for alias_mob
* commit a4cf246fce has an error, alias
  must be registered with `:MODNAME:obejectname` so if you dont
  add the prefix of `:` the default is the mod class parent, so
  swaping here the sustitution detection, for now..
  this addressed older https://notabug.org/TenPlus1/mobs_redo/issues/154
  fixed in good way, also commit b1ad4451a7
2024-03-30 22:05:02 -04:00
mckaygerhard 910a46b16d fix missing end on the backguar compatibility
* related to the commit c41176b807
  backguard compat 0.4, intlib only for older of tweak for mineclone
  and 5.x, backguard compat 0.4, intlib only for older
2024-03-30 22:00:04 -04:00
general e4623dec52 update information readme 2024-03-30 04:39:17 -04:00
general d76d2d307a harden spawn log message, better fix for nil checks
* reported, closes https://codeberg.org/tenplus1/mobs_redo/issues/1
  referece at https://github.com/Archtec-io/bugtracker/issues/130
  this are not so good so implement in better way.
* related to commit bf79985730cee684a1e11e4b4df0ac140d7e8980
  and commit a62bfe3828bf2d6889a71ab7d906c31641593663
  at bf79985730
  and a62bfe3828
2024-03-30 04:06:07 -04:00
general 4bf2555144 small fix sync with lost commit, cos upstream never document
* backported from "use api functions for riding mob"
  commit 768ef84bd88736d965c659b8b33620e4f90e350e
  as 768ef84bd8
2024-03-30 03:57:49 -04:00
general c876bb63c7 add taming countdown infotext
* do not need to fix knockback cos i do not change
  things constantly, code was already working
2024-03-30 03:53:40 -04:00
general 0a86398377 only show breed infotext if mob can breed
* backported commit e8adf9b244770854f06efc3182f4b804d14d3947
  from e8adf9b244
2024-03-30 03:37:53 -04:00
general 320ca97164 fix nil var stepheight
* backported commit 7f1ad098704f757d873a01568267c94f587cd814
  from 7f1ad09870
2024-03-30 03:34:51 -04:00
general cbfe800342 use self.backup_properties instead of self.initial_properties
* fix math.floor non local use with floor local function
2024-03-30 03:24:56 -04:00
general f0fe65ec50 backport initial properties future use 2024-03-30 03:21:07 -04:00
general c02fdfe5f0 backport the tidy breed function, but dont change working code
* ca2758622c
2024-03-30 02:53:31 -04:00
general 2e691b95dd non-passive mobs fight back when attacked (thx fluxionary)
* backported from commit c48821df0310cfe6459dac50f0f71c68da89ecd4
  at c48821df03
* already include commit 7044e203820b44af90d2ca9bf9c5e1cde4f2df8a
  from 7044e20382
2024-03-30 02:45:00 -04:00
tenplus1 a58be58676 update translation (thanks Niklp)
* backported from notabug but the real PR was deleted
  cos tenplus1 need to be narcissist, petty
  backported commit 3ca3d656cb94836973814fc1ba49ab435319fcea
  from 3ca3d656cb
* backported the fix missing FS
  commit 33c78e87d0f73a32777bc855ff7db59f3c0989bf
  from 33c78e87d0
2024-03-30 02:36:06 -04:00
general 05352a6c25 remove optional depends dye and farming only for 5.x
* cos you know it, tenplus1 like being so narcissist, petty
  only him can figure it on a commit!
  backported 32231d5043
2024-03-30 01:45:33 -04:00
general c41176b807 tweak for mineclone and 5.x, backguard compat 0.4, intlib only for older
* backported commit 131c932aa6
  that will tweak detection of player api for mt5, mineclone2 and mt 0.4
* backported adapted 5e96602085
2024-03-30 01:41:54 -04:00
mckaygerhard a4cf246fce autodetect ":" to beginning of entity registration and auto added if not present
* improves the commit commit b1ad4451a7 that really helps
  to registered external mobs but this could break others
  already implemented.. i mean.. what happened if someone
  already add the ":" prefix? This commit addressed that!
* this close https://notabug.org/TenPlus1/mobs_redo/issues/154
  fixed in good way
2023-08-08 08:31:52 -04:00
mckaygerhard a89c912829 add ":" to beginning of entity registration, but will possible break compatibility
* this its explained at https://notabug.org/TenPlus1/mobs_redo/issues/154
  so next commit will add a workaround that manages both cases
* Merge branch 'master' of https://notabug.org/TenPlus1/mobs_redo into main
2023-08-08 08:21:10 -04:00
tenplus1 b1ad4451a7 add ":" to beginning of entity registration 2023-08-07 08:09:08 +01:00
mckaygerhard a8f447a346 err its better the xclusive player check, minetest api is shit 2023-08-05 22:50:30 -04:00
mckaygerhard 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
mckaygerhard 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
mckaygerhard 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
tenplus1 747af786a8 player nil check for mob attach 2023-07-29 08:34:09 +01:00
mckaygerhard 48230662af fix bad insert extra argument, inherit from older code 2023-07-28 23:25:19 -04:00
mckaygerhard 9ff2e25761 fix missing coma at api.lua table definition 2023-07-28 23:11:18 -04:00
mckaygerhard 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
mckaygerhard 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 8201c165e7 can now ride mobs redo mobs in mineclone2 2023-07-27 12:54:46 +01: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 3106c4c859 change mobs_swing.ogg to mono 2023-07-20 12:25:27 +01:00