Raised This Month: $32 Target: $400
 8% 

Control Vehicle


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DarthMan
Veteran Member
Join Date: Aug 2011
Old 03-06-2017 , 11:51   Control Vehicle
Reply With Quote #1

Hello. What's the best way to control a vehicle? There's a map called vehi2000_c on TFC, it has planes but you can't fly them by default, but this can be done by using amx. I basically need to know how to check if the player has activated the func_train or whatever it is called. Thanks!
DarthMan is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 03-06-2017 , 12:54   Re: Control Vehicle
Reply With Quote #2

If you can't fly them, I don't see how you are going to move them unless they are an actual entity. I also don't see how the player is going to "activate" the func_train if he can't fly them? Hook Ham_Use for that.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
DarthMan
Veteran Member
Join Date: Aug 2011
Old 03-06-2017 , 13:18   Re: Control Vehicle
Reply With Quote #3

Quote:
Originally Posted by OciXCrom View Post
If you can't fly them, I don't see how you are going to move them unless they are an actual entity. I also don't see how the player is going to "activate" the func_train if he can't fly them? Hook Ham_Use for that.
They can be flied. Actually, on the FM server, if u get i9nto a plane and u press e, u can fly it by using velocity by aim I guess. It's entity is func_train I believe.
DarthMan is offline
DarthMan
Veteran Member
Join Date: Aug 2011
Old 03-06-2017 , 13:41   Re: Control Vehicle
Reply With Quote #4

Quote:
Originally Posted by OciXCrom View Post
If you can't fly them, I don't see how you are going to move them unless they are an actual entity. I also don't see how the player is going to "activate" the func_train if he can't fly them? Hook Ham_Use for that.
It seems to be a func_tracktrain. Ik I can use Ham like this on buttons RegisterHam(Ham_Use,"func_button","UseButton" ,0) , but hdo I ahve to do it the exact same way to get the use button of the train?
I have to use hum on func_traincontrols. But how to check if player is on func_trucktrain?

Last edited by DarthMan; 03-06-2017 at 13:57.
DarthMan is offline
DarthMan
Veteran Member
Join Date: Aug 2011
Old 03-07-2017 , 16:36   Re: Control Vehicle
Reply With Quote #5

This should make people better understand
I am on the plane, on FeckinMad TFC server, I'm flying it, it goes up and down depending on where u'r looking at, and u can also change the direction too, left or right again, depending on where u look at.

http://images.akamai.steamuserconten...004CE5BDB5695/

Last edited by DarthMan; 03-07-2017 at 16:43.
DarthMan is offline
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 03-08-2017 , 01:07   Re: Control Vehicle
Reply With Quote #6

Quote:
Originally Posted by DarthMan View Post
How did you render the view model?
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
DarthMan
Veteran Member
Join Date: Aug 2011
Old 03-08-2017 , 01:38   Re: Control Vehicle
Reply With Quote #7

Quote:
Originally Posted by georgik57 View Post
How did you render the view model?
I did not render it, I have tried to first display a message to all players if the traincontrols hud is active, but it didn't work.
DarthMan is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 03-08-2017 , 13:39   Re: Control Vehicle
Reply With Quote #8

He meant how did you make the weapon glow. I thought that was impossible, or is it possible only in TFC?
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
DarthMan
Veteran Member
Join Date: Aug 2011
Old 03-08-2017 , 14:01   Re: Control Vehicle
Reply With Quote #9

Quote:
Originally Posted by OciXCrom View Post
He meant how did you make the weapon glow. I thought that was impossible, or is it possible only in TFC?
I guess he was talking about glowing, but I was not talking about the weapon, but about flying the plane, which is possible on FM FUN Server.

Last edited by DarthMan; 03-08-2017 at 14:03.
DarthMan is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 03-08-2017 , 14:10   Re: Control Vehicle
Reply With Quote #10

But we wan't to know how you made them glow.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:52.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode