knockback

User avatar
programmingchicken
Member
 
Posts: 537
Joined: Sat Apr 18, 2015 02:20
GitHub: ProgrammingChicken
IRC: gamer chicken
In-game: gamerdude

knockback

by programmingchicken » Sun Jun 05, 2016 22:39

honestly i don't know why this hasn't been added.
(i'm not just a noob from minecraft)
knockback would be very nice, especially for minigame servers (fish-slap that guy off the island)

i think the devs just put it off once and forgot about it.
I'm bold. I'm sarcastic. I'm PChicken.
 

User avatar
benrob0329
Member
 
Posts: 1192
Joined: Thu Aug 06, 2015 22:39
GitHub: Benrob0329
In-game: benrob03

Re: knockback

by benrob0329 » Sun Jun 05, 2016 22:57

Knockback should be done client side, and tools should be added to the knockback group if they knock the player back.

IMO anyways.
 

User avatar
programmingchicken
Member
 
Posts: 537
Joined: Sat Apr 18, 2015 02:20
GitHub: ProgrammingChicken
IRC: gamer chicken
In-game: gamerdude

Re: knockback

by programmingchicken » Mon Jun 06, 2016 01:09

benrob0329 wrote:Knockback should be done client side, and tools should be added to the knockback group if they knock the player back.

IMO anyways.

no knockback group, just a knockback value
and knockback function to knock people somewhere remotely
I'm bold. I'm sarcastic. I'm PChicken.
 

User avatar
benrob0329
Member
 
Posts: 1192
Joined: Thu Aug 06, 2015 22:39
GitHub: Benrob0329
In-game: benrob03

Re: knockback

by benrob0329 » Mon Jun 06, 2016 18:45

Why not groups? It would be simple, just add your tool to group knockback<value> and then the client can figure out how much knockback, no protocol bump.
 

User avatar
Krock
Member
 
Posts: 3598
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker

Re: knockback

by Krock » Tue Jun 07, 2016 16:22

Would the knockback group define the destination position or how exactly should this work? Troutslap someone and he'll get teleported to the prison?
Currently you can kill a player and it will get teleport to his last used bed/spawn or a random position around spawn. You could even override the item's on_use function to reach the same thing.
Newest Win32 builds - Find a mod - All my mods
ALL YOUR DONATION ARE BELONG TO PARAMAT (Please support him and Minetest)
New DuckDuckGo !bang: !mtmod <keyword here>
 

User avatar
azekill_DIABLO
Member
 
Posts: 3458
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO

Re: knockback

by azekill_DIABLO » Tue Jun 07, 2016 17:14

@krock: he is talking of the minecraft knocback: hit=you are punched back
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
Hi, my username is azekill_DIABLO and i'm an exelent bug-maker(yeah...i know...i have a bad reputation)

azekill_DIABLO said: Mineyoshi+ABJ+Baggins= TOPIC HIJACKED.
My Mods and Stuff | Voxellar | VoxBox on GITHUB | M.I.L.A Monster engine
WEIRD MODDING CONTEST !!!
 

User avatar
programmingchicken
Member
 
Posts: 537
Joined: Sat Apr 18, 2015 02:20
GitHub: ProgrammingChicken
IRC: gamer chicken
In-game: gamerdude

Re: knockback

by programmingchicken » Tue Jun 07, 2016 20:13

Krock wrote:Would the knockback group define the destination position or how exactly should this work? Troutslap someone and he'll get teleported to the prison?
Currently you can kill a player and it will get teleport to his last used bed/spawn or a random position around spawn. You could even override the item's on_use function to reach the same thing.

Knockback, as in being hit backwards.
like being hit by and arrow and falling off a bridge because of knockback.
I'm bold. I'm sarcastic. I'm PChicken.
 

User avatar
orwell
Member
 
Posts: 467
Joined: Wed Jun 24, 2015 18:45
GitHub: orwell96
In-game: orwell

Re: knockback

by orwell » Mon Aug 01, 2016 17:14

benrob0329 wrote:Knockback should be done client side, and tools should be added to the knockback group if they knock the player back.

IMO anyways.

Agree, I would like a group.
Add a poll?
Edit: The corresponding armor group should define knockback resistance, as 100 being fully knocked back and no value being not knocked back at all.
Last edited by orwell on Wed Aug 03, 2016 06:55, edited 1 time in total.
Lua is great!
List of my mods
I like singing. I like dancing. I like ... niyummm...
 

User avatar
Minetestforfun
Member
 
Posts: 936
Joined: Tue Aug 05, 2014 14:09
GitHub: Darcidride
IRC: Darcidride + MinetestForFun
In-game: Darcidride + MinetestForFun

Re: knockback

by Minetestforfun » Mon Aug 01, 2016 17:36

programmingchicken wrote:honestly i don't know why this hasn't been added.
(i'm not just a noob from minecraft)
knockback would be very nice, especially for minigame servers (fish-slap that guy off the island)

i think the devs just put it off once and forgot about it.


+1 For default knockback, and the possibility to disable it if needed
 

User avatar
MineYoshi
Member
 
Posts: 4267
Joined: Wed Jul 08, 2015 13:20
GitHub: MineYosh
IRC: MineYoshi
In-game: Kirby_Retro

Re: knockback

by MineYoshi » Mon Aug 01, 2016 19:06

I like the idea a bit, in some servers can be very useful!

But can be a nice idea have a specific animation for knockback too!
People talk about freedom of speech, so i'll say that God exists.
Open your eyes!! See The big unicorn conspiracy.!! :D The government has been lying to us about unicorns!!
"I've learned there are three things you don't discuss with people: religion, politics and the Great Pumpkin" - Linus Van Pelt
I'm the Officially 1st ABJist in the world ( ͡° ͜ʖ ͡°)
 

User avatar
programmingchicken
Member
 
Posts: 537
Joined: Sat Apr 18, 2015 02:20
GitHub: ProgrammingChicken
IRC: gamer chicken
In-game: gamerdude

Re: knockback

by programmingchicken » Mon Aug 01, 2016 19:58

MineYoshi wrote:I like the idea a bit, in some servers can be very useful!

But can be a nice idea have a specific animation for knockback too!

An animation can be done with another mod.
I'm bold. I'm sarcastic. I'm PChicken.
 

User avatar
azekill_DIABLO
Member
 
Posts: 3458
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO

Re: knockback

by azekill_DIABLO » Tue Aug 02, 2016 13:26

seems like there is already some entity knockback.
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
Hi, my username is azekill_DIABLO and i'm an exelent bug-maker(yeah...i know...i have a bad reputation)

azekill_DIABLO said: Mineyoshi+ABJ+Baggins= TOPIC HIJACKED.
My Mods and Stuff | Voxellar | VoxBox on GITHUB | M.I.L.A Monster engine
WEIRD MODDING CONTEST !!!
 

User avatar
Calinou
Member
 
Posts: 3124
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou

Re: knockback

by Calinou » Tue Aug 02, 2016 13:29

azekill_DIABLO wrote:seems like there is already some entity knockback.


In the engine, there isn't. Not to mention that mod-applied knockback is server-side, without any client-side prediction.
 

User avatar
azekill_DIABLO
Member
 
Posts: 3458
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO

Re: knockback

by azekill_DIABLO » Tue Aug 02, 2016 14:08

no it's just weird, with mobs redo when i puch a mob sometimes he moves back a bit.
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
Hi, my username is azekill_DIABLO and i'm an exelent bug-maker(yeah...i know...i have a bad reputation)

azekill_DIABLO said: Mineyoshi+ABJ+Baggins= TOPIC HIJACKED.
My Mods and Stuff | Voxellar | VoxBox on GITHUB | M.I.L.A Monster engine
WEIRD MODDING CONTEST !!!
 

User avatar
maikerumine
Member
 
Posts: 946
Joined: Mon Aug 04, 2014 14:27
GitHub: maikerumine
In-game: maikerumine

Re: knockback

by maikerumine » Tue Aug 02, 2016 14:26

What if this was written in source code to get tool strength and multiply this into velocity to object being punched to set velocity?

Would this be as easy as it seems? It would be like punching a minecart, but for all entities like mobs, players, and things.
 

User avatar
Calinou
Member
 
Posts: 3124
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou

Re: knockback

by Calinou » Tue Aug 02, 2016 17:40

azekill_DIABLO wrote:no it's just weird, with mobs redo when i puch a mob sometimes he moves back a bit.


That's part of the mod, not the engine, and thus suffers from the caveat I mentioned in the post above.
 

User avatar
orwell
Member
 
Posts: 467
Joined: Wed Jun 24, 2015 18:45
GitHub: orwell96
In-game: orwell

Re: knockback

by orwell » Wed Aug 03, 2016 07:03

maikerumine wrote:What if this was written in source code to get tool strength and multiply this into velocity to object being punched to set velocity?

Would this be as easy as it seems? It would be like punching a minecart, but for all entities like mobs, players, and things.

Please don't calculate it from tool strength! A separate group gives more control and allows funny features ( like a "force push" that does not do any damage but knocks the player back)
I agree that knockback should work for all objects.
Lua is great!
List of my mods
I like singing. I like dancing. I like ... niyummm...
 

User avatar
azekill_DIABLO
Member
 
Posts: 3458
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO

Re: knockback

by azekill_DIABLO » Wed Aug 03, 2016 10:21

orwell wrote:
maikerumine wrote:What if this was written in source code to get tool strength and multiply this into velocity to object being punched to set velocity?

Would this be as easy as it seems? It would be like punching a minecart, but for all entities like mobs, players, and things.

Please don't calculate it from tool strength! A separate group gives more control and allows funny features ( like a "force push" that does not do any damage but knocks the player back)
I agree that knockback should work for all objects.


Yep, totally true. +1
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
Hi, my username is azekill_DIABLO and i'm an exelent bug-maker(yeah...i know...i have a bad reputation)

azekill_DIABLO said: Mineyoshi+ABJ+Baggins= TOPIC HIJACKED.
My Mods and Stuff | Voxellar | VoxBox on GITHUB | M.I.L.A Monster engine
WEIRD MODDING CONTEST !!!
 

User avatar
MineYoshi
Member
 
Posts: 4267
Joined: Wed Jul 08, 2015 13:20
GitHub: MineYosh
IRC: MineYoshi
In-game: Kirby_Retro

Re: knockback

by MineYoshi » Wed Aug 03, 2016 19:31

^ +100
People talk about freedom of speech, so i'll say that God exists.
Open your eyes!! See The big unicorn conspiracy.!! :D The government has been lying to us about unicorns!!
"I've learned there are three things you don't discuss with people: religion, politics and the Great Pumpkin" - Linus Van Pelt
I'm the Officially 1st ABJist in the world ( ͡° ͜ʖ ͡°)
 

User avatar
orwell
Member
 
Posts: 467
Joined: Wed Jun 24, 2015 18:45
GitHub: orwell96
In-game: orwell

Re: knockback

by orwell » Thu Aug 04, 2016 12:12

Lua is great!
List of my mods
I like singing. I like dancing. I like ... niyummm...
 

User avatar
MineYoshi
Member
 
Posts: 4267
Joined: Wed Jul 08, 2015 13:20
GitHub: MineYosh
IRC: MineYoshi
In-game: Kirby_Retro

Re: knockback

by MineYoshi » Thu Aug 04, 2016 20:55

I think, maybe we can add another feature with the knockback...
People talk about freedom of speech, so i'll say that God exists.
Open your eyes!! See The big unicorn conspiracy.!! :D The government has been lying to us about unicorns!!
"I've learned there are three things you don't discuss with people: religion, politics and the Great Pumpkin" - Linus Van Pelt
I'm the Officially 1st ABJist in the world ( ͡° ͜ʖ ͡°)
 

User avatar
azekill_DIABLO
Member
 
Posts: 3458
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO

Re: knockback

by azekill_DIABLO » Fri Aug 05, 2016 09:41

The knock up!!! For combos!
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
Hi, my username is azekill_DIABLO and i'm an exelent bug-maker(yeah...i know...i have a bad reputation)

azekill_DIABLO said: Mineyoshi+ABJ+Baggins= TOPIC HIJACKED.
My Mods and Stuff | Voxellar | VoxBox on GITHUB | M.I.L.A Monster engine
WEIRD MODDING CONTEST !!!
 

User avatar
orwell
Member
 
Posts: 467
Joined: Wed Jun 24, 2015 18:45
GitHub: orwell96
In-game: orwell

Re: knockback

by orwell » Fri Aug 05, 2016 14:47

azekill_DIABLO wrote:The knock up!!! For combos!

Oh yeah!
And a "Force Pull" maybe?
Lua is great!
List of my mods
I like singing. I like dancing. I like ... niyummm...
 

User avatar
MineYoshi
Member
 
Posts: 4267
Joined: Wed Jul 08, 2015 13:20
GitHub: MineYosh
IRC: MineYoshi
In-game: Kirby_Retro

Re: knockback

by MineYoshi » Fri Aug 05, 2016 21:23

That can work!
People talk about freedom of speech, so i'll say that God exists.
Open your eyes!! See The big unicorn conspiracy.!! :D The government has been lying to us about unicorns!!
"I've learned there are three things you don't discuss with people: religion, politics and the Great Pumpkin" - Linus Van Pelt
I'm the Officially 1st ABJist in the world ( ͡° ͜ʖ ͡°)
 

ABJ
Member
 
Posts: 2344
Joined: Sun Jan 18, 2015 13:02
GitHub: ABJ-MV
In-game: ABJ

Re: knockback

by ABJ » Thu Feb 23, 2017 19:11

knockback can be set as punch value for all tools with no value. And maybe we could have a temporary "knockback calculator" mini-app thing so mod devs could calculate knockback for their existing swords based on the ratios used by default.
 

User avatar
TenPlus1
Member
 
Posts: 1874
Joined: Mon Jul 29, 2013 13:38
GitHub: tenplus1

Re: knockback

by TenPlus1 » Fri Feb 24, 2017 07:46

Knockback is in some of the mobs mods but to have it work with players the devs would need to add a missing player:set_velocity() function into the game itself.
 

ABJ
Member
 
Posts: 2344
Joined: Sun Jan 18, 2015 13:02
GitHub: ABJ-MV
In-game: ABJ

Re: knockback

by ABJ » Fri Feb 24, 2017 08:54

Hmmmmmm
Wish I were a dev
 

User avatar
azekill_DIABLO
Member
 
Posts: 3458
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO

Re: knockback

by azekill_DIABLO » Fri Feb 24, 2017 12:15

orwell wrote:
azekill_DIABLO wrote:The knock up!!! For combos!

Oh yeah!
And a "Force Pull" maybe?


Minetest Kombat 5
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
Hi, my username is azekill_DIABLO and i'm an exelent bug-maker(yeah...i know...i have a bad reputation)

azekill_DIABLO said: Mineyoshi+ABJ+Baggins= TOPIC HIJACKED.
My Mods and Stuff | Voxellar | VoxBox on GITHUB | M.I.L.A Monster engine
WEIRD MODDING CONTEST !!!
 

Byakuren
Member
 
Posts: 441
Joined: Tue Apr 14, 2015 01:59
GitHub: raymoo
IRC: Hijiri

Re: knockback

by Byakuren » Sat Feb 25, 2017 06:50

I would prefer an add_impulse function over set_velocity since it will feel more accurate on the client end (no issues with the velocity from get_velocity being too old because of lag)
Every time a mod API is left undocumented, a koala dies.
 

User avatar
emperor_genshin
Member
 
Posts: 32
Joined: Tue Dec 22, 2015 05:04
IRC: Emperor_Genshin
In-game: Emperor_Genshin - Genshin

Re: knockback

by emperor_genshin » Thu Mar 16, 2017 23:00

What if someone wants to change knockback value from specific Items?
Minetest Modder
Server Wanderer

Signature
"I have no words that would do justice to the atrocities you commit to the English language, as well as your continued assaults on the concepts of basic literacy and logical reasoning."

_Tom Gioconda
 

Next

Return to Minetest Features

Who is online

Users browsing this forum: No registered users and 17 guests

cron