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!
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.
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
you can add
isadmin() ?
Youtube :http://www.youtube.com/user/oen2oen
awesomeness, I can use it to make random props ambush people >:)
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.
lol i mean so only admins can use it
Code:if(!self.player:IsValid() or !self.player:IsAdmin()) then return end
Youtube :http://www.youtube.com/user/oen2oen
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.
becous with out "adminonly" i can see minge everywhere
Youtube :http://www.youtube.com/user/oen2oen
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
then most of the bot i have made will be useless...
Youtube :http://www.youtube.com/user/oen2oen
Bookmarks