1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Two Factor Authentication is now available on BeyondUnreal Forums. To configure it, visit your Profile and look for the "Two Step Verification" option on the left side. We can send codes via email (may be slower) or you can set up any TOTP Authenticator app on your phone (Authy, Google Authenticator, etc) to deliver codes. It is highly recommended that you configure this to keep your account safe.

TournamentWeapon question

Discussion in 'Ask a Coder' started by BondJamesBond, Feb 3, 2002.

  1. BondJamesBond

    BondJamesBond New Member

    Joined:
    Sep 23, 2001
    Messages:
    43
    Likes Received:
    0
    Hello to all, and thanks for reading this.

    I have a weapon mesh that is in my mod, and it shoots/reloads just fine, if it weren't for one problem...

    :morety: When I run up to a wall, my weapon is "cut up" the level geometry! I've tried setting the CollisionRadius and CollisionHeight, but it still gets cut the same way!


    Anybody got an idea?
    -Rainbow Six
     
  2. Smoke39

    Smoke39 whatever

    Joined:
    Jun 2, 2001
    Messages:
    1,793
    Likes Received:
    0
    Lower its PlayerViewOffset X to make the gun not stick out as far. Then it won't stick into the level.
     
  3. BondJamesBond

    BondJamesBond New Member

    Joined:
    Sep 23, 2001
    Messages:
    43
    Likes Received:
    0
    OK

    Alright. I'll try it. thx.

    Won't it place my gun out of view?

    -Rainbow Six
     
  4. Smoke39

    Smoke39 whatever

    Joined:
    Jun 2, 2001
    Messages:
    1,793
    Likes Received:
    0
    If you keep the X, Y, and Z axes and PlayerViewScale in proportion it'll look the same.
     
  5. BondJamesBond

    BondJamesBond New Member

    Joined:
    Sep 23, 2001
    Messages:
    43
    Likes Received:
    0
    Not so...

    PlayerViewScale only lets you control the overall scale of the mesh. (X, Y, and Z are always equal.) The PlayerViewOffset does change the position of the mesh. That juz dun't werk. :)

    My first-person mesh has a DrawScale of SEVEN! When you see the gun in the first-person view, it looks like the right size, but in reality it has been scaled up to 256x128x128 ! When Unreal draws it, the gun gets cut off by the level geometry before it visually reaches the wall!! (Abstract enough?)

    MY SOLUTION: Set the CollisionRadius and CollisionHeight to account for the fact that it's HUGE!

    Hey, it's a stab in the misty dark!
    -Rainbow Six
     
  6. Smoke39

    Smoke39 whatever

    Joined:
    Jun 2, 2001
    Messages:
    1,793
    Likes Received:
    0
    That collision stuff doesn't affect the player view mesh. Like I said, lower the X offset to bring it closer to you. Say you cut it in half, then you have to cut the Y and Z values in half to make it appear to be in the same position. Then you have to cut the PlayerViewScale in half to account for it being twice as close to your view, and thus making it appear larger. Did that explain my previous instructions?
     
  7. Postal

    Postal I apear to have lost my pin.

    Joined:
    Nov 14, 1999
    Messages:
    1,388
    Likes Received:
    0
    I hear you have to change the model setting after you make it, before you export it
     
  8. BondJamesBond

    BondJamesBond New Member

    Joined:
    Sep 23, 2001
    Messages:
    43
    Likes Received:
    0
    Hmmm... I get it.

    OK. I'm kinda getting what Smoke39 said. He's right. My stupid idea didn't work, but when I decreased the DrawScale and repositioned my mesh, it didn't cut up.

    Thanks abunch Smoke39 !!

    -Rainbow Six
     
    Last edited by a moderator: Feb 11, 2002
  9. Smoke39

    Smoke39 whatever

    Joined:
    Jun 2, 2001
    Messages:
    1,793
    Likes Received:
    0
    :y5:\¯I am Pork Boy, the Breakfast Monkey! I have taken over Smoke's brain, and will now proceed to manipulate him to destroy all that is blue! Waahahahahaaaa!!

    *BAM!*

    If I catch you knawing on my head again, you stupid monkey, I swear I'm gonna--
    No!
    Bad monkey!
    Bad!
    Sit!

    *BAM!*
    *WHACK!*
    *DAMAGE!*
    *BOOF!*
    *BLARK!*
    *INFLICT PAIN ON!*

    Yes, now where was I? Oh yes, any time, sir. Always happy to help a complete stranger!
     
  10. EasyRaider

    EasyRaider Crazy coder

    Joined:
    Sep 21, 2001
    Messages:
    74
    Likes Received:
    0
  11. Smoke39

    Smoke39 whatever

    Joined:
    Jun 2, 2001
    Messages:
    1,793
    Likes Received:
    0
    I fail to see the relevence of large olive loaf at this time.
     

Share This Page