[CS:S] Passenger support for Drivable Vehicles
http://www.lady-natalya.info/images/...fornia0013.PNGhttp://www.lady-natalya.info/images/...rnia_r0013.PNG
http://pastebin.com/FSMfHmsq This is basically all the code needed for passenger support in drivable vehicles. This code is incomplete and does not constitute an individual plugin. How passengers work in CS:S and possibly HL2DM vehicles: - You spawn a car - If the car was made by me or someone else willing to put a bonemerge-able valve skeleton into it then the plugin detects when someone hops in. - When someone is in the car it gets the player model they are using and spawns a prop_physics_override of it, then parents it to the car, and sets its parent attachment to something (doesn't matter what) and the prop will become bonemerged with the car's player skeleton so they appear to sit in the driver's seat and it is awesome. - Passenger seats are basically the same as cars but they in turn are parented to the car itself. They are prop_vehicle_driveable but we make them not able to drive and they are small models that you aren't supposed to see with the valve player skeleton so basically you spawn this object and a player can sit in it with the same process as for the car, but then it gets parented to the right attachment within the car so it looks like you're a passenger. Sample car config file: PHP Code:
http://www.lady-natalya.info/downloa...rnia_r0000.PNG http://www.lady-natalya.info/images/..._s.PNG%3C/b%3E |
Re: [CS:S] Passenger support for Drivable Vehicles
THAT LOOKS AWESOME!
I love how much detail you spent with the fuel and stuff:) Currently trying to build a plugin around it. Lot's of stuff is missing, so looks like i'm going to have to read all your arrays and rebuild them myself :/ Would you mind sharing your
|
Re: [CS:S] Passenger support for Drivable Vehicles
Thanks alot, this will really help!
Her RP server ip is: 75.102.34.142:27017. |
Re: [CS:S] Passenger support for Drivable Vehicles
Quote:
PHP Code:
PHP Code:
Umm, basically you want to know exactly how the cars will be used on your server before you start to try to add this stuff. For example, Rally Race uses a lot of the features but does not use passenger support because you're racing the other players instead of driving your friends around. |
Re: [CS:S] Passenger support for Drivable Vehicles
Someone make a plugin and post here using these Snippets or implement in vehiclemod?
|
Re: [CS:S] Passenger support for Drivable Vehicles
Quote:
|
Re: [CS:S] Passenger support for Drivable Vehicles
Its just because you need to make a menu system from which to spawn the car, or some retarded console command... sm_car "modelname" "skin"
|
Re: [CS:S] Passenger support for Drivable Vehicles
Quote:
Does this code alow you to see the player sitting in the car too? P.S. that's my exact command.. |
Re: [CS:S] Passenger support for Drivable Vehicles
u can provide me OnPlayerRunCmd?
i with this code, People can not ride :( i cant this code seat on chair.. sorry my bad english Quote:
|
| All times are GMT -4. The time now is 18:37. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.