• What do you need help with? V3
    6,419 replies, posted
[QUOTE=Tyler_Foster;38042707]Yeah Your Trying To Make An Aimbot Sorry Skid Do Your Own Math[/QUOTE] Sorry kiddo it's not for an aimbot, go home.
[QUOTE=find me;38042771]Sorry kiddo it's not for an aimbot, go home.[/QUOTE] I Am Home You Stupid Bitch
[QUOTE=Tyler_Foster;38042794]I Am Home You Stupid Bitch[/QUOTE] You know you don't need to type every word with a capital letter... They aren't nouns and you aren't starting a new sentence with them.
[QUOTE=find me;38042814]You know you don't need to type every word with a capital letter... They aren't nouns and you aren't starting a new sentence with them.[/QUOTE] Copying Posts Like You Copy Code Fucking Skiddie
why did you create ANOTHER alt? did you get perma'd twice for that? [editline]15th October 2012[/editline] [QUOTE=find me;38042814]You know you don't need to type every word with a capital letter... They aren't nouns and you aren't starting a new sentence with them.[/QUOTE] ye.. props to the original poster... -cough-
[QUOTE=Tyler_Foster;38042707]Yeah Your Trying To Make An Aimbot Sorry Skid Do Your Own Math[/QUOTE] [img]http://puu.sh/1f1Pb[/img]
[QUOTE=G4MB!T;38042840]why did you create ANOTHER alt? did you get perma'd twice for that? [editline]15th October 2012[/editline] ye.. props to the original poster... -cough-[/QUOTE] Gran PC Is Just Mad That I Am Making Money From My Work [editline]15th October 2012[/editline] [QUOTE=JustSoFaded;38042856][img]http://puu.sh/1f1Pb[/img][/QUOTE] Yeah Thats Your Cheat Copied From Old Hera Which I Have Since Changed Because You Cant Code
[QUOTE=JustSoFaded;38042856][img]http://puu.sh/1f1Pb[/img][/QUOTE] What?
you are just mad because you keep getting banned
[QUOTE=G4MB!T;38042892]you are just mad because you keep getting banned[/QUOTE] Whom Are You Referring To Bitch I Never Get Mad Also Look At Who Is Viewing The Thread /dev/sda1 Fucking Skiddie Linux User
mmmhmm.... sure you dont
ok that's enough derail. anyways, called game.ClranUpMap before InitPostEntity was called its all good. (Gm13)
[QUOTE=G4MB!T;38042910]mmmhmm.... sure you dont[/QUOTE] Thats What I Said Bitch Stop ShitPosting
stop being a hypocrite
[QUOTE=Tyler_Foster;38042906]Whom Are You Referring To Bitch I Never Get Mad Also Look At Who Is Viewing The Thread /dev/sda1 Fucking Skiddie Linux User[/QUOTE] i guess skiddies write their own code nowadays. also all Linux users aren't skids. grow the fuck up.
[QUOTE=G4MB!T;38042929]stop being a hypocrite[/QUOTE] Im Not Being A Hypocrite Bitch At Least I Help The Community Unlike You Posting Skiddie Code In Every Thread Why The Fuck Is That Skid Linux User Talking To Me Bitch Dont Talk To Your Superiors Like That
[QUOTE=Tyler_Foster;38042941]Im Not Being A Hypocrite Bitch At Least I Help The Community Unlike You Posting Skiddie Code In Every Thread Why The Fuck Is That Skid Linux User Talking To Me Bitch Dont Talk To Your Superiors Like That[/QUOTE] Help the community? You just bitch and bitch because people are better than you. Sorry man, game over. Right. Sorry Dear Leader.
[QUOTE=/dev/sda1;38042962]Help the community? You just bitch and bitch because people are better than you. Sorry man, game over. Right. Sorry Dear Leader.[/QUOTE] Yeah Game Over For You Bitch And Nobody Is Better Than Me Stupid Skid Yeah Bitch Out Of The Argument Right Now Before You Get Your Shit Slapped
Tyler Foster. Post and link 10 things you created yourself and released publicly. Go.
[QUOTE=/dev/sda1;38042978]Tyler Foster. Post and link 10 things you created yourself and released publicly. Go.[/QUOTE] I Dont Release Stuff To The Public Because I Think You All Should Stop Skidding Off Of Superior Coders But I Do Have A Portfolio Here [url]http://facepunch.com/showthread.php?t=1193966&p=38038766&viewfull=1#post38038766[/url]
[QUOTE=Tyler_Foster;38043010]I Dont Release Stuff To The Public Because I Think You All Should Stop Skidding Off Of Superior Coders But I Do Have A Portfolio Here [url]http://facepunch.com/showthread.php?t=1193966&p=38038766&viewfull=1#post38038766[/url][/QUOTE] Then you didn't help the community. You're a terrible coder, terrible poster and the likes. also, every post you have has the word skid in it. I feel like I'm on HackFourms! You know, where you belong.
Could someone either tell me why my pile of shit code doesn't work or explain how to do what I need done in a much more simple way??? Pleaseeee, I fucking suck at math help a man out here, all this garbage is racking my brain. Here is exactly what I am trying to do: Find the intersecting vector of two lines, Z plane is being ignored for all this. The first line is the players position(POINT A) and players AimVector*500(POINT B). The other line is pre set on the map, example Vector(-100, -50, 50)(POINT A) and Vector(-300, -50, 50)(POINT B). The best way to explain exactly what I need without all the technical jargon. Pretend there is a wall in front of the player, if he is looking at the wall I need to return the vector at which his aimvector and the wall meet. Doesn't matter how high or how low on the wall he is looking, the Y part of the vector will be replaced with a set number anyways. DON'T try and offer alternative solutions like HitPos, first of all there is NO wall, it is imaginary between two points. I know what I need I just don't know how to produce the answer correctly or efficiently. Help with any of this would be FREAKIN awesome considering the fact that I've probably wasted over 4 hours over 3 days just trying to figure this stupid thing out. [lua] --THE Z PLANE DOESN'T MATTER, IT DOESNT MATTER HOW HIGH OR LOW A PERSON IS LOOKING I JUST NEED TO KNOW IF THEIR AIM VECTOR CROSSES WITH THE IMAGINARY LINE! local P_A = LocalPlayer():GetPos() --PLAYER LINE POINT A //EX: POINT 1_A = (4, 4, Z) local P_B = LocalPlayer():GetPos()+LocalPlayer():GetAimVector()*500 --PLAYER LINE POINT B //EX: POINT 1_B = (-4, -2, Z) local L_A = GetGlobalVector("Line_SW") --LINE POINT A //EX: POINT 2_A = (-4, 4, Z) local L_B = GetGlobalVector("Line_SE") --LINE POINT B //EX: POINT 2_B = (4, -2, Z) local P_S = (P_A.y-P_B.y)/(P_A.x-P_B.x) --THIS IS THE SLOPE IN EQUATION Y=MX+B //EX: SLOPE FOR LINE 1 = (4--2)/(4--4) = 6/8 = 3/4 local L_S = (L_A.y-L_B.y)/(L_A.x-L_B.x) --THIS IS THE SLOPE IN EQUATION Y=MX+B //EX: SLOPE FOR LINE 2 = (4--2)/(-4-4) = 6/-8 = 3/-4 = -3/4 local P_Y = 0-P_A.y --LEFT SIDE OF EQUATION: Y-Y1=M(X-X1) //EX: 0-4 = -4 THIS IS THE LEFT SIDE OF LINE EQUATION Y-Y1=M(X-X1) local P_X = P_S*(0-P_A.x) --RIGHT SIDE OF EQUATION: Y-Y1=M(X-X1) //EX: (3/4)*(0-4) = (3/4)*-4 = -3 THIS IS THE RIGHT SIDE OF THE EQUATION Y-Y1=M(X-X1) local P_BB = P_X+(P_Y*-1) --THIS IS B IN EQUATION Y=MX+B //EX: -3+(-4*-1) = -3+4 = -1 THIS IS B IN EQUATION Y=MX+B local L_Y = 0-L_A.y --LEFT SIDE OF EQUATION: Y-Y1=M(X-X1) //EX: 0-4 = -4 THIS IS THE LEFT SIDE OF LINE EQUATION Y-Y1=M(X-X1) local L_X = L_S*(0-L_A.x) --RIGHT SIDE OF EQUATION: Y-Y1=M(X-X1) //EX: (-3/4)*(0--4) = (-3/4)*4 = -3 THIS IS THE RIGHT SIDE OF THE EQUATION Y-Y1=M(X-X1) local L_BB = L_X+(L_Y*-1) --THIS IS B IN EQUATION Y=MX+B //EX: -3+(-4*-1) = -3+4 = -1 THIS IS B IN EQUATION Y=MX+B local A_R = L_BB+(P_BB*-1) --REDUCE THE B'S IN EQUATION TO ONE SIDE: MX+B=M1X1+B1 //EX: -1+(-1*-1) = -1+1 = 0 EQUATION TURNS INTO MX=M1X+0 local A_X = P_S/L_S --REDUCE SLOPES IN EQUATION TO ONE SIDE: MX+B=M1X1+B1 //EX: (3/4)/(-3/4) = -1 EQUATION TURNS INTO -1X=0 local A_A = A_R/A_X --REDUCE X DOWN TO 1, SHOULD COME OUT TO X CORDINATE OF INTERSECTING LINES. //EX: 0/-1 = 0 OUTCOME IS X=0, THIS MUST MEAN LINE 1 INTERSECTS WITH LINE 2 ON THE X AXIS AT 0. //ALL THIS JARGON WORKS IF YOU PLOT THE EXAMPLE LINES ON A GRAPH, X IS THEIR INTERECTION ON X PLANE. render.DrawBeam( P_A, P_B, 5, 1, 1, Color( 255, 255, 255, 255 ) ) --DRAW PLAYER LINE SO ALL THIS IS VISIBLE IN GAME. render.DrawBeam( GetGlobalVector("Line_SW"), GetGlobalVector("Line_SE"), 5, 1, 1, Color( 255, 255, 255, 255 ) ) --DRAW LINE 2 SO ALL THIS IS VISIBLE IN GAME. render.DrawBeam( Vector(A_A, GetGlobalVector("Line_SW").y, GetGlobalVector("Line_SW").z+200), Vector(A_A, GetGlobalVector("Line_SW").y, GetGlobalVector("Line_SW").z-200), 5, 1, 1, Color( 255, 255, 255, 255 ) ) --DRAW VERTICAL BEAM ON LINE 2 SHOWING WHERE THEY TWO LINES INTERSECT. THIS DOESNT WORK, I DONT KNOW WHY... [/lua] :suicide:
[QUOTE=find me;38043968]Could someone either tell me why my pile of shit code doesn't work or explain how to do what I need done in a much more simple way??? Pleaseeee, I fucking suck at math help a man out here, all this garbage is racking my brain. Here is exactly what I am trying to do: Find the intersecting vector of two lines, Z plane is being ignored for all this. The first line is the players position(POINT A) and players AimVector*500(POINT B). The other line is pre set on the map, example Vector(-100, -50, 50)(POINT A) and Vector(-300, -50, 50)(POINT B). The best way to explain exactly what I need without all the technical jargon. Pretend there is a wall in front of the player, if he is looking at the wall I need to return the vector at which his aimvector and the wall meet. Doesn't matter how high or how low on the wall he is looking, the Y part of the vector will be replaced with a set number anyways. DON'T try and offer alternative solutions like HitPos, first of all there is NO wall, it is imaginary between two points. I know what I need I just don't know how to produce the answer correctly or efficiently. Help with any of this would be FREAKIN awesome considering the fact that I've probably wasted over 4 hours over 3 days just trying to figure this stupid thing out. [/QUOTE] Here: [url]http://svn.dagamers.net/wiremodextras/trunk/lua/entities/gmod_wire_expression2/core/custom/tracesystem.lua[/url] This thing has all the ways of intersecting stuff you could ever dream of. Line -> plane Line -> box Line -> sphere Cone -> sphere and more EDIT: oh wait you want 2d.. but if you want 3d then these equations will be what you need
OMG I GOT IT! I feel accomplished(: I got the intersection thing exactly how I needed it! Happy camper I am. Also thanks Divran, I'll definitely give that a look as I'm sure it will come in handy a bit later.
I wonder how to make it so that when I hold the weapon my playermodel animation changes my code is kinda like this: [CODE]function SWEP:Deploy() return true; ply:SetModel( "models/zombie\Classic.mdl" ) [/CODE]
so I'm trying to get some shit working with an old gamemode (sledbuild), but it makes the initial game sound play 4 times over due to something in the code; I've googled this to fuck and tried at least 30 variations of timer things and I'm drawing a blank. If anyone could help I would really really appreciate it... [code]if NextRace < 0 then NextRace = "0" end if NextRace == 0 && !startsoundplayed then startsoundplayed = true surface.PlaySound( "ify_bs/itsbobsledtime.wav" ) else startsoundplayed = false end [/code] All I really want it to do is not play 4 copies of the same sound file at once because it makes it sound like shit.
[QUOTE=jellofacey;38044665]I wonder how to make it so that when I hold the weapon my playermodel animation changes my code is kinda like this: [CODE]function SWEP:Deploy() return true; ply:SetModel( "models/zombie\Classic.mdl" ) [/CODE][/QUOTE] I think you use [lua]function SWEP:Deploy() self:SendWeaponAnim( ACT_VM_PRIMARYATTACK ) // View model animation self.Owner:MuzzleFlash() // Crappy muzzle light self.Owner:SetAnimation( PLAYER_ATTACK1 ) // 3rd Person Animation // etc [/lua] (this is all a guess please don't hurt me)
[QUOTE=jellofacey;38044665]I wonder how to make it so that when I hold the weapon my playermodel animation changes my code is kinda like this: [CODE]function SWEP:Deploy() return true; ply:SetModel( "models/zombie\Classic.mdl" ) [/CODE] [/QUOTE] This is a joke right?
[QUOTE=JustSoFaded;38045730]This is a joke right?[/QUOTE] Lots of people don't understand code, such as I
[QUOTE=JustSoFaded;38045730]This is a joke right?[/QUOTE] i really hope so... it will save the lives of so many if it is
Sorry, you need to Log In to post a reply to this thread.