Your Ad Here

Subscribe
 Post #1
 25th January 2010 Last edited by Sakarias88; 2 Weeks Ago at 05:01PM..
Sakarias88's Avatar
January 2006
1,228 Posts



I decided to make my own car script.
So what's the difference between the original hl2 cars and my scripted cars?
A lot!
You can customize almost everything.

Here is a list of a few things you can change on the SCars.
*Wheels
*Paint Job
*Engine Sound
*Suspension Height
*Suspension Softness
*Hydraulics

Here is a video

Thread music

Pics:




Most of the things should be self explanatory but if you need more info you can read the instructions here


Spawning
To spawn a car select the car spawner stool, pick a car and then just press primary fire to spawn it.



Tuner stool
This is the most advanced stool in this addon but don't be afraid, it's very easy to use and understand.
I will go through what each slider does separately.

Power: Determines how strong the engine is. It effects both acceleration and horsepower.

Max Speed: When the car have reached this speed the engine can't make it go any faster.

Turbo Effect: When you are using turbo this number will be multiplied with the power (Turbo Effect * Power). Let's say that Power = 1000 and Turbo Effect = 5 that means that we have 5000 in Power while using the turbo.

Turbo Duration: The amount of time in seconds the turbo will be active.

Turbo Delay: The amount of time in seconds you have to wait until you can use the turbo again.
The delay starts when the turbo have finished it's cycle.

Reverse Power: Determines how strong the engine is while going in reverse.

Reverse Max Speed: When the car have reached this speed the engine can't make it go any faster.

Break Efficiency: How effective the breaks are.

Steer force: How much force the car uses to make it rotate.

Steer Response: The steering is progressive. Basically this slider determines how fast the driver is at turning the steering wheel.

Stabilisation: Sets keep upright so the car won't flip over so easy.

Nr Of Gears: The number of gears does not effect the cars performance. it just decides how many times you have to shift before you reach max speed.

Anti slide: Determines how much you are able to slide (0 = no anti slide at all).

Auto Straighten: Makes the car automatically turn in the direction of the speed. Makes the car easier to control. Steering will be less sensetive at higher speeds.



Wheel Changer Stool
Pick a wheel in the menu and shoot a SCar with the stool.


Fuel Stool
With this stool you can change how much fuel the car uses, you can also turn of fuel consumption with the check box.


Suspension adjustment Stool
You are able to change suspension softness and suspension height.
Check the live action check box to see the changes being made while you drag the sliders.
Notice that you have to choose a car before you can use live action.


Health Stool
Set the amound of health you wish the car to have or just disable damage.
You can also disable wheel damage.


Hydraulics Stool
Turn Hydraulics on or off with the check box. Drag the slider to choose how high hydraulics you want.



Paint Job Switcher Stool
Simply shoot a car to change the skin. Press reload to randomize a skin. Press shift to cycle through the skins in the stool menu.



SCar Saver Stool
With this stool you can save your SCars and use them on any multiplayer server that has the latest SCars version installed.

To save your SCar just select all the parts (will be highlighted with red) you want to be saved with the SCar (including the SCar),
type in the file name in the text field and press save.

To load your car simply select any saved file in the list and press load. The car will then spawn.
If you are on a multiplayer server you will have to upload it by selecting the a saved file in the list and then press the upload button.





For server owners

Admin Menu
Type scar_showmenu in the console to make the menu appear.
You have to be admin or higher or the menu won't show up.
Just drag the sliders to whatever limit you want.
The changes will be applied immediately.


Downloadable content
You can make so clients won't download any SCars content.
Go to "SCars\lua\autorun\server" and delete "SCarClientDownload.lua".


CONTROLS:
USE: Enter or leave the SCar.
WASD: Well you know what those keys are for.
SPRINT: Turbo.
PRIMARY FIRE + A or S or D or W: Use hydraulics separately on the wheels.
SECONDARY FIRE: Toggle the hydraulics.
JUMP: Hand break.
Walk(Move slowly): Change seat.
JUMP + W: Rev engine.
W + S: Burnout.
V: Toggle camera view.
F: Toggle head lights.

DOWNLOAD



FAQ
Q:Support for Bail Out?
A: Yes.

Q: It doesn't work why?
A: You are wrong! The SCar addon does work!
Either you have some kind of addon conflicting with SCars that makes it "not work" or you are just haven't installed the addon correctly.
Re-download, remove the old version, install the new version, try again.

Q: My third person view doesn't work! Why?
A: It should work. It's a pretty high risk for other addons conflicting with it.
You must also use the hud at the same time or it won't work (will fix that but in an update).

Q: Can you make a motorcycle?
A: Shouldn't I finish the SCars project first?

