Push Model support for APawn and AWorldSettings

We have locally made some changes to by default make more properties of APawn be replicated using the push based model and would be interested in these changes being integrated directly to the engine. The properties are:

  • PlayerState
  • Controller
  • RemoteViewPitch

Additionally we are also wanting WorldGravityZ in AWorldSettings to be pushed based as well. If this is something that would be good we could produce a PR with our changes. Thank you!

[Attachment Removed]

Hi,

We do have an open internal task to convert the engine’s base classes to fully support push-model replication, and a CVar was recently added to allow ACharacter’s replicated properties to use push-model (Character.IsPushBased). However, with other tasks and bug fixes taking priority, I can’t provide an estimate as to when that work may get done.

If you’d be willing to provide a PR for these changes, we’d be happy to take a look!

Thanks,

Alex

[Attachment Removed]

Hi Alex, apologies for my late response. I can create a PR for this however our changes are not wrapped under a CVar, would this still be alright in this case?

[Attachment Removed]

Hi,

Given that changing APawn to be fully push-based would likely impact many existing projects, I believe a change like this would ideally be wrapped in a CVar to allow these projects to opt-in to the new behavior.

Thanks,

Alex

[Attachment Removed]