Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
A few problems with the HPL level Editor
palistov Offline
Posting Freak

Posts: 1,208
Threads: 67
Joined: Mar 2011
Reputation: 57
#2
RE: A few problems with the HPL level Editor

I'm not sure what could be crashing your level editor when you open the entities/static_objects folders. Perhaps there are custom models you downloaded/created which are causing issues.

As for the second, make sure you turn OFF Fast Physics load in your debug menu. That's the only thing I know of that allows you to walk through walls and stuff, so perhaps that's how Mr. Water lurker is doing it. If that doesn't work, create block boxes along the walls of your room; that should do the trick.

Third, you could use ps_multiple water_drop_single.ps particles to create a rain effect. The problem is that if you place them in the editor they will all start at the same time and it will look very unrealistic to have 50 drops of rain fall at the same time. To counter this, you have to script it.

Create around 15-20 script areas placed randomly above each window and call them rain_1, rain_2, etc. If you have 3 windows you should have around 60 areas.

Then, in your OnEnter(), not your OnStart() add these functions

PreloadParticleSystem("ps_water_drop_single.ps");
for(int x=1;x<=60;x++) AddTimer("rain_"+x, RandFloat(0.01, 3.5) , "FuncRain");
//change 60 to the total amount of rain_* areas you have.

Then create the FuncRain function

void FuncRain(string &in asTimer)
{
CreateParticleSystemAtEntity("", "ps_water_drop_single.ps", asTimer, false);
}

This will spawn water drops at all of your rain_* areas randomly once the player enters. You can tweak the timer values to your liking. Hopefully it'll produce a realistic looking rain effect.

(This post was last modified: 06-07-2011, 01:22 AM by palistov.)
06-07-2011, 01:21 AM
Find


Messages In This Thread
RE: A few problems with the HPL level Editor - by palistov - 06-07-2011, 01:21 AM



Users browsing this thread: 1 Guest(s)