+ Reply to Thread
Page 1 of 3 123 LastLast
Results 1 to 10 of 25

Thread: [E2] Merge first() with duped()

  1. #1
    Wire Amateur flarn2006's Avatar
    Join Date
    Oct 2008
    Posts
    91

    Lightbulb [E2] Merge first() with duped()

    I always see E2 programs with this line:
    Code:
    if (first() | duped())
    Well, I think we should modify the first() command so that it returns true if it was just duped. If you want to know if it was first but not duped, you could use:
    Code:
    if (first() & !duped())
    GENERATION 5: The first time you see this, copy it into your sig on any forum and add 1 to the generation. Social experiment.

  2. #2
    http://somone77.net somone77's Avatar
    Join Date
    Jun 2008
    Location
    <Smart ass location>
    Posts
    614

    Default Re: [E2] Merge first() with duped()

    I don't see the upside to this. You can already do this. Theres no reason to have it.


    No matter how many Z's you put after Plz, you still spell as well as a piece of cheese.

    http://somone77.net

  3. #3
    Wire Sofaking jacoby6000's Avatar
    Join Date
    Feb 2008
    Location
    behind you when you aren't looking
    Posts
    792

    Default Re: [E2] Merge first() with duped()

    I say NO, duped() is used all the time for anti adv duping crap, and sometimes people just don't want their crap to work if someone duplicates it! I know that I always put an if(duped()){selfDestructAll()} on my crap I'm working on... And sometimes ill hide the if duped in the middle of my code somewhere really indented, so if I publish the work peepz can't steel credit and let others dupe it ^_^ not always effective, but useful!
    Quote Originally Posted by Garrysmod View Post
    Warning: You're trying to render in the wrong place. This doesn't play nice with multi-core rendering, so we're not going to let you draw here.
    I'm not stupid!
    In [his] experience that was a sentence never to be uttered except to prove its own inaccuracy
    --Orson Scott Card

  4. #4
    Bug Buster TomyLobo's Avatar
    Join Date
    Feb 2009
    Posts
    2,796

    Default Re: [E2] Merge first() with duped()

    duped and first are very different. in first, everything is zero. in duped, some persistent vars might contain values.
    "It's easy to win forgiveness for being wrong; being right is what gets you into real trouble." - Bjarne Stroustrup

    L&#237;fi&#240; l&#230;&#240;ist l&#250;mskt &#225;fram

  5. #5
    Wire Sofaking feha's Avatar
    Join Date
    Sep 2009
    Location
    Here
    Posts
    1,156

    Default Re: [E2] Merge first() with duped()

    Didnt first() use to work like first() | duped() a few months ago?

    But I myself like the idea, a start() that would be the same as first() | duped().

  6. #6
    Bug Buster TomyLobo's Avatar
    Join Date
    Feb 2009
    Posts
    2,796

    Default Re: [E2] Merge first() with duped()

    first() | duped() also works like first() | duped().
    "It's easy to win forgiveness for being wrong; being right is what gets you into real trouble." - Bjarne Stroustrup

    L&#237;fi&#240; l&#230;&#240;ist l&#250;mskt &#225;fram

  7. #7
    Wire Amateur flarn2006's Avatar
    Join Date
    Oct 2008
    Posts
    91

    Default Re: [E2] Merge first() with duped()

    Quote Originally Posted by feha View Post
    Didnt first() use to work like first() | duped() a few months ago?

    But I myself like the idea, a start() that would be the same as first() | duped().
    That's an even better idea. Keep first() as it is, but add a new function.
    GENERATION 5: The first time you see this, copy it into your sig on any forum and add 1 to the generation. Social experiment.

  8. #8
    Wire Sofaking Asphid's Avatar
    Join Date
    Oct 2008
    Location
    In a house.
    Posts
    1,023

    Default Re: [E2] Merge first() with duped()

    Why on earth would you want a function that does what already exists?
    <Anticept>Will sex for food.
    <Beer>peanus, I like that
    <nath2008uk>I must play with black peanus
    <Jat Goodwin>i like the underage one
    <Black Phoenix>He's a good pedo

  9. #9
    Wire Amateur flarn2006's Avatar
    Join Date
    Oct 2008
    Posts
    91

    Default Re: [E2] Merge first() with duped()

    Quote Originally Posted by Asphid_Jackal View Post
    Why on earth would you want a function that does what already exists?
    More convenient, and besides, it couldn't hurt.
    GENERATION 5: The first time you see this, copy it into your sig on any forum and add 1 to the generation. Social experiment.

  10. #10
    ส็็็็็็็็็็็็็็็็ส็็ ็็็็็ Dav1d's Avatar
    Join Date
    May 2009
    Posts
    1,118

    Default Re: [E2] Merge first() with duped()

    I fail to see why this is necessary.
    Typing " | " isn't hard.
    Stop being lazy.
    :hammer:

+ Reply to Thread
Page 1 of 3 123 LastLast

Similar Threads

  1. Issues with first() and duped()
    By thirty9th in forum Expression 2 Discussion & Help
    Replies: 9
    Last Post: 07-09-2009, 02:42 PM
  2. Merge wire tools into one.
    By Beer in forum Ideas & Suggestions
    Replies: 18
    Last Post: 09-16-2008, 05:01 PM
  3. Wire Explosives Exploding when duped
    By ICDWILL117 in forum Installation and Malfunctions Support
    Replies: 4
    Last Post: 08-18-2008, 03:53 AM
  4. Wire Tools working when Adv. Duped?
    By Cpt. Archie in forum Wiremod Addons & Coding
    Replies: 5
    Last Post: 06-29-2008, 06:35 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
proceed-collector
proceed-collector
proceed-collector
proceed-collector
linguistic-parrots
linguistic-parrots
linguistic-parrots
linguistic-parrots