knockback

User avatar
TenPlus1
Member
Posts: 3728
Joined: Mon Jul 29, 2013 13:38
In-game: TenPlus1
Contact:

Re: knockback

by TenPlus1 » Post

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: 3015
Joined: Sun Jan 18, 2015 13:02
GitHub: ABJ-MV
In-game: ABJ
Location: In Earth orbit, with a perigee of 1048 km and an apogee of 1337 km and an inclination of 69 degrees.

Re: knockback

by ABJ » Post

Hmmmmmm
Wish I were a dev

User avatar
azekill_DIABLO
Member
Posts: 7507
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: knockback

by azekill_DIABLO » Post

orwell wrote:
azekill_DIABLO wrote:The knock up!!! For combos!
Oh yeah!
And a "Force Pull" maybe?
Minetest Kombat 5
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

Byakuren
Member
Posts: 818
Joined: Tue Apr 14, 2015 01:59
GitHub: raymoo
IRC: Hijiri
In-game: Raymoo + Clownpiece

Re: knockback

by Byakuren » Post

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: 83
Joined: Tue Dec 22, 2015 05:04
GitHub: GenshinMT
IRC: Genshin
In-game: Genshin
Location: [REDACTED]
Contact:

Re: knockback

by emperor_genshin » Post

What if someone wants to change knockback value from specific Items?
I'm just a individual who likes to make impressive things. | Current Mod: Dungeon Crawl Maker https://www.youtube.com/watch?v=c6g6H2kLBpg

User avatar
Wuzzy
Member
Posts: 4804
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy
Contact:

Re: knockback

by Wuzzy » Post

Well, for knockback you also certainly want to exactly specify how it is supposed to work.

In Mobs Redo, there is already a knockback, but only for the mobs and it is a very stupid form of knockback.
When you hit a mob, it moves backwards at a constant speed until it suddenly stops. This is so lame if you ask me, but the best approximation whe have now. I also don't want to blame TenPlus1 for this, because mod-created knockback is doomed to be bad anyways, because of lag, etc.
Also, knockback never affects players even in Mobs Redo because you can't set the velocity of players (yet). This sucks.

A knockback should definitely not be like in Mobs Redo but has to be more sophisticated.

Knockback also needs be tweakable by the subgame. I would hate to see hardcoded knockback values. Something like groups have been suggested before, and I kinda want to agree. But these ideas go not far enough.

Important knockback-related values which need to be considered:
1) How much knockback (force) a tool/weapon applies
2) How long it lasts
3) How resistant an entity is against knockback (should also allow for complete knockback immunity)

All 3 should be tweakable on a per-item and per-entity basis to be interesting. There could be weapons with weak knockback, strong knockback or no knockback at all. There could be enemies which are sometimes more, sometimes less affected by knockback, or they could become even immune to knockback. This opens many interesting possibilities.

Then, the question how a successfully applied knockback “wears off”. It clearly must not be like in Mobs Redo, where you have a constant speed and then it suddenly stops. No offense, but this is terrible.
Instead, the knockback should start at a maximum velocity and then smoothly (!) get weaker over time, until the velocity reaches 0 at which the knockback “is over”.

User avatar
TenPlus1
Member
Posts: 3728
Joined: Mon Jul 29, 2013 13:38
In-game: TenPlus1
Contact:

Re: knockback

by TenPlus1 » Post

*fwaps wuzzy with a rubber fish to test knock-back*

User avatar
MineYoshi
Member
Posts: 5373
Joined: Wed Jul 08, 2015 13:20
Contact:

Re: knockback

by MineYoshi » Post

azekill_DIABLO wrote:Image
ask this fish.
xD

Maybe knockback can be a good adding into the game. Of you i better wait until the engine be better and can handle this stuff better.
Have a nice day! :D

User avatar
azekill_DIABLO
Member
Posts: 7507
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: knockback

by azekill_DIABLO » Post

IMHO, less things should be hardcoded into the game it's disturbing when modding.
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests