how to ignore player knockback effect in creative mode
#1
Hi ,

I want to fix bug about player can be knockback by TNT explosion in creative mode.

I checked source code and found explosion use cEntity::AddSpeed method to apply knockback effect.

What I am not sure is this:

is it proper to override AddSpeed method in cPlayer class to ignore knockback effect?
I searched source code, AddSpeed is used for all knockback effect including knockback from mob attack, I am not sure if I miss others that need to call this function in creative mode?

Best regards
Changyong
Reply
Thanks given by:


Messages In This Thread
how to ignore player knockback effect in creative mode - by changyongGuo - 06-26-2018, 11:21 AM



Users browsing this thread: 2 Guest(s)