User Triggered Map Displacement?

User Triggered Map Displacement?

Re: User Triggered Map Displacement? Posted by dagonal on Mon Oct 30th 2006 at 6:04am
dagonal
11 posts
Posted 2006-10-30 6:04am
dagonal
member
11 posts 1 snarkmarks Registered: Jan 10th 2006 Location: Canada
Hi guys,

I was just wondering if it's possible to say, when a user does a certain thing (for example, presses a button), they ground at a certain spot would displace a certain way. Basically I want an explosion that will displace the ground to resemble a small metor crash, or something along those lines.

So is it possible, and how?

Thanks in advance!
<html><head><link rel="stylesheet href="themes/standard.css" type="text/css"></head><body topmargin=2 leftmargin=2>
Re: User Triggered Map Displacement? Posted by Campaignjunkie on Mon Oct 30th 2006 at 8:07am
Campaignjunkie
1309 posts
Posted 2006-10-30 8:07am
1309 posts 329 snarkmarks Registered: Feb 12th 2002 Occupation: Student Location: West Coast, USA
No, displacements can't move. You're going to have to fake it: model the craters by hand using displacements or map geometry, cover the craters with a surface func_brush, and then toggle the func_brush when the meteor hits. The concept is kind of similar to a punji pit, except without the sharp jabby skewers at the bottom. :smile:

Alternatively, you can try hacking something together with the env_terrainmorph entity, though there's some bugs associated with it and I haven't used it personally - I'm not even sure how well it works, but you can give it a shot I guess.
Re: User Triggered Map Displacement? Posted by Orpheus on Mon Oct 30th 2006 at 11:16am
Orpheus
13860 posts
Posted 2006-10-30 11:16am
Orpheus
member
13860 posts 2024 snarkmarks Registered: Aug 26th 2001 Occupation: Long Haul Trucking Location: Long Oklahoma - USA
I think using CJ's idea you could also:

1) Have the cover layer with a high breaking tolerance (so weapons cannot shoot the spot) and have it a func_breakable. Set some sort of a blast to detonate it.

2) have a func_door on the parts to move fast downward. That way during the blast flash, you'll overlook them sinking.

/me shuts up now with stupid suggestions.

The best things in life, aren't things.
Re: User Triggered Map Displacement? Posted by dagonal on Mon Oct 30th 2006 at 9:01pm
dagonal
11 posts
Posted 2006-10-30 9:01pm
dagonal
member
11 posts 1 snarkmarks Registered: Jan 10th 2006 Location: Canada
<html><head><link rel="stylesheet" href="themes/standard.css" type="text/css"></head><body topmargin=2 leftmargin=2>
No, displacements can't move. You're going to have to fake it: model the craters by hand using displacements or map geometry, cover the craters with a surface func_brush, and then toggle the func_brush when the meteor hits. The concept is kind of similar to a punji pit, except without the sharp jabby skewers at the bottom. :smile:

Alternatively, you can try hacking something together with the env_terrainmorph entity, though there's some bugs associated with it and I haven't used it personally - I'm not even sure how well it works, but you can give it a shot I guess.
Just out of curiusity, when the func_brush is triggered the displacement would show instantly right? As opposed to animated.
Re: User Triggered Map Displacement? Posted by Campaignjunkie on Mon Oct 30th 2006 at 9:22pm
Campaignjunkie
1309 posts
Posted 2006-10-30 9:22pm
1309 posts 329 snarkmarks Registered: Feb 12th 2002 Occupation: Student Location: West Coast, USA
Yes, but if there's an explosion effect from the meteor, people aren't going to notice.
Re: User Triggered Map Displacement? Posted by dagonal on Mon Oct 30th 2006 at 10:35pm
dagonal
11 posts
Posted 2006-10-30 10:35pm
dagonal
member
11 posts 1 snarkmarks Registered: Jan 10th 2006 Location: Canada
Indeed, thank you very much. I might just make it so that the player is to far away to notice, but when they go back to the area it will have changed.

Thank you!!!<html><head><link rel="stylesheet" href="themes/standard.css" type="text/css"></head><body topmargin=2 leftmargin=2>
Re: User Triggered Map Displacement? Posted by dagonal on Tue Oct 31st 2006 at 3:49am
dagonal
11 posts
Posted 2006-10-31 3:49am
dagonal
member
11 posts 1 snarkmarks Registered: Jan 10th 2006 Location: Canada
Oh, and how do I add snarkmarks? :biggrin:
Re: User Triggered Map Displacement? Posted by Campaignjunkie on Tue Oct 31st 2006 at 7:01am
Campaignjunkie
1309 posts
Posted 2006-10-31 7:01am
1309 posts 329 snarkmarks Registered: Feb 12th 2002 Occupation: Student Location: West Coast, USA
Mark my suggestion as correct and I'll get 5 big ones. :razz:
Re: User Triggered Map Displacement? Posted by dagonal on Tue Oct 31st 2006 at 3:06pm
dagonal
11 posts
Posted 2006-10-31 3:06pm
dagonal
member
11 posts 1 snarkmarks Registered: Jan 10th 2006 Location: Canada
Even though I haven't tried it, I know it'll work.

Five big ones for you :biggrin: