Conveyor direction Created 5 years ago2019-03-26 19:37:39 UTC by freedslave freedslave

Created 5 years ago2019-03-26 19:37:39 UTC by freedslave freedslave

Posted 5 years ago2019-03-26 19:37:39 UTC Post #342333
Hi,
I would like to change the steering of a func_conveyor with a button Forward/Backward.
It must be something with the yaw degree but I can't figure it out.
Also is there a tutorial about "building a whole conveyor" like the one in the factory? with animated texture, rotating gears… 1
Thanks
Posted 5 years ago2019-03-27 00:35:33 UTC Post #342335
I don't think there's a whole tutorial here. But yes, yaw direction sets the direction the conveyor moves and pushes. You use it with a SCROLL texture (not an animated texture) to be precise.
Posted 5 years ago2019-03-27 14:22:34 UTC Post #342339
Note that func_conveyor converts the angles value to the appropriate movedir setting, so changing the angles of the entity will not update the conveyor direction. Changing angles will change the physical orientation of the entity.

See https://github.com/ValveSoftware/halflife/blob/5d761709a31ce1e71488f2668321de05f791b405/dlls/bmodels.cpp#L156

SetMoveDir converts the angles.
Posted 5 years ago2019-03-27 18:02:29 UTC Post #342340
It's not for a real map. I just wanted to play with the entity func_conveyor.

As I said I thought it would be fun to change its steering with a button. It requires a third entity which change both the angles of the func_conveyor and the angle of its scroll texture.

I give up.

What this source file is used for ? I can't handle it.
Would it make the trick in any way ?
Posted 5 years ago2019-03-27 19:26:37 UTC Post #342342
It's part of the Half-Life SDK.

If you're willing to make a custom mod you could make an entity that can set the movedir value for the conveyor.

Changing the angles will physically rotate the entire conveyor, but changing only the texture rotation is not possible.
Posted 5 years ago2019-03-27 20:24:40 UTC Post #342343
to switch between forward and backward just target and trigger the func_conveyor... you can always decompile hl maps with bsptwomap and see how its done
Posted 5 years ago2019-03-28 08:57:18 UTC Post #342347
I’m pretty sure that bmodels.cpp can do exactly what I want. It contains all about entities and their parameters. Programming allows everything but my neuronal network doesn’t. Besides I don’t have Visual Studio 2k. The IDE CodeBlocks can’t do anything with it?
Posted 5 years ago2019-03-28 09:09:41 UTC Post #342348
Visual Studio 2017 Community is free: https://visualstudio.microsoft.com/downloads/
Posted 5 years ago2019-03-28 09:28:09 UTC Post #342349
I may read the tutorials on the suject on GameBanana, especially https://gamebanana.com/tuts/12805 .
But I don't expect to end with something effective due to the network. The synapses are malfunctionning and, if I can make the comparison, the line betwen them bear a slow bandwidth.
Posted 5 years ago2019-03-28 10:35:16 UTC Post #342350
I didn't know it was that simple. A func_button which target is the name of a conveyor and the steering switch is performed automatically for both, the texture and the conveyor.
All have been foreseen by the Half-Life makers. Thank you Bruce.
You must be logged in to post a response.