From e5c3ae4ba0b0210721a1366bdf00f288b60977b7 Mon Sep 17 00:00:00 2001 From: Migdyn Date: Tue, 22 Nov 2022 15:54:42 -0500 Subject: [PATCH] Final version of release 0.2 --- mods/ip_destruction_counter/init.lua | 4 +- mods/ip_people/init.lua | 82 ++++++++++++++++++++++++++- mods/ip_story/init.lua | 9 +-- mods/ip_story/textures/7.png | Bin 13904 -> 13904 bytes mods/ip_story/textures/8.png | Bin 0 -> 5480 bytes 5 files changed, 86 insertions(+), 9 deletions(-) create mode 100644 mods/ip_story/textures/8.png diff --git a/mods/ip_destruction_counter/init.lua b/mods/ip_destruction_counter/init.lua index ae78f68..ff85126 100644 --- a/mods/ip_destruction_counter/init.lua +++ b/mods/ip_destruction_counter/init.lua @@ -34,10 +34,10 @@ minetest.register_on_joinplayer(function(player) hud_elem_type = "text", position = {x = 0.3, y = 0.7}, scale = {x = 0.3, y = 0.5}, - text = "Test", + text = "Destruct-o-meter", number = 0xff3c0a, alignment = {x = 1}, - offset = {x = 0, y = 46}, + offset = {x = 200, y = 46}, }) end) diff --git a/mods/ip_people/init.lua b/mods/ip_people/init.lua index d78118d..d341ed3 100644 --- a/mods/ip_people/init.lua +++ b/mods/ip_people/init.lua @@ -1,12 +1,35 @@ +local peopleSpawned = 0 +minetest.register_abm({ + nodenames = {"main:bricks_stone"}, + interval = 10, + chance = 340, + action = function(pos, node, active_object_count, active_object_count_wider) + if peopleSpawned < 100 then + newPos = {x = pos.x, y = pos.y + 2, z = pos.z} + local i = math.random(0, 7) + if i < 2 then + minetest.add_entity(newPos, "people:female") + + else + minetest.add_entity(newPos, "people:male") + + end + + peopleSpawned = peopleSpawned + 1 + end + end}) + -- People +-- Currently only male and female. +-- No non-binary erasure intended; there just aren't that many non-binary guys in Eastern Europe. mobs:register_mob("people:female", { - type = "monster", - passive = false, + type = "npc", + passive = true, attack_type = "dogfight", pathfinding = true, reach = 2, - damage = 2, + damage = 1, hp_min = 10, hp_max = 15, collisionbox = @@ -39,6 +62,59 @@ mobs:register_mob("people:female", { fall_damage = true, + animation = + { + speed_normal = 30, + speed_run = 50, + stand_start = 0, + stand_end = 79, + walk_start = 168, + walk_end = 187, + run_start = 168, + run_end = 187, + punch_start = 200, + punch_end = 219 + }, +}) + +mobs:register_mob("people:male", { + type = "npc", + passive = true, + attack_type = "dogfight", + pathfinding = true, + reach = 2, + damage = 1, + hp_min = 10, + hp_max = 15, + collisionbox = + { + -.4, 0, -.4, .4, 2, .4 + }, + pushable = true, + visual = "mesh", + mesh = "character.b3d", + textures = + { + {"male_person.png"}, + {"male_person1.png"}, + {"male_person2.png"}, + }, + + makes_footstep_sound = true, + sounds = + { + random = "male_noise", + }, + + walk_velocity = 2, + run_velocity = 8, + jump_height = 1, + stepheight = 0, + floats = 0, + view_range = 45, + fall_damage = true, + + animation = { speed_normal = 30, diff --git a/mods/ip_story/init.lua b/mods/ip_story/init.lua index 18b5169..b688c52 100644 --- a/mods/ip_story/init.lua +++ b/mods/ip_story/init.lua @@ -8,7 +8,7 @@ storyText[3] = "It didn't bother you much until last week when you were watching storyText[4] = "The government started forcefully drafting people into the military." storyText[5] = "You were among the first people to get their draft notice in the mail." storyText[6] = "You were devastated when you realized that you'll be sent away to die in a war that doesn't even concern you." -storyText[7] = "\"I've got nothing to lose at this point, how about I teach those damn bastards a lesson.\", you thought to yourself." +storyText[7] = "\"I've got nothing to lose at this point, how about I teach them a lesson.\", you thought to yourself." storyText[8] = "Click \"Next\" to generate the world." story = {} @@ -48,7 +48,7 @@ minetest.register_on_joinplayer(function(player) player:get_inventory():add_item("main", "more_fire:pipebomb 48") player:get_inventory():add_item("main", "more_fire:molotov_cocktail 48") minetest.setting_set("time_speed", 0) - minetest.set_timeofday(.21) + minetest.set_timeofday(.2) end) @@ -58,9 +58,10 @@ minetest.register_on_newplayer(function(ObjectRef) ObjectRef:set_pos({x = 180, y = 42, z = 145}) end) -minetest.register_on_respawnplayer(function(ObjectRef) +minetest.register_on_respawnplayer(function(player) minetest.after(.1, function() - ObjectRef:set_pos({x = 180, y = 42, z = 145}) + player:set_pos({x = 180, y = 42, z = 145}) + end) end) diff --git a/mods/ip_story/textures/7.png b/mods/ip_story/textures/7.png index cf682b02686e19c4f0e31b610a27434c889d32e8..baec1985cb6c7e2cb103f10664bffd77c0e4cfc5 100644 GIT binary patch delta 31 ncmcbRb0KGfIcFt9D1(RmM;VKW4hrmIA_m5#m&`Y&zcd8^vIYwL delta 31 ncmcbRb0KGfIp;=(28Q@^tY_^eIw-JfFfOjNSD-r zNJ)2d{4T!R^E~Hb@BLf*ay{#6B^VoOQ;@Qd0sugvtD|8G0HA*ev=ih1+w;-}=Kl`J z&s19tsQ$^e`Hx}7`sSKsG;x%)@zit)0Ml!L`3)_7A|6W`Jwp;9YdRxiG801@GgAr+ zV>&5oJ}FxUEAuNhrVI-9OiH!_4(3cKa~6cXkeel&j-!}|H3y%kih;9)ne#0(XC*Q3 z2Uh4iHqI(?zK_D}@7cNDb3i|Ea+gB6K5}zc(+Xhe_#1h7u#5st{Jga+g3W?_pV)-H z2=mv82-I^5e-#(_#wGHNTew?Nu$4!&l~<&v140NBYU2}Y;}`7}5N{V0>t~S~5f=Z> z4jU7d7~qs17ndC5mYI;0`XMDb!7DongAGYbO$xxL1Z5XxVN*izX<_)1obE@; zjHnz=Onz2Tc2-<|83CV@Qdp5zT$NGS=2O{`QThW{+<_~t399Z2tM17w?aCw86%l)i z${Psf{ew0jedjaRKPySRb*%gVfQ}Ar;g4!^XXsOYX$i+IS=_DmYcQbiz+}=elR|S+; zK8Pc9%6k#IXFakoslD}Vx)|%6^Wpr}qYMHaJYLXiKo@XSU~cThze)D5U%2o5r$Avk zW&1(~FZ$+4F}rUHd>>^$dG*dy)$34N1q$S$p8uI3U3m971TPH>7C=c1JvcXYtl+7n zn;U#>)bJ}TX-R9*hz!Zj=qJ|20AhmGP-CS0R7N00XeDX@nZEWwm@_MkmXFTx&4|ZQ>aL5WQj`CJjaR68n>G z7u9Gy8#a_UucYttz$#Swr-{|z2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