how to ignore player knockback effect in creative mode
#3
(06-26-2018, 05:14 PM)NiLSPACE Wrote: Something like this might work:
// If not a player or not in creative mode
if (!a_Entity.IsPlayer() || !static_cast<cPlayer *>(a_Entity).IsGameModeCreative()) {
 a_Entity.AddSpeed(DistanceFromExplosion);
}

But this is kind of violate d[font=微软雅黑]ependency inversion, Maybe we should override method in Player class to ignore knockback?[/font]

[font=微软雅黑]Since there are more knockback effot such as knockback by attach need to fix in creative mode too?[/font]

[font=微软雅黑]I don't know if addSpeed is the right method to modify..[/font]
Reply
Thanks given by:


Messages In This Thread
RE: how to ignore player knockback effect in creative mode - by changyongGuo - 06-26-2018, 08:23 PM



Users browsing this thread: 1 Guest(s)