## Closed Thread Subscribe

1. my wheel code runs at an interval of 100 without any problems whatsoever. I've been working on a rewrite that includes optional movement smoothing, Angle adjustment, a crude form of predictive (not really) motion adjustment, and a bit of proper code writing and optimization. I'm predicting <20ops with any luck, though I'm willing to let it get to 40 before I cut down on features.
Optimistic x 1 (list)

2. I've noticed that people are still using props for steering wheels, or are using straight default holograms to do it. I can't stand this, so I wrote a bit of code that might inspire some people.
Code:
```@name basic E2 Steering Wheel
@inputs Steering:entity
@persist Model:string Ratio Angle

interval(100)

Model="models/steeringwheels/truckwheel.mdl"
Ratio=5

if(first()){
holoCreate(1)
holoModel(1,Model)
holoPos(1,entity():toWorld(vec(0,0,10)))
holoParent(1,entity())
}

holoAng(1,entity():toWorld(ang(A,90,0)))

Angle=entity():isWeldedTo():angles():yaw()-Steering:angles():yaw()```
I know it's dirty. Sue me.

The ratio value controls the angle amplification between the steering wheel and the steering master. Unless you use the wheels from the Steering Wheel Pack and a PHX bar for the steering master, you'll probably have to play with the angles a bit.

I don't know a whole lot about controlling hologram angles properly, so I couldn't quite figure out how to get the wheel at the proper angle, so users will have to set the angle manually by placing the E2. I wanted to have a steering wheel angle and depth adjuster, which would have been cool, but I just don't know enough yet. Enjoy.
Code:
```@name basic E2 Steering Wheel
@inputs Steering:entity
@persist Model:string Ratio Angle

interval(20)

Model="models/steeringwheels/truckwheel.mdl"
Ratio=5

if(first()){
holoCreate(1)
holoModel(1,Model)
holoPos(1,entity():toWorld(vec(0,0,10)))
holoParent(1,entity())
}

holoAng(1,entity():toWorld(ang(90,Angle,0)))

Angle=entity():isWeldedTo():angles():yaw()+Steering:angles():yaw()```
I fixed it, still no model shows. It's just a holocube, tried changing models, no effect. The code you wrote was kinda wrong, sure it was following the slave, but it was TILTING left and right(If you look to north) instead of just yawing(turning) if you know what i mean. Now i edited it so it turns to the slave correctly, so you can just place the chip on the dashboard.
Useful x 1 (list)

3. Kiwi has obviously never heard of holoParent. Additionally, you can persist Base and set it in the first statement.
Optimistic x 1 (list)

4. y so huge
thats what she said
Dumb x 4 Late x 1 (list)

5. Meh beybe haz dun a new paint job!

rate plox
Optimistic x 4 Friendly x 2 Winner x 2 Dumb x 1 (list)

6. Code:
```@name basic E2 Steering Wheel
@inputs Steering:entity
@persist Model:string Ratio Angle

interval(20)

Model="models/steeringwheels/truckwheel.mdl"
Ratio=5

if(first()){
holoCreate(1)
holoModel(1,Model)
holoPos(1,entity():toWorld(vec(0,0,10)))
holoParent(1,entity())
}

holoAng(1,entity():toWorld(ang(90,Angle,0)))

Angle=entity():isWeldedTo():angles():yaw()+Steering:angles():yaw()```
I fixed it, still no model shows. It's just a holocube, tried changing models, no effect. The code you wrote was kinda wrong, sure it was following the slave, but it was TILTING left and right(If you look to north) instead of just yawing(turning) if you know what i mean. Now i edited it so it turns to the slave correctly, so you can just place the chip on the dashboard.
Code:
```@name basic E2 Steering Wheel
@inputs Steering:entity
@persist Model:string Ratio Angle

interval(100)

Model="models/steeringwheels/lambowheel.mdl"
Ratio=1

if(first()){
holoCreate(1)
holoModel(1,Model)
holoPos(1,entity():toWorld(vec(0,0,10)))
holoParent(1,entity())
}

holoAng(1,entity():toWorld(ang(Angle*Ratio,90,0)))

Angle=entity():isWeldedTo():angles():yaw()+Steering:angles():yaw()```
I had no problems with this code here. I get no tilting effect you describe. To get the model to show, you need to have the Steering Wheel Model Pack, Wiremod Extras, and the concmd "wire_holograms_modelany" activated. Your changes ended up increasing the opcount to the low 50s, as opposed to mid 10s. Not really a"fix".
Optimistic x 1 (list)

7. post your current steering wheel code v3
Funny x 1 Optimistic x 1 Agree x 1 (list)

