Team Spartan Cookies & Milk Forums
  • Issue Tracker
  • Donations
  • Search
  • Member List
  • Help

Register

Team Spartan Cookies & Milk Forums Garry's Mod Expression 2 v
1 2 3 4 5 … 8 Next »
GUI interaction in a vehicle
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode
GUI interaction in a vehicle
07-10-2017, 10:09 PM,
#1
TheEnigma Offline
FGL Member #001
****
Posts: 82
Threads: 31
Joined: Nov 2016
GUI interaction in a vehicle
After looking through google i haven't found a solution to this; I want to be able to use an EGP screen while inside a vehicle but it won't allow me and when i pressed e it just ejects me. I've tried using a pod controller and wiring "allow buttons" to 1 but it still doesnt work. Anyone know how to do this?

[Image: 207802.jpg]
Find
Reply
07-10-2017, 10:36 PM,
#2
Kosmos Offline
GMod Admin
Posts: 180
Threads: 3
Joined: Dec 2013
RE: GUI interaction in a vehicle
The pod controller has an input called "Lock", if the convar allows it you can use it to lock people inside vehicles, causing the E button to not eject them.
I'm fairly sure that's disabled though, because it is by default and I don't see why person would enable it.
So no, unless you have a special UI that allows using the mouse buttons you can't do what you want.
Find
Reply
08-10-2017, 12:26 AM,
#3
mariofludd Offline
Novaaaaaaaaaaaaa
****
Posts: 528
Threads: 44
Joined: Dec 2013
RE: GUI interaction in a vehicle
If you're talking about wire buttons, you need to left click, if you're talking about sf/egp buttons, try what kossy said

[Image: efN9HsZ.png]
Find
Reply
08-10-2017, 09:57 AM,
#4
TheOneAndOnlyTee Offline
GMod Admin
Posts: 755
Threads: 47
Joined: Oct 2013
RE: GUI interaction in a vehicle
if it's an E2? depending on the coder you'll want to look for something pointing to driver():keyUse() and switch that out for keyAttack1() iirc, fairly easy if they're using the same system that blackhawk's screens use.

otherwise if it's an SF it gets a little trickier because you'd have to switch out hooks to change the button used.

Steam Profile
My Discord Server
Need help with E2 or SF? , just ask me and i'll try to help.
[Image: 98Dkcoz.gif]
Find
Reply
17-10-2017, 09:01 PM,
#5
TheEnigma Offline
FGL Member #001
****
Posts: 82
Threads: 31
Joined: Nov 2016
RE: GUI interaction in a vehicle
I've tried doing that but for some reason it's less responsive than if "use" key is used. What I mean is that for example, mouse1 rarely works when pressing a button but "use" key always works.

I'm not sure if it's a bug or not

[Image: 207802.jpg]
Find
Reply
17-10-2017, 09:59 PM,
#6
Kosmos Offline
GMod Admin
Posts: 180
Threads: 3
Joined: Dec 2013
RE: GUI interaction in a vehicle
Are you saying the game prioritizes use (e.g. opening a door) over firing your weapon?
I'm sure it's a bug, but of course there's nothing I can do if you fail to provide code samples.
Side note: if you wire whatever button from your Pod Controller to the E2 you can avoid having to poll it once per tick, because the value change will trigger execution of the chip (which you can detect using "clk(<input>)").
Find
Reply
« Next Oldest | Next Newest »


  • View a Printable Version
Forum Jump:


Users browsing this thread: 1 Guest(s)
Contact UsTeam Spartan Cookies & MilkReturn to TopLite (Archive) ModeMark all forums readRSS Syndication

Powered By MyBB, © 2002-2026 MyBB Group.