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.

Laser...

Discussion in 'Ask a Coder' started by FireSlash, Sep 3, 2001.

  1. FireSlash

    FireSlash Whats a FireSlash?

    Joined:
    Feb 3, 2001
    Messages:
    4,300
    Likes Received:
    0
    ok. heres what im trying to do. i want a sniper laser, like the ont in T2 kinda. basically it should be a long, instant, solid beam that fades away... has a infinate range but wont go through walls.

    so, im kinda at a loss of how to do this, how can i make the laser effect? i dont want to spawn dozens of small lasers, as that would create alot of lag. could someone point out how to do this please?:(
     
  2. Postal

    Postal I apear to have lost my pin.

    Joined:
    Nov 14, 1999
    Messages:
    1,388
    Likes Received:
    0
    Best way I see it is to simple modify the shockrifle, its not that laggy, and not too hard.
     
  3. FireSlash

    FireSlash Whats a FireSlash?

    Joined:
    Feb 3, 2001
    Messages:
    4,300
    Likes Received:
    0
    the shock rifle uses a texture that moves forward... not what i had in mind. would it be possible to change the length of a model? IE streach a cylinder from point A to point B?
     
  4. Smoke39

    Smoke39 whatever

    Joined:
    Jun 2, 2001
    Messages:
    1,793
    Likes Received:
    0
    You could make the pieces bigger by increasing their draw scale and decreasing their fatness.
     
  5. FireSlash

    FireSlash Whats a FireSlash?

    Joined:
    Feb 3, 2001
    Messages:
    4,300
    Likes Received:
    0
    wait, the shock rifle might work after all... depends on alot of side things though. ill toy with it, and if i cant get it working ill try somthing else.
    edit> not sure exactly how the projectile works, nevr messed with this kinda weapon before...
     
    Last edited: Sep 3, 2001
  6. Postal

    Postal I apear to have lost my pin.

    Joined:
    Nov 14, 1999
    Messages:
    1,388
    Likes Received:
    0
    Hmm never thought of what Smoke suggested, but thats a good idea.
     
  7. FireSlash

    FireSlash Whats a FireSlash?

    Joined:
    Feb 3, 2001
    Messages:
    4,300
    Likes Received:
    0
    but we could need to know the forumula for fatness to scale it correctly. if someone can dig it up, it would be possible, (but it would need alot of fine tuneing)
     
  8. Smoke39

    Smoke39 whatever

    Joined:
    Jun 2, 2001
    Messages:
    1,793
    Likes Received:
    0
    I didn't actually mean to use one big piece, I meant you could do that to make fewer, larger pieces.
     
  9. TaoPaiPai

    TaoPaiPai Commisaire Van Loc

    Joined:
    Jun 13, 2000
    Messages:
    1,626
    Likes Received:
    0
    fatness is a byte (0<255) and extreme numbers give weird results.
    The shockrifle (and pulsegun altfire) use recursivity.Although I don't like recursivity as a part of my philosophy of coding,they both work well in game.

    method:spawn a little piece of laser material at the end of the gun.This one will in turn spawn at its end another of the same projectile(a child projectile),which in turn ,etc... until either they meet an actor or a certain distance.
     
  10. FireSlash

    FireSlash Whats a FireSlash?

    Joined:
    Feb 3, 2001
    Messages:
    4,300
    Likes Received:
    0
    yes, but wont that create a large amount of lag? since the server has to tell all of the clients that all these 300 some pieces are here? or will it only send the primray projectile and let the client do the rest?
     
  11. Smoke39

    Smoke39 whatever

    Joined:
    Jun 2, 2001
    Messages:
    1,793
    Likes Received:
    0
    Does the pulse gun lag? Or the shock rifle? A shock rifle-like laser would probably lag more than a pulse gun laser, since the shock laser is made of particles, which can get laggy at times.
     
  12. Postal

    Postal I apear to have lost my pin.

    Joined:
    Nov 14, 1999
    Messages:
    1,388
    Likes Received:
    0
    pritty near everything in the game lags somewhat, try playing online in a map that has no textures, one room, and no weapon, you will have a hirer ping, but no fun. yea the shockrifle lags, but its nto bad, dont complain.
     
  13. Smoke39

    Smoke39 whatever

    Joined:
    Jun 2, 2001
    Messages:
    1,793
    Likes Received:
    0
    By "lag" I meant an easily noticable amount of slow-down.
     
  14. Postal

    Postal I apear to have lost my pin.

    Joined:
    Nov 14, 1999
    Messages:
    1,388
    Likes Received:
    0
    I realy should make a Gatling laser.
     
  15. Smoke39

    Smoke39 whatever

    Joined:
    Jun 2, 2001
    Messages:
    1,793
    Likes Received:
    0
  16. FireSlash

    FireSlash Whats a FireSlash?

    Joined:
    Feb 3, 2001
    Messages:
    4,300
    Likes Received:
    0
    umm, yeah, thats all good an well in a DM game with 12 or so people, but in this mod.. 32 player max (engine limit i think) a ingodly number of bots filling in holes, 50 or so structures (as stationary pawns) in that kinda scenerio, lag != good.:rolleyes:
     
  17. Postal

    Postal I apear to have lost my pin.

    Joined:
    Nov 14, 1999
    Messages:
    1,388
    Likes Received:
    0
    Well supply your users with cray super computers.
     
  18. FireSlash

    FireSlash Whats a FireSlash?

    Joined:
    Feb 3, 2001
    Messages:
    4,300
    Likes Received:
    0
    sure, if you would like to pay for them:p
     
  19. Postal

    Postal I apear to have lost my pin.

    Joined:
    Nov 14, 1999
    Messages:
    1,388
    Likes Received:
    0
    *Steals Smoke39 credit card*

    Here you go, make sure to get me one.
     
  20. Smoke39

    Smoke39 whatever

    Joined:
    Jun 2, 2001
    Messages:
    1,793
    Likes Received:
    0
    Hey! You can't do that! Y'know why? Cuz I have no credit card! Haw!
     

Share This Page