Closed Thread
Page 1 of 7 123 ... LastLast
Results 1 to 10 of 61

Thread: E2 shootTo Function!

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

    Default E2 shootTo Function!

    Hey! This is my first E2 code it will shoot a bullet from any entity . E:shootTo(V,N,N,N). (Entity:shootTo(Vector (Directional Vector),Spread,Force,Damage). This is just an addon for lulz i do not take responsibility for what happens to it. It is only enabled for admin when the server starts so to enable it for everyone just type "allow_shootTo" in the console

    Code:
    AddCSLuaFile('custom.lua')
    
    	//e:shootTo(Vector,Spread,Force,Damage)
    	//By McLovin (i do not take responsibility for this :P)
    
    local allowshootTo = false
    
    concommand.Add("allow_shootTo",function ()
    	if (allowshootTo == false) then
    		allowshootTo = true
    	else
    		allowshootTo = false
    	end
    end)
    	
    registerFunction("shootTo", "e:vnnn","", function(self, args)
    	local op1, op2, op3, op4, op5 = args[2], args[3], args[4], args[5], args[6]
    	local rv1, rv2, rv3, rv4, rv5 = op1[1](self, op1), op2[1](self, op2), op3[1](self, op3), op4[1](self, op4), op5[1](self, op5)
    	if (!validEntity(rv1) or allowshootTo == false and !self.player:IsAdmin()) then return end
    	local bullet = {}
        bullet.Num 		= 1
        bullet.Src 		= rv1:GetPos()
        bullet.Dir 		= Vector(rv2[1], rv2[2], rv2[3]) 
        bullet.Spread 		= Vector( rv3, rv3, 0 )
        bullet.Tracer		= 1
        bullet.TracerName 	= "Tracer"
        bullet.Force		= rv4
        bullet.Damage		= rv5
        bullet.Attacker 	= self.player
        rv1:FireBullets( bullet )
    end)
    Last edited by McLovin; 03-10-2010 at 01:21 AM.
    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.

  2. #2
    Official Bastard of Wire Jat Goodwin's Avatar
    Join Date
    Aug 2008
    Location
    Colorado Springs
    Posts
    2,771

    Default Re: E2 shootTo Function!

    This must be committed!
    Now eliminating the need for pesky turrets: The shootTo() function! Now any zombie can wreak havoc on a server with this latest addition. No longer is anything but the egate needed!
    Ö͎̗̫̙̝̹͓̤̙́ͣͤ̈́̋̽̋͜f̺̦̠̻̜̼̮͓̖́̓̄̿̓̌̓̍̔f̵̳̻̜̹̤̱̊͒ͤ͌ ̅ͭͮ̾͟i̗͖̎͗̇ͯ̈̀̌̽c̯̮̉ͮ̾͟͡i̵̺̻̠̘̤̫͕ͯͭ̅͊ͤͦͧa̷͇̖̲ͥ͗ͪ̎ͤ ̽̾ͫl̶̈́̉̉͂̿̎ͯͥ̐҉̗͙̦̻̪ ̪̻͕̗̝͈̘͓ͬ̋̕͟B͚̲̍͢ā̸̪͔͖̟ͫͨ͜͝s͈͔͔͖͇͍̗͛ͯ̑̂͟t̮̤̬̩̅ͧ̎͑͗ ̃̕͟a̸̧̻̖̘̞̪̲͈͕̲͊ͭͪ͆̉r̯̩̮̬̥̤̗̙̃͌̑͊͢͞ď̠̦̲̥͢͡ ̵̶̢̱̲̺͈̘̳͕ͤͅo̯̞̙̦͖̪̽ͩ͊ͅf̵̦͈̣͙̰̎͋̿́ͅ ̛͕̹̫̰̱̾̓ͪ̌̽̊͘͡W̨̬̲̤̖̽̿͛ͨ͛̃̎͐̏i̛̼̳̝̺̝̭͙͋̑͑ͬ͠ṙ̼͔̪ͯͨͭ ̕e̸̗͕̰̒̃ͩͬ̾͆́ͅͅ

    I Require More Minions! Join us on the IRC !
    List of Reasons to idle on the IRC: Wire QDB

  3. #3
    Wire Sofaking oenmaster's Avatar
    Join Date
    Jan 2008
    Location
    fak where is my satnav (NL)
    Posts
    717
    Blog Entries
    1

    Default Re: E2 shootTo Function!

    you can add

    isadmin() ?

  4. #4
    Wirererer dpidcoe's Avatar
    Join Date
    Apr 2008
    Location
    san diego
    Posts
    250

    Default Re: E2 shootTo Function!

    awesomeness, I can use it to make random props ambush people >:)

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

    Default Re: E2 shootTo Function!

    and what would you like isAdmin() to do?
    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.

  6. #6
    Wire Sofaking oenmaster's Avatar
    Join Date
    Jan 2008
    Location
    fak where is my satnav (NL)
    Posts
    717
    Blog Entries
    1

    Default Re: E2 shootTo Function!

    lol i mean so only admins can use it

    Code:
    if(!self.player:IsValid() or !self.player:IsAdmin()) then return end

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

    Default Re: E2 shootTo Function!

    Yea ill set it up so that only admins can use it IF blacklist is on so if you put a code in console it will make it available to every one
    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.

  8. #8
    Wire Sofaking oenmaster's Avatar
    Join Date
    Jan 2008
    Location
    fak where is my satnav (NL)
    Posts
    717
    Blog Entries
    1

    Default Re: E2 shootTo Function!

    becous with out "adminonly" i can see minge everywhere

  9. #9
    Official Bastard of Wire Jat Goodwin's Avatar
    Join Date
    Aug 2008
    Location
    Colorado Springs
    Posts
    2,771

    Default Re: E2 shootTo Function!

    Then why doesnt applyforce() have an admin only function
    Ö͎̗̫̙̝̹͓̤̙́ͣͤ̈́̋̽̋͜f̺̦̠̻̜̼̮͓̖́̓̄̿̓̌̓̍̔f̵̳̻̜̹̤̱̊͒ͤ͌ ̅ͭͮ̾͟i̗͖̎͗̇ͯ̈̀̌̽c̯̮̉ͮ̾͟͡i̵̺̻̠̘̤̫͕ͯͭ̅͊ͤͦͧa̷͇̖̲ͥ͗ͪ̎ͤ ̽̾ͫl̶̈́̉̉͂̿̎ͯͥ̐҉̗͙̦̻̪ ̪̻͕̗̝͈̘͓ͬ̋̕͟B͚̲̍͢ā̸̪͔͖̟ͫͨ͜͝s͈͔͔͖͇͍̗͛ͯ̑̂͟t̮̤̬̩̅ͧ̎͑͗ ̃̕͟a̸̧̻̖̘̞̪̲͈͕̲͊ͭͪ͆̉r̯̩̮̬̥̤̗̙̃͌̑͊͢͞ď̠̦̲̥͢͡ ̵̶̢̱̲̺͈̘̳͕ͤͅo̯̞̙̦͖̪̽ͩ͊ͅf̵̦͈̣͙̰̎͋̿́ͅ ̛͕̹̫̰̱̾̓ͪ̌̽̊͘͡W̨̬̲̤̖̽̿͛ͨ͛̃̎͐̏i̛̼̳̝̺̝̭͙͋̑͑ͬ͠ṙ̼͔̪ͯͨͭ ̕e̸̗͕̰̒̃ͩͬ̾͆́ͅͅ

    I Require More Minions! Join us on the IRC !
    List of Reasons to idle on the IRC: Wire QDB

  10. #10
    Wire Sofaking oenmaster's Avatar
    Join Date
    Jan 2008
    Location
    fak where is my satnav (NL)
    Posts
    717
    Blog Entries
    1

    Default Re: E2 shootTo Function!

    then most of the bot i have made will be useless...

Closed Thread
Page 1 of 7 123 ... 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