Object that moves randomly

Any aspects of level design for the Source engine.

Object that moves randomly

Postby Azet on Wed Jan 08, 2014 7:16 pm

Hey, I want to make square map (4x4 rooms) with moving object that randomly chooses its path (left, right, forward but no backward) every time it passes the doors. Is it possible without scripting? I figured out that with func_tracktrain I can make it moving forward and left or right but it's not exactly what I want to see, because there are only two directions instead of three.

In the image below green indicates rooms and red indicates object's path

Image
Azet
Dumpling
Dumpling
 
Joined: Wed Jan 08, 2014 7:13 pm

Re: Object that moves randomly

Postby LordDz on Wed Jan 08, 2014 10:07 pm

A bit of a hackish way, but I would probably use a lot of logic_cases.

So for each path_track, there would be 1-3 logic_cases (each for which direction it came from, to prevent it from going back the direction it came from).

Then these logic_cases would have two or three cases which would set the path for the tankttrain to use.
I'll whip up a vmf/some pictures if needed.
User avatar
LordDz
May Contain Skills
May Contain Skills
 
Joined: Mon Sep 01, 2008 12:28 pm
Location: Hammer Crash Logs

Re: Object that moves randomly

Postby Azet on Thu Jan 09, 2014 11:44 am

Yeah, I would like to see .vmf of this because it's hard to imagine that :) For example how it works if object moves to the path with 3 or 4 branches? Path only have "standard" direction and alternative.
Azet
Dumpling
Dumpling
 
Joined: Wed Jan 08, 2014 7:13 pm

Re: Object that moves randomly

Postby LordDz on Thu Jan 09, 2014 2:34 pm

Which source game is this for? Portal and CSGO or an older engine? I think I may be able to do it with CSGO or Portal, since an entity in there (func_tracktrain) has an input (MoveToPath) that doesn't exist in the older versions.
User avatar
LordDz
May Contain Skills
May Contain Skills
 
Joined: Mon Sep 01, 2008 12:28 pm
Location: Hammer Crash Logs

Re: Object that moves randomly

Postby Azet on Thu Jan 09, 2014 4:11 pm

I thought about CSS but CSGO may also be.
Yes, I've seen recently that in CSS there's only TeleportToPathNode and in CSGO there's also MoveToPathNode.
Azet
Dumpling
Dumpling
 
Joined: Wed Jan 08, 2014 7:13 pm

Re: Object that moves randomly

Postby Azet on Mon Jan 13, 2014 7:18 pm

Any chance to make this?
Azet
Dumpling
Dumpling
 
Joined: Wed Jan 08, 2014 7:13 pm

Re: Object that moves randomly

Postby LordDz on Mon Jan 13, 2014 8:03 pm

I tried a bit with this, and it's probably doable but I just don't have time atm.
Here's the .vmf I tested with, maybe you can do something with it.
https://dl.dropboxusercontent.com/u/7315285/Maps/CSGO/hl2_rooms.vmf (Open with the CSGO sdk). I'm pretty sure it's the latest version.
Just wondering, what's the actual use for this?
User avatar
LordDz
May Contain Skills
May Contain Skills
 
Joined: Mon Sep 01, 2008 12:28 pm
Location: Hammer Crash Logs

Re: Object that moves randomly

Postby Azet on Tue Jan 14, 2014 12:56 pm

Thx for that one, but it seems kinda buggy as you know propably. I can open file with CSS but with CSGO it crashes hammer when loading. I'm trying to make cave map with 3rd person view and ghost in it :)
Azet
Dumpling
Dumpling
 
Joined: Wed Jan 08, 2014 7:13 pm

Return to Hammer Editor Help

Who is online

Users browsing this forum: Bing [Bot]