Announcement

Collapse
No announcement yet.

Modifying the Character class?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Modifying the Character class?

    I think it would be a fun little project to try and get Quake style movement into UE4 similar to what someone else did in Unity (http://www.youtube.com/watch?v=k2VsGbPk0zs) by copying most of bg_pmove.c (https://github.com/id-Software/Quake...ame/bg_pmove.c).

    Now as far as I understand the Character class extends from the Pawn class but adds a bunch of movement features as well as some networking stuff for client side prediction and other fancy network things. Would I be able to modify the Character class in such a way to get the results I want while still getting the benefits of the extra networking functionality or would I have to extend from the Pawn class and write in all that networking stuff myself?

    Just wondering if any people more familiar with the engine could lead me down the correct path to save me some time or tell me whether or not this is possible

    #2
    As far as i know you have the same pre-done movement replication on both APawn:: and ACharacter::.
    Last edited by WCode; 09-29-2014, 04:42 AM. Reason: ::

    Comment


      #3
      Perhaps you're looking for UCharacterMovementComponent's SetMovementMode?? I'm not entirely sure if this would work for your situation or not. Your other choice would be to extend the Character class and override the functions you wish to change. That way everything else stays intact unless you make big changes, which might require modification to the networking functions.

      Comment

      Working...
      X