Q: The wheels are sinking through the ground! Why?
A: There is nothing I can do to fix that problem. A modeller would have to do it for me.
You can always change the wheels. The wheel that works the best is the ugly hl2 wheel (obviously because valve made it).

Q: My hud doesn't work in the latest SCars version.
A: Type scar_showmenu in the console then make sure you have the "allow hud" checkbox checked.
If it already is checked then uncheck it and check it again.


Models - Credits
If you want to be added to credits or there is a model that you want to be removed please send me a PM about it so we can sort it out.
I'm truly sorry if i forgot to add you to credits.


Credits
Sakarias88 (NO! I haven't made the models)
Overv - admin menu help
Kazzim - Ideas and beta testing
( ^_^)/¨ - Ideas and beta testing
Mr.Bix - Beta testing
Splayn - Car Models
Mihara - Skin switcher stool
Karmah - New/fixed car models
Griba - New/fixed car models
Thunder Skunk & Cookie - Vigilante 8 cars
Thunder Skunk - Vigilante 8 weapon models.
ApwnInTheDark - ripping & converting boarderlands bus.
Sgt.Sgt - Ported GTA Models

All the other beta testers.
 Post #2
 25th January 2010 Last edited by Ultimate7MK; 25th January 2010 at 12:24PM..
Ultimate7MK's Avatar
April 2009
781 Posts
Holy mother of god. Is there anything you can't make?
 Post #3
 25th January 2010
Gmod.com Admin
Disseminate's Avatar
December 2007
1,477 Posts
Jesus, this looks nice.
 Post #4
 25th January 2010
Entoros's Avatar
October 2008
2,257 Posts
It's like EasyEngine, but... easier to make. Fantastic job.
 Post #5
 25th January 2010
Gold Member
Dennab
October 2007
2,619 Posts
Video looks really cool, gonna test this now. Someone make a gmod.com news post :D
 Post #6
 25th January 2010
Matsilagi's Avatar
June 2009
673 Posts
Finally!
A bit of NFS spirit in an FPS game.
This will be great in an online match.
And good for some roleplays.
This will be in gmod.com, shortly...
 Post #7
 25th January 2010
Gold Member
Dennab
February 2008
2,921 Posts
Now THIS deserves a news post.
 Post #8
 25th January 2010
Gold Member
Averice's Avatar
July 2007
2,202 Posts
Wow this looks insane once again wonderful job sakarias.
 Post #9
 25th January 2010
Elements's Avatar
December 2008
980 Posts
So much for the Helicopter being your last project huh?

Glad you didn't stop =D
 Post #10
 25th January 2010
Matsilagi's Avatar
June 2009
673 Posts
Machinimas coming about NFS...
I hear that, helicopters, chases, planes and DESTRUCTION!
 Post #11
 25th January 2010
The Spie's Avatar
November 2009
614 Posts
Machinimas coming about NFS...
I hear that, helicopters, chases, planes and DESTRUCTION!
If only someone could make an NFS MW, Spirit, etc. Game mode. we use these cars, there are maps from the need for speed games with citizen vehicles, and cops to make blockades and like 5 cops chasing you and 10 other cops flanking. Paradise, huh?
 Post #12
 25th January 2010
Gold Member
Sodisna's Avatar
May 2007
3,380 Posts
What will you think of next?
 Post #13
 25th January 2010
-Xemit-'s Avatar
January 2009
724 Posts
Those cars are fucking awesome. I think that the only type of vehicle left for you is a boat.
 Post #14
 25th January 2010
alexojm's Avatar
May 2009
521 Posts
This deserves a gamemode NFSG ( need/for/speed/gmod )


And once again you and your epic creation have made my day keep up the great work man.
 Post #15
 25th January 2010
Ice05's Avatar
August 2008
690 Posts
Someone make a gmod drifting gamemode ASAP!!!
I cant tell you how much I love drifting cars.
 Post #16
 25th January 2010
Gold Member
Dennab
May 2008
2,317 Posts
Is there a base for everyone to add their own cars to?
 Post #17
 25th January 2010
Gold Member
Hakita's Avatar
June 2007
11,510 Posts
You've done it again, Saka-man.
You have once again proven to be worthy of your Throne on top of the G-Olypmos.
 Post #18
 25th January 2010
Ice05's Avatar
August 2008
690 Posts
Is there a base for everyone to add their own cars to?
Haven't looked trought the code yet,but there should be...
Maybe....
 Post #19
 25th January 2010
Sakarias88's Avatar
January 2006
1,228 Posts
Is there a base for everyone to add their own cars to?
Well sort of.
You will find this in the ENT:Initialize() function.

Code:
	//MODEL
	local CARMODEL = "models/Splayn/belair.mdl"
	local TIREMODEL = "models/Splayn/belair_wheel.mdl"
	local SEATMODEL = "models/nova/airboat_seat.mdl"

	//POSITIONS
	local SEATPOS1 = ( self.Entity:GetForward() * 17 ) + ( self.Entity:GetRight() * -19 ) + ( self.Entity:GetUp() * 20 )
	local SEATPOS2 = ( self.Entity:GetForward() * 17 ) + ( self.Entity:GetRight() * 19 ) + ( self.Entity:GetUp() * 20 )
	local SEATPOS3 = ( self.Entity:GetForward() * -18 ) + ( self.Entity:GetUp() * 20 )
	local SEATPOS4 = ( self.Entity:GetForward() * -18 ) + ( self.Entity:GetRight() * -19 ) + ( self.Entity:GetUp() * 20 )
	local SEATPOS5 = ( self.Entity:GetForward() * -18 ) + ( self.Entity:GetRight() * 19 ) + ( self.Entity:GetUp() * 20 )
	
	local FLwheel = ( self.Entity:GetForward() * 81 ) + ( self.Entity:GetRight() * -35 ) + ( self.Entity:GetUp() * 7 )
	local FRwheel = ( self.Entity:GetForward() * 81 ) + ( self.Entity:GetRight() * 35 ) + ( self.Entity:GetUp() * 7 )
	
	local RLwheel = ( self.Entity:GetForward() * -52 ) + ( self.Entity:GetRight() * -35 ) + ( self.Entity:GetUp() * 10 )	
	local RRwheel = ( self.Entity:GetForward() * -52 ) + ( self.Entity:GetRight() * 35 ) + ( self.Entity:GetUp() * 10 )	
	
	local FLlight = ( self.Entity:GetForward() * 117 ) + ( self.Entity:GetRight() * 35 ) + ( self.Entity:GetUp() * 26 )
	local FRlight = ( self.Entity:GetForward() * 117 ) + ( self.Entity:GetRight() * -35 ) + ( self.Entity:GetUp() * 26 )
	local RLlight = ( self.Entity:GetForward() * -115 ) + ( self.Entity:GetRight() * 32 ) + ( self.Entity:GetUp() * 32 )
	local RRlight = ( self.Entity:GetForward() * -115 ) + ( self.Entity:GetRight() * -32 ) + ( self.Entity:GetUp() * 32 )
	
	local EFFECTPOS = ( self.Entity:GetForward() * 87 ) + ( self.Entity:GetUp() * 40 )
	local EXHAUSTPOS = ( self.Entity:GetForward() * -115 ) + ( self.Entity:GetRight() * 37.5 )  + ( self.Entity:GetUp() * 15 )
You just have to change the models and set the positions on everything and you got a new SCar.
There is also a commented line in the tuner stool (line 174) you should uncomment if you are trying to make your own SCar.
Whenever you use the tuner stool on a SCar it will print out the local position in the console.
Getting all the positions right can be time consuming.

X = GetForward
Y = GetRight
Z = GetUp

Please note that all models won't work with the script.
It only works if the models are turned the right way.
It's hard to explain but basically the front of the car really needs to be the front of the model which is not always the case on third party models.
 Post #20
 25th January 2010
DaKakis's Avatar
June 2009
1,044 Posts
how do i disable that pepole download scars files from the server
 Post #21
 25th January 2010
Gold Member
Profanwolf's Avatar
June 2005
4,898 Posts
The fact that you added musclecars makes me download this.
 Post #22
 25th January 2010
Gold Member
Dennab
June 2007
8,686 Posts
My dream of good handling cars in Gmod has finally been completed.
 Post #23
 25th January 2010
DaKakis's Avatar
June 2009
1,044 Posts
server with scars 83.233.110.158:27016

Great mod.
 Post #24
 25th January 2010
Sakarias88's Avatar
January 2006
1,228 Posts
how do i disable that pepole download scars files from the server
You will have to remove resource.AddFile in all files (and that's a lot).
 Post #25
 25th January 2010
coolrider102's Avatar
June 2006
1,518 Posts
How does re-fueling work?
is there a way for the Admin to force fuel consumption on for RP Servers?
 Post #26
 25th January 2010
zupadupazupadude's Avatar
April 2009
626 Posts
This is just awsome. The only problem is that sometimes the wheels are collideing in the ground. Is there a way to fix that?
 Post #27
 25th January 2010
Sakarias88's Avatar
January 2006
1,228 Posts
How does re-fueling work?
is there a way for the Admin to force fuel consumption on for RP Servers?
Yes.
Fuel consumption is on by default.
Admins can allow or disallow people to disable the fuel consumption.

This is just awsome. The only problem is that sometimes the wheels are collideing in the ground. Is there a way to fix that?
Yep, change the suspension softness.
Increase it with about 1 - 3.
 Post #28
 25th January 2010
Gold Member
Profanwolf's Avatar
June 2005
4,898 Posts
The wheels keep sinking in Only the junker ones don't.
 Post #29
 25th January 2010
Gold Member
Kung Fu Jew's Avatar
November 2006
3,955 Posts
I think you deserve a user title "Magic Fingers" or something. This is amazing.

What's next, Sakarias?
 Post #30
 25th January 2010
Sakarias88's Avatar
January 2006
1,228 Posts
The wheels keep sinking in Only the junker ones don't.
Sinking through the map?
The hitboxes on some wheels aren't very good which results in that the wheels sink through the ground at high speeds.
I decided to keep all the wheels even the ones with the defect hit boxes since you can always change the wheels.
 Post #31
 25th January 2010
Gold Member
Profanwolf's Avatar
June 2005
4,898 Posts
Sinking through the map?
The hitboxes on some wheels aren't very good which results in that the wheels sink through the ground at high speeds.
I decided to keep all the wheels even the ones with the defect hit boxes since you can always change the wheels.
Yeah the ones with defect hitboxes are useless really.

Edited:

and the one that works for me, the junkers one is not really round.

Edited:

do tell which wheels have defect hitboxes
 Post #32
 25th January 2010
alexojm's Avatar
May 2009
521 Posts
Oh no am I the only one.

I don't see that cool speed thinge on my hud for gears revs and things. Allso the third person camera doesnt work for me. I realy want to know how much fuel I have left :0
 Post #33
 25th January 2010
Gold Member
Profanwolf's Avatar
June 2005
4,898 Posts
The only wheels that don't sink in, is the Ford GT wheel and the junkers.

Edited:

Okay the hummer wheels work too, but theyre too big for my camaro
 Post #34
 25th January 2010 Last edited by NikoKun; 25th January 2010 at 11:32PM..
NikoKun's Avatar
December 2007
25 Posts
Please Sakarias, put some sort of spawn limit on the cars!
Do you have any idea how easy it is for mingebags to spawn a huge number of these, and crash a server almost instantly?
Should be relatively easy to put a limit in the spawning tool, so people can only use 1, or maybe 2 at a time. There's really no reason for more.

That said, I already absolutely love this addon!

edit: Hope I didn't sound rude.
 Post #35
 25th January 2010
alexojm's Avatar
May 2009
521 Posts
Ah your inventions are so great any ideas for your next :D
 Post #36
 25th January 2010
Sakarias88's Avatar
January 2006
1,228 Posts
Please Sakarias, put some sort of spawn limit on the cars!
It's on my update list now.
 Post #37
 25th January 2010
Simmo310's Avatar
July 2009
45 Posts
Please Sakarias, put some sort of spawn limit on the cars!
Do you have any idea how easy it is for mingebags to spawn a huge number of these, and crash a server almost instantly?
Should be relatively easy to put a limit in the spawning tool, so people can only use 1, or maybe 2 at a time. There's really no reason for more.

That said, I already absolutely love this addon!

But if someone uses this for rp how can he make a profit from selling 2 cars :/

Edited:

Ive got a problem the hud speedo and fuel.... does not show up :(
 Post #38
 25th January 2010 Last edited by Sakarias88; 25th January 2010 at 07:46PM..
Sakarias88's Avatar
January 2006
1,228 Posts
But if someone uses this for rp how can he make a profit from selling 2 cars :/
I will add a slider to the admin menu so admins can set the limit by themselves.


Oh no am I the only one.

I don't see that cool speed thinge on my hud for gears revs and things. Allso the third person camera doesnt work for me. I realy want to know how much fuel I have left :0

Ive got a problem the hud speedo and fuel.... does not show up :(
That's odd.
Check the console for errors.
Maybe the hud is conflicting with another addon.
Make sure you have the use hud and third person view check boxes checked.
 Post #39
 25th January 2010
Tahrok's Avatar
March 2007
547 Posts
Wow. Great job. I would have liked to see the front wheels actually steer the car but it looks spectacular anyhow.
 Post #40
 25th January 2010
Simmo310's Avatar
July 2009
45 Posts
I will add a slider to the admin menu so admins can set the limit by themselves.






That's odd.
Check the console for errors.
Maybe the hud is conflicting with another addon.
Make sure you have the use hud and third person view check boxes checked.

I did all the above and nothing happened no errors and no hud display
Reply

All times are GMT. The time now is 06:39AM.

Facepunch Studios 2010 - Server 'MARGE'