8. Yea no, just realized I did no "fix" at all, sorry. I have all those stuffs except that command activated.
Might wanna tell people to activate that command when releasing the code, since noone has it activated as default (atleast I didn't). I had no clue, I might just be retarded.

Also, Facepunch is doing trickz with your minds. Can't trust it anymore!

Edit: I didn't get your edit, but it came up when i pressed reply. Wasn't that funny anymore.
Optimistic x 2 (list)

9. yeah, I ended up editing the post about 4 times in 1 and a half minutes, so FP might have gotten confused. When I first posted the code, I forgot that it needed a command.

Anyways, I just wanted a nice little 1 hologram steering wheel E2 that worked properly and was simple to use. i found it simple to use and effective, so I figured I might as well let everyone else have it.

Damn, I'm rereading all my posts and I sound like an arrogant douchebag reading them to myself.
Optimistic x 1 (list)

10. Damn, I'm rereading all my posts and I sound like an arrogant douchebag reading them to myself.
I hate when that happens to me.
Funny x 8 (list)

11. I hate when that happens to me.
HAHAHAH the pic gave me a good laugh!
Disagree x 4 Friendly x 1 (list)

12. ah, steering wheel drama
Funny x 1 (list)

13. thread needs more drama
I've had a few people ask me how to do this. It's not hard, it gets rid of the wheel2 wobbles.
Informative x 2 (list)

14. Since I'm too lazy and unmotivated to make full contraptions I'm just making small gizmos. I can attach this w/ or w/o roadwheels, wire & scale it, and boom, tank tracks. Pretty much anyone could use it.
You gonna release that? :O
Agree x 1 (list)

15. You gonna release that? :O
when i get all the bugs ironed out. It still has one part not in the vid that acts weird occasionally at certain angles.

Actually it's better on a normal contraption than this, this is a shitty example, I was driving around a hl2 vehicle so the physics is all weird.
Edited:
Told you so.
Winner x 6 Artistic x 1 (list)

16. thread needs more drama
I've had a few people ask me how to do this. It's not hard, it gets rid of the wheel2 wobbles.
This is pretty much the same as I've done for ages except that I use Precision Alignment instead because it allows me to have the absolute center of the prop instead of it being off-center.
Optimistic x 1 (list)

17. Alright, time for more WIP. T-truck! Not done yet, still has some work to do, but the suspension is great.
The paint seems to horrible though.
BAJA 2012 @ Garrysmod, yup.. bring it.

This picture below was without springs.

Artistic x 2 Optimistic x 1 (list)

18. This is pretty much the same as I've done for ages except that I use Precision Alignment instead because it allows me to have the absolute center of the prop instead of it being off-center.
I don't remember how to make PA do that, use one prop's masscenter attaching to another prop. If I did I'd do that myself, though the tut was for people who don't use PA anyway. Oh well.

19. I don't remember how to make PA do that, use one prop's masscenter attaching to another prop. If I did I'd do that myself, though the tut was for people who don't use PA anyway. Oh well.
If I have any time after next weekend I might make a tutorial on it. I already promised a lot of people to make a suspension tutorial.
Friendly x 1 (list)

20. Masscenter to edge is like one of the easiest things to do with PA, dude

21. when i get all the bugs ironed out. It still has one part not in the vid that acts weird occasionally at certain angles.

Actually it's better on a normal contraption than this, this is a shitty example, I was driving around a hl2 vehicle so the physics is all weird.
Edited:
Told you so.
Damn red, that's awesome. How many ops?

22. Damn red, that's awesome. How many ops?
Averages around 230. It's on hold though, since somehow wire broke rangerFilter() and rangerHitEntites(0) and now I am rage.
Edited:
I might end up having to recode half of it just because of that, basically changing the way it works from the ground up. FUCK.

23. Averages around 230. It's on hold though, since somehow wire broke rangerFilter() and rangerHitEntites(0) and now I am rage.
Edited:
I might end up having to recode half of it just because of that, basically changing the way it works from the ground up. FUCK.
Eh, hold off a bit. Wire generally isn't bad in turning those issues around pretty quickly. Also, that's much cheaper than I ever imagined.
Friendly x 1 (list)

24. I have found the epicentre of gmod scrubs, http://www.reddit.com/r/gmod/

I have sybscribed to that subreddit in the facking hopes someone on there ISN'T A RAGDOLL POSING 12 YEAR OLD,
They see an airboat painted rust colour and wings on it and they BEG for a dupe holy shit I want to nuke this community, set it on fire. Everything I have posted gets no votes but funny enough I don't think it gets posted as it is all filtered ragdoll BOOSHET

damn damn rant over This really rustled my jimmies

http://imgur.com/a/9ScAE/ wow man sweet ride..

http://imgur.com/a/LFK5X AWESUM
Dumb x 1 (list)

25. I want to see a reddit gmod server
Disagree x 1 (list)

26. Ferdinand Full working :3

100mm gun with a max penetration of 173 mm

20max Mph

Realistic armor :3
Winner x 3 Artistic x 1 (list)

27. Ferdinand Full working :3
that came out very nice!!

Eh, hold off a bit. Wire generally isn't bad in turning those issues around pretty quickly. Also, that's much cheaper than I ever imagined.
I'll put in a trouble ticket I guess. There's a workaround I haven't tried, offset the tracing around the roadwheels and then shifting the vectors, so not all is lost. And thanks. I tried to make them something that we could realistically see on all tanks as standard in time.

28. Masscenter to edge is like one of the easiest things to do with PA, dude
Yeah, I know that, but who in their right mind would make a tutorial about that. I'm talking about setting custom positioning and using constraints, advanced mirroring and shit like that that most people don't know how to do.

29. It's on hold though, since somehow wire broke rangerFilter() and rangerHitEntites(0) and now I am rage.
There is nothing wrong with rangerFilter() or rangerHitEntities(). Are you sure you are using them correctly? How are you getting the array of entities to filter? Are you using rangerPersist(1)? Are you persisting other variables correctly?

You should be doing something like this

Code:
```if (first())    {
E = entity()

C = entity():getConstraints()

rangerFilter(C)
rangerPersist(1)
runOnTick(1)
}```
Add any other entities you want to filter to the array using C:pushEntity(entity()).

30. Yeah, I know that, but who in their right mind would make a tutorial about that. I'm talking about setting custom positioning and using constraints, advanced mirroring and shit like that that most people don't know how to do.
Ah, PA constraints are fun. They are like the best thing ever for creating and updating suspension on cars.

31. Some truck wip
Artistic x 2 Winner x 1 (list)

32. Some truck wip
What wheels are those?

33. What wheels are those?
A shitty wheel pack I made, which tbh I am surprised people actually use.

http://www.garrysmod.org/downloads/?a=view&id=121590
Winner x 1 (list)

34. A shitty wheel pack I made, which tbh I am surprised people actually use.

http://www.garrysmod.org/downloads/?a=view&id=121590
Shitty? No. You should do some more wheels! A huge wheel pack would be much appreciated!

Edit: A new funny project, was bored so I thought why not? Works great in high speed, just a bit of a turn issue. Oversteers and flips over, fixed it but still horrible turning.

Funny x 4 Artistic x 1 (list)

35. A shitty wheel pack I made, which tbh I am surprised people actually use.

http://www.garrysmod.org/downloads/?a=view&id=121590
They look pretty good to me.

36. There is nothing wrong with rangerFilter() or rangerHitEntities(). Are you sure you are using them correctly? How are you getting the array of entities to filter? Are you using rangerPersist(1)? Are you persisting other variables correctly?

You should be doing something like this

Code:
```if (first())    {
E = entity()

C = entity():getConstraints()

rangerFilter(C)
rangerPersist(1)
runOnTick(1)
}```
Add any other entities you want to filter to the array using C:pushEntity(entity()).
got it. accidentally left a # in front of rangerPersist(1) lol

To do:
-Attempt to add a rotation function for other optional textures (since some of the textures are different directions)
-Add a slack track feature
-Try to cut op count down to 150
-Make the coloring system a bit easier (right now it's just stuck at a default color)
-Possibly add built-in sound effects
-Beta test on standard tanks (probably gonna get help on this)

Also your wheel pack is very good unrezt

Edited:

Edit: A new funny project, was bored so I thought why not? Works great in high speed, just a bit of a turn issue. Oversteers and flips over, fixed it but still horrible turning.

nice! You could have the rear axle on hydraulics so it keeps the body to the proper angle...ther'es a top gear floating around where Jeremy drove a 3-wheeler that does that but I can't find it.

37. Being holograms, you could probably get away with using intervals as high as 90 without noticing any differences; I know for my inverse kinematics I use 45 and it cuts the ops down by like 300% with no change in appearance.

38. nice
Friendly x 1 (list)

39. Being holograms, you could probably get away with using intervals as high as 90 without noticing any differences; I know for my inverse kinematics I use 45 and it cuts the ops down by like 300% with no change in appearance.
so far a tickrate of 175 has worked wonderfully and kept ops down to the mid 150s. The video was posted with a tickrate of 125 and ran around 200 ops.

also this thread needs more dragons.
Friendly x 1 (list)

40. so far a tickrate of 175 has worked wonderfully and kept ops down to the mid 150s. The video was posted with a tickrate of 125 and ran around 200 ops.

also this thread needs more dragons.
Heh, sort of gave up on that. IK gets very complicated when you go past two segments(dragon legs are 3 segment digitigrade).
Informative x 2 (list)