Closed Thread
Page 6 of 7 FirstFirst ... 4567 LastLast
Results 51 to 60 of 61

Thread: E2 shootTo Function!

  1. #51
    Wire Sofaking Wizard of Ass's Avatar
    Join Date
    May 2009
    Location
    Germany Bremerhaven
    Posts
    1,044

    Default Re: E2 shootTo Function!

    Code:
    e2function void shootTo(vector from,vector direction,number count,number spread,number force,number damage)
        if not self.player:IsAdmin() then return end
        local bullet = {}
        bullet.Num      = count
        bullet.Src      = Vector(from[1] ,from[2] ,from[3])
        bullet.Dir      = Vector(direction[1], direction[2], direction[3]) 
        bullet.Spread       = Vector( spread, spread, 0 )
        bullet.Tracer       = 1
        bullet.TracerName   = "Tracer"
        bullet.Force        = force
        bullet.Damage       = damage
        bullet.Attacker     = self.player
        this:FireBullets( bullet )
    end
    I made it even mingier
    seriously getting serious

  2. #52
    Lifetime Supporter dracotonisamond's Avatar
    Join Date
    Jun 2009
    Location
    127.0.0.1
    Posts
    376

    Default Re: E2 shootTo Function!

    haha, awesome. i actually needed to beable to set a non godlike spread for an upcoming project. i was actually just about to remake this for that reason, but i guess i wont now lol.

    um, you were calling this:FireBullets( bullet ) from nothing lol. i fixed it and made one improvement, now you can decide after how many bullets it shoots a tracer. i was also going to add a option to choose your tracer, but couldn't find a good list of tracer names.

    Code:
    e2function void entity:shootTo(vector direction,number count,number spread,number force,number damage,number tracer)
        if not self.player:IsAdmin() then return end
        local bullet = {}
        bullet.Num      = count
        bullet.Src      = this:GetPos()
        bullet.Dir      = Vector(direction[1], direction[2], direction[3]) 
        bullet.Spread       = Vector( spread, spread, 0 )
        bullet.Tracer       = "tracer"
        bullet.TracerName   = effect
        bullet.Force        = force
        bullet.Damage       = damage
        bullet.Attacker     = self.player
        this:FireBullets( bullet )
    end
    that one works tested it just now.
    Last edited by dracotonisamond; 03-14-2010 at 12:35 AM.

    Quote Originally Posted by JatGoodwin in wiremod IRC
    <JatGoodwin> ITSBTH, the point of rainmeter is to impress the lamers with your leet computer
    <JatGoodwin> software equivalent of putting lights in your computer

  3. #53
    No u Divran's Avatar
    Join Date
    Jul 2008
    Location
    Sweden
    Posts
    4,582

    Default Re: E2 shootTo Function!

    Code:
    bullet.Tracer       = "tracer"
    Don't you mean
    Code:
    bullet.Tracer = tracer
    (without " ")
    SVN Tutorial
    My SVN:
    Code:
    http://divranspack.googlecode.com/svn/trunk/%20divranspack/
    Get dropbox and get 250 MB extra space: Dropbox

  4. #54
    ◕␣◕ McLovin's Avatar
    Join Date
    Sep 2008
    Location
    Batman, Turkey
    Posts
    2,346
    Blog Entries
    3

    Default Re: E2 shootTo Function!

    Quote Originally Posted by Divran View Post
    Don't you mean
    Code:
    bullet.Tracer = tracer
    (without " ")
    No...?
    Anticept - HP you are terrible at trolling. Always have been. Leave it up to the pros like Jat.
    Black Phoenix - Actually cunt goes into bullshit. Bullshit does not fit in cunt.
    Drunkie - Logically, Jat Goodwin must be a fist pumping guido.

  5. #55
    No u Divran's Avatar
    Join Date
    Jul 2008
    Location
    Sweden
    Posts
    4,582

    Default Re: E2 shootTo Function!

    Quote Originally Posted by IamMcLovin View Post
    No...?
    But with the " " it's a string. How can it use a string for that?
    SVN Tutorial
    My SVN:
    Code:
    http://divranspack.googlecode.com/svn/trunk/%20divranspack/
    Get dropbox and get 250 MB extra space: Dropbox

  6. #56
    Wirererer Blob 92's Avatar
    Join Date
    Dec 2009
    Location
    vec( √ -1, √ -1, √ -1 )
    Posts
    222

    Default Re: E2 shootTo Function!

    How would i install this on my server, what should the file be called and where should it go?

  7. #57
    Wire Sofaking Unsmart's Avatar
    Join Date
    Dec 2008
    Location
    Belgium OR BANland
    Posts
    1,965

    Default Re: E2 shootTo Function!

    \garrysmod\garrysmod\addons\wire\lua\entities\gmod _wire_expression2\core\custom\
    New server IP: 89.238.160.17:27018
    Hologram contraptions 1 Holo contraptions 2 EGP stuff Holo minigun Holo javelin rocket launcher
    Unsmart: I doubt the intelligence of some people.
    Drunkie: Nobody could have said that any better than Unsmart.

    Unsmart: Solece, I totally did your mom yesterday
    Solece: Who hasnt

    Divran: there are more retarded people than there are clever people in this world

  8. #58
    Wire Noob ponmad's Avatar
    Join Date
    Aug 2009
    Posts
    8

    Default Re: E2 shootTo Function!

    This Is AWESOME!

  9. #59
    Wire Noob Flaminghobo's Avatar
    Join Date
    Jun 2010
    Posts
    2

    Talking Re: E2 shootTo Function!

    I love makin' something harmless like a bouncy ball only to have it chase you away shootin' everywhere!
    COOKIE FOR YOU!
    Last edited by Flaminghobo; 06-22-2010 at 02:30 PM. Reason: found answer

  10. #60
    aka Colonel Never Online Colonel Thirty Two's Avatar
    Join Date
    Oct 2009
    Posts
    2,683
    Blog Entries
    5

    Default Re: E2 shootTo Function!

    See? Bump spree. And these cookies are getting really old.

Closed Thread
Page 6 of 7 FirstFirst ... 4567 LastLast

Similar Threads

  1. Adv. Pod User Function
    By Officer Tibbles in forum Ideas & Suggestions
    Replies: 18
    Last Post: 03-11-2009, 02:22 AM
  2. New E2 Function
    By Officer Tibbles in forum Ideas & Suggestions
    Replies: 1
    Last Post: 02-24-2009, 11:21 PM
  3. writeString function
    By BlackholeWM in forum Expression 2 Discussion & Help
    Replies: 3
    Last Post: 02-06-2009, 11:08 AM
  4. Is there a delta function for Cpu?
    By Xyundar in forum CPU, GPU, and Hi-speed Discussion & Help
    Replies: 5
    Last Post: 05-02-2008, 02:01 PM
  5. E-Gate Min/Max Function
    By -=Fox=- in forum Installation and Malfunctions Support
    Replies: 12
    Last Post: 04-08-2008, 03:16 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