• Coding an Xbox 360 Controller to work with GMOD
    48 replies, posted
[QUOTE=Exploderguy;47131422]Very new.[/QUOTE] Quite new....I am just going to imagine I said nothing..jbmod...wtf
Could someone please help me? The recent posts in this thread aren't even helping me at all, if someone is going to answer these questions, if you're going to post something unrelated to the thread, please don't post at all, if your going help, this is what I said: [QUOTE]So, how would I make an Aim assist system? After watching some videos, I thought that what I would do is make something like this(Edited a little): Aim assist would be activated by pressing a button(LB or LT), because I don't want it to be toggle-able, when the button is held, it will not show any noticeable actions if there are any players nearby, when I go over a player's body part with the crosshair and they are alive, it will keep move the crosshair slowly to follow where they go, so I'll still have to move the joystick, but it will help me aim a little bit better and get me closer to players thinking I'm using a mouse. The problem I'm having with this is this: How would I set the field of view that it works with, I don't want to be turning around when people are behind me and look like I'm an aimbot hacker Also, I want to set something else up, when I'm sniping someone, I want it to use entirely different code, what I want to do is make something where I can click RB on my target, and it would highlight their player unless their dead or behind a wall, I'm setting those because I want to use these on TTT, so if someone is disguised, it won't show their name, but I know that I'm shooting the right target, if their in a crowd. I want to know how to put an overlay over a player's body. A problem I'm having is that I want to make sure it only works when I'm sniping someone and only works in scope(if possible), I don't want to accidentally cheat and leave the RB setting on and know who the traitor is if I'm on the innocent team, that would ruin the game and it wouldn't be my fault And if people answer these questions, can you give me any useful links I might need?[/QUOTE]
You can't make aim assist system for multiplayer, only if you own the server or server allows clientside Lua. ( Which is mostly darkrp servers ) You can do it for singleplayer though. You will have to code it yourself in Lua, and it would be classified as aimbot. (so it is bannable offense if overdone / detected )
[QUOTE=Robotboy655;47135868]You can't make aim assist system for multiplayer, only if you own the server or server allows clientside Lua. ( Which is mostly darkrp servers ) You can do it for singleplayer though. You will have to code it yourself in Lua, and it would be classified as aimbot. (so it is bannable offense if overdone / detected )[/QUOTE] Detected by nothing?
[QUOTE=Willox;47135918]Detected by nothing?[/QUOTE] I mean admins/ server anticheats.
[QUOTE=Robotboy655;47136108]I mean admins/ server anticheats.[/QUOTE] I thought you meant you could get banned from singleplayer :v:
[QUOTE=Robotboy655;47135868]You can't make aim assist system for multiplayer, only if you own the server or server allows clientside Lua. ( Which is mostly darkrp servers ) You can do it for singleplayer though. You will have to code it yourself in Lua, and it would be classified as aimbot. (so it is bannable offense if overdone / detected )[/QUOTE] I know that, I'm gonna test it in singleplayer, and then maybe code something else that will run the code on my client when I join the server, and press a button on a controller to activate it, to signal that I'm using a controller instead of a mouse, but then I'd have to be friends with the owner or at least been have playing on the server for a while [editline]14th February 2015[/editline] So, how would I would I move the crosshair to a specified target? I'm going to break this down into simple questions so I can get answers faster.
[url]http://wiki.garrysmod.com/page/Player/SetEyeAngles[/url]
[QUOTE=Robotboy655;47136272][url]http://wiki.garrysmod.com/page/Player/SetEyeAngles[/url][/QUOTE] Okay, thanks, now how would I set it to look at the closest player?
You could just make a thing that lowers your sensitivity when your crosshair enters a player's bounding box. That's what I'd do. [QUOTE=Dan41550;47136568]Okay, thanks, now how would I set it to look at the closest player?[/QUOTE] Your position, the closest player's position, and trigonometry.
I've ran into a problem, even if I found at how to make it look at a target, I don't want it to snap, I want it to move. If my crosshair snapped at someone, I might as well just tell an admin, "Please ban me". So is their a way I can make it smoothly move so it doesn't look like I'm hacking?
I'm beginning to question whether you want this for why you say you do. [editline]13th February 2015[/editline] I guess you could look into [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/Global/LerpVector]Global.LerpVector[/url]
[QUOTE=zerf;47137188]I'm beginning to question whether you want this for why you say you do. [editline]13th February 2015[/editline] I guess you could look into [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/Global/LerpVector]Global.LerpVector[/url][/QUOTE] I'm not lying about this, I don't have a console controller right now to test it on, but I plan on getting one later. In most console games, there is aim assist to make it a bit easier. I'm just trying to redo that, but for PC and console controllers. Also, how does that help with moving the place the player is looking at smoothly? I'm going to look at LerpAngle and see what that does, it looks like it might help.
[QUOTE=xthenarwhalx;47130554]Dear god you're a cunt. Anyway, Honestly dude, you're looking for something that isn't possible. You might as well go play COD or something if you want to play something shooty with a control that has Aim Assist. Default Gmod has a built in thing for controllers (as far as I remember), it's just not that good.[/QUOTE] Well it's certainly better than straight mouse for camera control and stuff, and you dont have to bother with complicated camera path tools that dont work anymore to do it
[QUOTE=sasherz;47137011]You could just make a thing that lowers your sensitivity when your crosshair enters a player's bounding box. That's what I'd do. Your position, the closest player's position, and trigonometry.[/QUOTE] Wait, why would I want it to change my sensitivity? Wouldn't that just make moving the joystick slower? Oh, and this might have been what I was talking about before(I think, I didn't look though) If the crosshair goes into the bounding box, the screen will turn to look at the head or spine, simple, but I don't know how to code that, since I'm not that good at coding.
[QUOTE=Dan41550;47137179]If my crosshair snapped at someone, I might as well just tell an admin, "Please ban me". So is their a way I can make it smoothly move so it doesn't look like I'm hacking?[/QUOTE] I mean, you kinda ARE hacking (or at least cheating). It's not an obvious advantage, but it's an advantage regardless. If you want to use an XBox controller, you'll just have to accept the fact that you won't be as good as someone with a mouse. If you think cheating is a bad thing, then boosting your skill artificially, even if it's small is still cheating. [editline]14th February 2015[/editline] [QUOTE=Dan41550;47137476]I don't know how to code that, since I'm not that good at coding.[/QUOTE] I don't think anyone here is going to do it for you. :c
[QUOTE=sasherz;47137628]I mean, you kinda ARE hacking (or at least cheating). It's not an obvious advantage, but it's an advantage regardless. If you want to use an XBox controller, you'll just have to accept the fact that you won't be as good as someone with a mouse. If you think cheating is a bad thing, then boosting your skill artificially, even if it's small is still cheating. [editline]14th February 2015[/editline] I don't think anyone here is going to do it for you. :c[/QUOTE] I don't want anyone to do it for me. If I wanted to pay for my scripts I would go use coderhire(I know it's dead).I'm not that good at coding but I'm learning. Also, I will probably just talk to the owners of the servers I use it on. So is anything called when my crosshair goes into another players bounding box? That would be VERY useful, because when I go into someone's box, the assist code will run
[QUOTE=Dan41550;47137769] If I wanted to pay for my scripts I would go use coderhire(I know it's dead)[/QUOTE] Today we don't have coderhire. We have [URL="https://scriptfodder.com"]scriptfodder[/URL]
I know, but is anything called though? That would trigger the mouse to start following the player. Or I could do what I wanted to do before, when a player is in my FOV the assist slowly moves the screen to them
Sorry, you need to Log In to post a reply to this thread.