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

Thread: @model directive

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

    Default @model directive

    I finally got around to do it and figured out how not to mess up other scripts in the process

    r1876: [E2] Added an @model directive, that allows you to set the chip model. The selected model might take a while to get to the server though. @model overrides the model selected in the E2 tool's control panel, but reverts back to normal once you load a script without @model.

    bug reports, opinions, ideas, praise?
    "It's easy to win forgiveness for being wrong; being right is what gets you into real trouble." - Bjarne Stroustrup

    Lífið læðist lúmskt áfram

  2. #2
    Wire Sofaking ryland's Avatar
    Join Date
    Oct 2009
    Location
    Card bord box next to wal-mart.
    Posts
    594

    Default Re: @model directive

    This sounds cool, I will try it out.
    "I like pie"-Jat Goodwin

    <Azrael-> ryland: LOL is such a noobish thing to say.
    <ryland> LOL
    <Fox682> LOLLOL
    <Fox682> LOL
    <ryland> LOL

  3. #3
    Wirererer Zantier's Avatar
    Join Date
    Feb 2008
    Posts
    333

    Default Re: @model directive

    cool! ^^

    I haven't time to test this now, but is the @model model shown on the e2 "ghost", before the e2 is spawned?

  4. #4
    Wirererer Snuffy's Avatar
    Join Date
    Jun 2009
    Location
    The Interwebz
    Posts
    144

    Default Re: @model directive

    odd glitch, u have to spawn it , delete it then respawn it for it to work
    Mind rape...Don't do it!

    ---------------Animated Dragon Servers----------------
    please come to my friends servers they are at
    AD#1 = 69.243.56.72:27016
    AD#2 = 76.122.25.25:27016

    its mostly furrys so if u are one then come down, but if u arent then please come too, it sucks being the only non furry in a almost completely furry server.

  5. #5
    Wire Sofaking Vbitz's Avatar
    Join Date
    Feb 2009
    Location
    NZ
    Posts
    685

    Default Re: @model directive

    well the problem will most likely be that a model can not be changed with out some major changes, Tommy look at the model manipulator code it works.
    Questions, Comments and Concerns about any of
    my posts can be directed to my website which is at
    http://vbitz.wordpress.com on the comments post

    Quote Originally Posted by Bull View Post
    As example Jat Goodwin is "the official bastard of wiremod", but that isn't true.. He's very cute and huggable like a little puppy.

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

    Default Re: @model directive

    Quote Originally Posted by Snuffy View Post
    odd glitch, u have to spawn it , delete it then respawn it for it to work
    the code has to validate on the client at least once
    so either you load it, press ctrl-space or reopen the editor

    ... or spawn a chip

    I'll make the editor validate your code when you close the editor. that should help.

    Quote Originally Posted by Vbitz View Post
    well the problem will most likely be that a model can not be changed with out some major changes, Tommy look at the model manipulator code it works.
    no, it doesn't. the physics are fugly
    "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 Sofaking Vbitz's Avatar
    Join Date
    Feb 2009
    Location
    NZ
    Posts
    685

    Default Re: @model directive

    so could it not just be done with a function on the e2core that re-spawns the e2
    Questions, Comments and Concerns about any of
    my posts can be directed to my website which is at
    http://vbitz.wordpress.com on the comments post

    Quote Originally Posted by Bull View Post
    As example Jat Goodwin is "the official bastard of wiremod", but that isn't true.. He's very cute and huggable like a little puppy.

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

    Default Re: @model directive

    that'd be a particularly complicated solution.
    I think the current way is fine, especially now that I made it validate when closing the editor:

    r1877: [E2] Editor: Code is now also validated when closing the editor. This should improve the responsivity of the @model directive.
    "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

  9. #9
    Wire Sofaking Vbitz's Avatar
    Join Date
    Feb 2009
    Location
    NZ
    Posts
    685

    Default Re: @model directive

    and that will make e2 better as a whole, sweet. so the model thing is something that is going to make bots so much easyer
    Questions, Comments and Concerns about any of
    my posts can be directed to my website which is at
    http://vbitz.wordpress.com on the comments post

    Quote Originally Posted by Bull View Post
    As example Jat Goodwin is "the official bastard of wiremod", but that isn't true.. He's very cute and huggable like a little puppy.

  10. #10
    Wire Sofaking Rybec's Avatar
    Join Date
    Apr 2008
    Location
    Denver
    Posts
    648

    Default Re: @model directive

    Oh cool.
    I've had a couple expressions I needed this functionality on before, and I just made it check it's own model, if incorrect, use a concmd to set it, remove, and print a "Please Respawn"
    This is much cleaner, thanks.

+ Reply to Thread
Page 1 of 3 123 LastLast

Similar Threads

  1. Replies: 0
    Last Post: 09-21-2009, 02:30 AM
  2. @trigger is an unknown directive? (Expression2)
    By lvk in forum Installation and Malfunctions Support
    Replies: 6
    Last Post: 05-10-2009, 03:38 AM
  3. Model request
    By jokermatt999 in forum Ideas & Suggestions
    Replies: 3
    Last Post: 10-18-2007, 06:57 PM
  4. New Gps Model
    By Famous in forum Wiremod General Chat
    Replies: 12
    Last Post: 08-28-2007, 06:17 AM
  5. help with a model
    By undead82004 in forum Installation and Malfunctions Support
    Replies: 0
    Last Post: 06-05-2007, 07:43 PM

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