AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Control Vehicle (https://forums.alliedmods.net/showthread.php?t=294745)

DarthMan 03-06-2017 11:51

Control Vehicle
 
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!

OciXCrom 03-06-2017 12:54

Re: Control Vehicle
 
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.

DarthMan 03-06-2017 13:18

Re: Control Vehicle
 
Quote:

Originally Posted by OciXCrom (Post 2501308)
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 03-06-2017 13:41

Re: Control Vehicle
 
Quote:

Originally Posted by OciXCrom (Post 2501308)
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?

DarthMan 03-07-2017 16:36

Re: Control Vehicle
 
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/

georgik57 03-08-2017 01:07

Re: Control Vehicle
 
Quote:

Originally Posted by DarthMan (Post 2501619)

How did you render the view model?

DarthMan 03-08-2017 01:38

Re: Control Vehicle
 
Quote:

Originally Posted by georgik57 (Post 2501725)
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.

OciXCrom 03-08-2017 13:39

Re: Control Vehicle
 
He meant how did you make the weapon glow. I thought that was impossible, or is it possible only in TFC?

DarthMan 03-08-2017 14:01

Re: Control Vehicle
 
Quote:

Originally Posted by OciXCrom (Post 2501866)
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.

OciXCrom 03-08-2017 14:10

Re: Control Vehicle
 
But we wan't to know how you made them glow.


All times are GMT -4. The time now is 20:43.

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