Fun with Crate Created 2 weeks ago2020-03-14 18:36:00 UTC by freedslave freedslave

Created 2 weeks ago2020-03-14 18:36:00 UTC by freedslave freedslave

Posted 2 weeks ago2020-03-14 18:36:00 UTC Post #343905
Hi,
Playing with JACK I wanted to make a mini Sokoban game.
Half Life Engine grants about everything. There must be way, I thought.
Then I started by the most difficult : drawing a box tied to an func_pushable.
I leave to you the easier part.
I want to push it into a specific area. Once in the area the crate should trigger an event, like the end of the level
Yet better would be to trigger an event only when every crates are settled.
With the power of HL Engine that could be a facinating puzzle game.
How could I achieve this, please ?
Posted 2 weeks ago2020-03-14 19:22:42 UTC Post #343906
Well trigger_once and trigger_multiple can be triggered by func_pushables. They have a flag for pushables. There is also a flag for No Clients, so they cannot be triggered by the player. :)

After that, it's just a case of doing the usual things, using multisources if you want multiple boxes to be in place and so on. Just check out the tutorials for that kind of thing.
UrbaNebula UrbaNebulaGoldSourcerer
Posted 2 weeks ago2020-03-15 13:04:04 UTC Post #343908
Thank you.
Your help was surely a shift forward.
Still my mini game doesn't work.
My brush aa_trigger tied to a trigger_once have the flags Pushables and No clients checked. I have also set a message to check the triggering.
However my crate-func_pushable doesn't trigger it and nothing appears.
Can you tell me why ?
Posted 2 weeks ago2020-03-15 15:22:16 UTC Post #343909
Just tried it out myself and the trigger_once "message" field doesn't appear to work for pushables. I was able trigger a light off though.
UrbaNebula UrbaNebulaGoldSourcerer
Posted 2 weeks ago2020-03-15 15:43:30 UTC Post #343912
Nevermind, I did it with your multisource tutorial.
Trogger_once can Indeed be triggered by func_pushable.
I was doing wrong.
Now, I have 3 crates open a door as I wished. The game basic is set up… But I Don't want to play anymore :-)
Buiding process is always tiring at most… and I'm a beginner!
Thank you for your help!
Posted 1 week ago2020-03-17 10:38:05 UTC Post #343914
Here's another trouble with my crate.
The hull size of the func_pushable is set to Points size.
I push it on an elevator (func_train) but there's a margin between the wall and the crate so that it's not properly on the platform.
I've amended the width of the mesh and the left margin is no more. But the margin against the South wall and the right margin remain.
Why is that please ?
Do you need the jmf file to see by yourseft ?
Posted 1 week ago2020-03-19 18:33:46 UTC Post #343931
I had a similiar issue with func_pushables in one of my maps. I believe they need to be a specific size. 32x32 or 64x64 works if I recall correctly.
UrbaNebula UrbaNebulaGoldSourcerer
Posted 1 week ago2020-03-20 18:46:53 UTC Post #343932
64x64 seems alright Indeed. Now another trick in Haf Life physic:
I'd made a slope but when I was pushing my crate on it, the box went up in the air straight to the ceiling.
I set the Buoyancy to a high level (50) and it remains on the floor.
Posted 1 week ago2020-03-20 20:15:19 UTC Post #343933
Boxes and sloped floors are indeed a quirky combination in Goldsource.
UrbaNebula UrbaNebulaGoldSourcerer
Posted 4 days ago2020-03-25 23:29:30 UTC Post #343943
https://imgur.com/gallery/2uj4M9R

For some reason it works.
Rimrook RimrookGoldsource Guru
Posted 3 days ago2020-03-26 03:44:43 UTC Post #343944
Thanks for this useful scheme. I’ll try it.
You must be logged in to post a response.