Announcement

Collapse
No announcement yet.

Bone resetting problem with an online game

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

  • replied
    It seems even the FragEd Special motorbike has this problem online...

    Leave a comment:


  • replied
    First I'd ascertain whether the reset code is running. Try sticking a Level.Game.Broadcast call that displays the bot's name into the reset code and see if it showed up when you see another bot come off twisted.

    Leave a comment:


  • started a topic Bone resetting problem with an online game

    Bone resetting problem with an online game

    I have this vehicle that uses a bone rotation code, that makes the player look like they're sitting on a motorbike. Anyways, about 70% of the time my bots will have their bones reset to normal, (after getting off the bike ) and other times they are all twisted up. What can I do to make sure they are normal 100% of the time?



    here is my bone rotation code:

    Code:
     
    // added for driver position resetting
    simulated function AttachDriver(Pawn P)
    {
        super.AttachDriver(P);
    
    
       // Pelvis --------------------------------------------------
        PelvisDrive.Yaw=8192;
        P.SetBoneRotation('Bip01 Pelvis',PelvisDrive);
    
        // Head ----------------------------------------------------
        NeckDrive.Yaw=-10000;
        P.SetBoneRotation('Bip01 Head',NeckDrive);
    
        // Spine ---------------------------------------------------
        SpineDrive.Yaw=2048;
        P.SetBoneRotation('Bip01 Spine',SpineDrive);
        //Spine 1
        SpineDrive1.Yaw=2048;
        P.SetBoneRotation('Bip01 Spine1',SpineDrive1);
        //Spine 2
        SpineDrive2.Yaw=2048;
        P.SetBoneRotation('Bip01 Spine2',SpineDrive2);
    And so on like that for more bones. And my reset goes like this:

    Code:
    simulated function DetachDriver(Pawn P)
     {
        // After the player leaves the vehicle, resets its additional bone rotations or else he'll be all twisted
        // Simply resets everything
        // Pelvis --------------------------------------------------
        Driver.SetBoneRotation('Bip01 Pelvis');
        // Head ----------------------------------------------------
        Driver.SetBoneRotation('Bip01 Head');
Working...
X