+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Soccer Ball!

  1. #1
    Wirererer Muffin Burglar's Avatar
    Join Date
    Nov 2009
    Posts
    212

    Cool Soccer Ball!

    Presenting Muffin and Middle's Soccer ball!

    Code:
    @name Muffin and Middle's Soccerball
    @persist I Ar:array [T T2]:entity B B2 [C V]:vector M:array
    @model models/props_phx/misc/soccerball.mdl
    if (first()){
        findByClass("player")
        Ar=findToArray()
        C=vec(255,255,255)
    }
    E=entity()
    if(duped()) {selfDestructAll()}
    E:setMass(5)
    runOnTick(1)
    I = (I+1)%Ar:count()
    T = Ar:entity(I+1)
    if(T:pos():distance(entity():pos())<110) {
    C=T:getColor()
    E:setColor(C)
    }
    if (T:isCrouch()) {B=2,B2=7} if(!T:isCrouch()) {B=4,B2=15}
    if(T:pos():distance(entity():pos())<90&!T:keyUse()&!T:keyAttack2()&!T:keyAttack1())
    {E:applyForce(((T:pos()+vec(0,0,45)-E:massCenter())*-B-E:vel())*E:mass())}
    if(T:pos():distance(entity():pos())<135&!T:keyUse()&!T:keyAttack1()&T:keyAttack2()){
    E:applyForce(((T:pos()+vec(0,0,45)-E:massCenter())*-B2-E:vel())*E:mass())
    }
    if(T:pos():distance(entity():pos())<150&T:keyUse()&!T:keyAttack1()&!T:keyAttack2()) {
    V = (T:pos()+vec(0,0,75)-(-T:eye()*65))-E:massCenter()
    E:applyForce(E:mass()*($V*15+V))
    }
    This is a somewhat basic code that me and my friend, Middle Thumb, made earlier today. It is basically a soccer ball that can be picked up and kicked around.
    Some of the things it can do:
    Regular Kick - Walking near it automatically kicks it.
    Punt - Pushing Mouse 2 while being near it punts it, or kicks it far.
    Throw in - Holding the Use key while being near it and looking at it picks it up, letting go of Use throws it.

    Also, if you color yourself and kick it, the ball will turn your color.

    Have fun, and enjoy. ^_^

    EDIT:
    Now comes with a pre-made soccer field
    (Yes there is a picture this time)



    (Yes, that is the e2 in the middle of the field.)
    Attached Files Attached Files
    Last edited by Muffin Burglar; 02-11-2010 at 09:23 AM.
    |-- E2 Monkey Ball -- | -- gPaint! --|

  2. #2
    Wire Noob Middle Thumb's Avatar
    Join Date
    Dec 2009
    Posts
    26

    Talking Re: Soccer Ball!

    so, i hope you all like it! Muffin and i have made some other E2s, but they were kinda mingy so we decided not to post them. also, DO NOT take credit for it, if you do we will have your balls. other than that have fun, and if you guys wanna help me out with some E2 then that would be pretty sweet, im not the best coder and i wanna get much much better, if anyone who reads this knows how to make holograms move, then set your view behind the hologram, then that would be great, i have searched and i havent found anything. so please dont make us take your nuts, and please help me out here. ^_^

  3. #3
    Wire Sofaking N00bDud3's Avatar
    Join Date
    Jul 2009
    Location
    Error: Unknown Location
    Posts
    1,252

    Default Re: Soccer Ball!

    No Piccy No Clicky (or in this case no CopyPastey)



  4. #4
    Wire Noob zk175's Avatar
    Join Date
    Jul 2009
    Posts
    13

    Default Re: Soccer Ball!

    yeah, I think it's pretty good by the sounds of it but I can't test it yet (as I'm on my phone) but it sounds pretty cool. Though beware some people go by the policy "no pic no click" so...

    EDIT:
    N00bDud3 you beat me to it D':
    Last edited by zk175; 02-10-2010 at 07:58 PM. Reason: N00bDud3 beat me to it...

  5. #5
    Wirererer Muffin Burglar's Avatar
    Join Date
    Nov 2009
    Posts
    212

    Default Re: Soccer Ball!

    Meh it's an e2.... I don't really see why you need a picture...
    It is a expression 2 with the model of a phx soccer ball.
    If someone else agrees that it needs a picture, I will post one, but I really do not see the point.
    |-- E2 Monkey Ball -- | -- gPaint! --|

  6. #6
    Wirererer Maxaxle's Avatar
    Join Date
    Sep 2009
    Posts
    177

    Default Re: Soccer Ball!

    Looks awesome!
    *downloads*
    Still very clueless about code in general.
    92% of teens have moved onto rap. If you are part of the 8% that still listen to real music, copy and paste this into your signature.

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

    Default Re: Soccer Ball!

    Quote Originally Posted by N00bDud3 View Post
    No Piccy No Clicky (or in this case no CopyPastey)
    am i the only one who hates people who so no pic no click on things like SINGLE e2's that are the whole thing in and of itself, meaning that a picture would show nothing... honestly, how is a picture of a e2 that looks like a soccerball gonna encourage someone to copy it... Does it really make a difference >.< gahlee....

    Nice idea by the way ^_^
    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

  8. #8
    Wire Sofaking N00bDud3's Avatar
    Join Date
    Jul 2009
    Location
    Error: Unknown Location
    Posts
    1,252

    Default Re: Soccer Ball!

    It has actions, so maybe a video is a better idea than a pic. I only don't say that if it's an E2 that just outputs stuff to chat.



  9. #9
    Wirererer adeeda's Avatar
    Join Date
    May 2009
    Location
    California
    Posts
    135

    Default Re: Soccer Ball!

    Hehehe, that looks pretty cool! Will try it out later.

    On the subject of pics; someone posted "No picky, no clicky" on my E2 chat hangman thread.... XD
    Anne drew Andrew and Drew, and Druanne drew Anne, Drew, Andrew, and Ru.
    AnDrEw in-game.

  10. #10
    Spucatum Tauri Bull's Avatar
    Join Date
    Jun 2008
    Location
    Finland
    Posts
    6,009

    Default Re: Soccer Ball!

    Quote Originally Posted by jacoby6000 View Post
    am i the only one who hates people who so no pic no click on things like SINGLE e2's that are the whole thing in and of itself, meaning that a picture would show nothing... honestly, how is a picture of a e2 that looks like a soccerball gonna encourage someone to copy it... Does it really make a difference >.< gahlee....

    Nice idea by the way ^_^
    Indeed that is getting very annoying.
    2. Picture(s) or video.
    Unless there is nothing see of course. There is no need to post a picture of a single E2.
    My signature has a point.
    Quote Originally Posted by Squeakyneb View Post
    when l3ulletje says do it, do it.
    That

    Quote Originally Posted by Anticept View Post
    By the way, Bull is in charge.

+ Reply to Thread
Page 1 of 2 12 LastLast

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