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.

making a car

Discussion in 'Programming' started by JiNX, Dec 4, 2001.

  1. usaar33

    usaar33 Un1337

    Joined:
    Mar 25, 2000
    Messages:
    808
    Likes Received:
    0
    Returning to net code.

    I still do not see at all what is so hard.

    I plan to simply base a vehicleServermove() (replicated servermove) on normal servermove(). Only it will replicate the client's current force in each engine, rather than acceleration. In fact viewrotation won't even matter (well..it will if I add weapons ;p). But even with weapons... very simple code. I can even use the normal clientupdateposition code
     
  2. Eater1

    Eater1 Coder

    Joined:
    Oct 22, 2000
    Messages:
    176
    Likes Received:
    0
    Well, is your vehicle a PlayerPawn? If it is, then it shouldn't be too hard. It would be a bit difficult if your vehicle was another class that was fed inputs from the PlayerPawn. As for the wall collisions and the player pawn, it IS called when the player collides with walls at certain angles, but at other angles it's not called... It's... weird...

    Eater.
     
  3. usaar33

    usaar33 Un1337

    Joined:
    Mar 25, 2000
    Messages:
    808
    Likes Received:
    0
    Ah, I never got any hitwalls. Didn't matter though (just checked if location+velocity*deltatime was the same as the location after movesmooth... then the plane would explode ;p)

    No, my car is a decoration that checks its owner's inputs (in VehicleTick(), which is called by ppawn.playertick())

    Hmm... even net code for other clients should be simple :)
     
  4. Eater1

    Eater1 Coder

    Joined:
    Oct 22, 2000
    Messages:
    176
    Likes Received:
    0
    Well, that's how it seems to a lot of people... And then they actually try to do it. Ask Phfoenix (or however you spell it)... The guy that's the lead coder for NeoCairo. I told him too, and he thought it was easy... then he spent 2 months getting it to work.
    Anyway, that velocity checking is great if you're just doing the I_HIT_A_WALL=EXPLODE thing, but for more advanced forms of collision, you'll probably need some way to tell what the normal of the wall you're hitting. I suppose one of those extend trace things would help here.

    Eater.
     
  5. usaar33

    usaar33 Un1337

    Joined:
    Mar 25, 2000
    Messages:
    808
    Likes Received:
    0
    You can't spell Pfhoenix? heh. I chat with him almost everyday.
    Ya, but replication is one of my strengths. I know, mostly, what I'm doing. My physics model is also so complex that it only uses one factor, the force of each engine... the biggest problems always lie with "teh EVIL NATIEVE CODE!!!!!!!!" however. I had so many problems with Valhalla Avatar :/
     
  6. 2COOL4-U

    2COOL4-U New Member

    Joined:
    Mar 17, 2001
    Messages:
    505
    Likes Received:
    0
    I wonder why almost all coders live in America... They're always sleeping when I'm around :eek:
     
  7. Blödsinn machen

    Blödsinn machen cannon fodder

    Joined:
    Dec 4, 2001
    Messages:
    68
    Likes Received:
    0
    hey hey, that's not all so true. plenty of folks here are from someplace else...
     
  8. 2COOL4-U

    2COOL4-U New Member

    Joined:
    Mar 17, 2001
    Messages:
    505
    Likes Received:
    0
    Most of 'em are. I can see you're German. Shag is french. Aspie is australian. Botje is from Belgium
     
  9. +RIP+Botje

    +RIP+Botje New Member

    Joined:
    Dec 8, 2001
    Messages:
    19
    Likes Received:
    0
    Blödsinn machen
    Bite me

    Registered: Dec. 5th, 2001
    Location: Switzerland

    Switzerland is NOT Germany :p
     
  10. 2COOL4-U

    2COOL4-U New Member

    Joined:
    Mar 17, 2001
    Messages:
    505
    Likes Received:
    0
  11. Blödsinn machen

    Blödsinn machen cannon fodder

    Joined:
    Dec 4, 2001
    Messages:
    68
    Likes Received:
    0
    hey, no kidding. it's not as if I enjoy being Swiss...
    but thank god that Switzerland is not Germany, that would spell the end of the world. it sucks here anyway...
     
  12. 2COOL4-U

    2COOL4-U New Member

    Joined:
    Mar 17, 2001
    Messages:
    505
    Likes Received:
    0
    Yeah it was because of your nickname ;).
     
  13. Eater1

    Eater1 Coder

    Joined:
    Oct 22, 2000
    Messages:
    176
    Likes Received:
    0
    Well usaar, all I can say is good luck. When you get the net code for your car working, tell me how long it took :).

    Eater.
     
  14. usaar33

    usaar33 Un1337

    Joined:
    Mar 25, 2000
    Messages:
    808
    Likes Received:
    0
    But I am still a 1337 American :p

    As for net code, sure whenever I get around to coding it. I take one thing at a time and ONP netcode is the least of my worries.
     
  15. 2COOL4-U

    2COOL4-U New Member

    Joined:
    Mar 17, 2001
    Messages:
    505
    Likes Received:
    0
    I wish I lived in the same timezone as you guys :)
     
  16. DavidM

    DavidM Designer

    Joined:
    Oct 28, 1999
    Messages:
    724
    Likes Received:
    0
    *cough*
     
  17. 2COOL4-U

    2COOL4-U New Member

    Joined:
    Mar 17, 2001
    Messages:
    505
    Likes Received:
    0
    ohoh UsA, I think your boss is pissed :rolleyes:
     
  18. usaar33

    usaar33 Un1337

    Joined:
    Mar 25, 2000
    Messages:
    808
    Likes Received:
    0
    lol


    Where the *insert in favorite obcenity* did you come from?
     
    Last edited: Dec 22, 2001
  19. 2COOL4-U

    2COOL4-U New Member

    Joined:
    Mar 17, 2001
    Messages:
    505
    Likes Received:
    0
    Big Brother is watching you :cool:
     
  20. DavidM

    DavidM Designer

    Joined:
    Oct 28, 1999
    Messages:
    724
    Likes Received:
    0
    I have my spys everywhere
     

Share This Page