Welcome, Guest. Please login or register.

Author Topic: Tutorial: SwingingDoors! - Medium Mapping Skills  (Read 8958 times)

0 Members and 1 Guest are viewing this topic.

Offline Global_Meltdown

Tutorial: SwingingDoors! - Medium Mapping Skills
« on: February 11, 2010, 07:25:30 AM »
Alright, I said I'd start making some Tutorials so why not start here.
---------------------------------------------------------------------------------------


Ok today we're going to learn how to do a physics (spring) hinged door.


I'll create a small square room with two lights in it.


Inside this test room I'm going to select the brush tool and make a post
or frame for my door to sit against.


Ok now depending on how many doors you want, depends on how many hinges you'll need
so for this example we'll place a double swinging door. To do that we'll select the right
post and right click and select "TIE TO ENTITY" Func_Brush to each one specifically. (NOT ALL TOGETHER LIKE THIS) or you'll have problems later on.


Now name the left side something, I named mine FrameLeft.


Now name the right side something, I named mine FrameRight.


Now I'm going to place the doors. (When making your doors its a good idea to
make a space between the door and the frame for better performance)


Now Select your doors one at a time.

First door to the left we'll right click and select "TIE TO ENTITY"


Now select Func_Physbox

Name your LEFT door whatever you want. I named mine "door1".


Do the same to the right side.

Right Click, select "TIE TO ENTITY"

Now select Func_physbox

Name your RIGHT door the same as the first except in numerical order to
keep it simple. So mine is door2.


After that we'll select the entity tool and browse through the objects till
we find something called "PHYS_HINGE"


Now place this at the center of the door to the left side.


Now right click your "PHYS_HINGE" and select properties if the window isn't already
up, and edit a couple of lines:


Name: Hinge1
Entity 1: FrameLeft (This is your frame piece it's connected too)
Entity 2: Door1 (This is the door the PHYS_HINGE will be attached too)

Ok now lets take our selected "HINGE1" and drag the center ball to the top of the door.


Ok Now we'll do the same for the other door
select the entity tool and browse through the objects till
we find something called "PHYS_HINGE" Now place this at the center of the door
to the right side.

Now right click your "PHYS_HINGE" and select properties if the window isn't already
up, and edit a couple of lines:

Name: Hinge2
Entity 1:FrameRight (This is your frame piece it's connected too)
Entity 2:Door2 (This is the door the PHYS_HINGE will be attached too)


Ok now lets take our selected "HINGE2" and drag the center ball to the top of the door.


Awesome so we have hinged doors, now comes the spring part. STAY WITH ME !

Go to your Entity Tool, browse through the objects till you get something called "PHYS_SPRING"
and place this in the center of the left door.


Now were going to right click and select Properties if the window isn't up and edit a couple of lines

Name:Spring1 (What I named my Phys_Spring)
Entity 1:Door1 (Left Door)
Entity 2:Door2 (Right Door)
Spring Constant: 900 (This is the stiffness of the spring, play around with it to find what number suits you.)
exit this window (Always remember to hit Apply)

Now drag your ball across the left door to the center of the right door

IF your really motivated, you can set up individual springs for each door side, but this is a great start.

Now you should have something that looks like a room and a couple of doors.
Place your info_player_start or your spawn entity (I'm using ZPS for my example) So I'll place 1 Info_Player_Human
and 1 Info_Player_Zombie. (This is important if you want to explore your map)


Now make sure you have no leaks or anything and hit F9. Shortly after a screen to compile your map should appear.

I select Normal for all, choose what you wish if you know the difference.

and click "OK"

A screen like this should appear and hopefully with no errors.


Either load up your map upon completion by going to your game and selecting create server
then select your map (Mine is saved as "PhysHingeTutorial" ) or set the run map when completed option after compiling.

If you've ever wondered how to test your map (ZPS specifically) open your developer console
using the "~" tilde key below the ESC button in the upper left of your
keyboard.

In the console type Sv_testmode 1 for THEN select F1 or F2 for human or zombie.
Type Kill in the console if your want to reselect.
Type Sv_cheats 1 then type NOCLIP to fly around your map if you wish.

I hope you enjoyed my tutorial, and if you did I'll look forward to making more.
If you have any questions email me. Youlostchris@gmail.com




Here's the link to the Hammer/ZPS Map example that I made for this if you need more help.
http://www.filefront.com/15555665/SwingingDoors.rar

Please do not redistribute without credit + permission thanks :)
----------------------------------------------------------------------------------------------
Let me know what you guys think.


9:04 PM - (=CG=)Lone Mudkips: Something happened to me that is so vile, that I want to go out in a rampage
9:05 PM - (=CG=)Lone Mudkips: brb
9:05 PM - Global_Meltdown: k
9:05 PM - Global_Meltdown: :\
9:05 PM - (=CG=)Lone Mudkips: Do you want to know?
9:05 PM - Global_Meltdown: yeah
9:05 PM - (=CG=)Lone Mudkips: Do you REALLY want to know?
9:06 PM - (=CG=)Lone Mudkips: There is a Justin Bieber sticker on one of my binders for school.
9:06 PM - (=CG=)Lone Mudkips: That makes me mad
9:06 PM - Global_Meltdown: hahahaha
9:06 PM - Global_Meltdown: pwned
9:06 PM - (=CG=)Lone Mudkips: EFF U WURLD

Offline Hollow

Re: Tutorial: SwingingDoors! - Medium Mapping Skills
« Reply #1 on: February 11, 2010, 12:41:48 PM »
Wow..All that just to make a door..

Conjoint Gaming [Game On]

Re: Tutorial: SwingingDoors! - Medium Mapping Skills
« Reply #1 on: February 11, 2010, 12:41:48 PM »

Tictactoe360

  • Guest
Re: Tutorial: SwingingDoors! - Medium Mapping Skills
« Reply #2 on: February 12, 2010, 01:43:40 PM »
Wow..All that just to make a door..

A swinging Door

Offline Global_Meltdown

Re: Tutorial: SwingingDoors! - Medium Mapping Skills
« Reply #3 on: February 12, 2010, 05:50:13 PM »
a spring restrained swinging door :P  I know it seems difficult but once you start with the small stuff and work you way up it's not so bad.

Any suggestions for the next one?


9:04 PM - (=CG=)Lone Mudkips: Something happened to me that is so vile, that I want to go out in a rampage
9:05 PM - (=CG=)Lone Mudkips: brb
9:05 PM - Global_Meltdown: k
9:05 PM - Global_Meltdown: :\
9:05 PM - (=CG=)Lone Mudkips: Do you want to know?
9:05 PM - Global_Meltdown: yeah
9:05 PM - (=CG=)Lone Mudkips: Do you REALLY want to know?
9:06 PM - (=CG=)Lone Mudkips: There is a Justin Bieber sticker on one of my binders for school.
9:06 PM - (=CG=)Lone Mudkips: That makes me mad
9:06 PM - Global_Meltdown: hahahaha
9:06 PM - Global_Meltdown: pwned
9:06 PM - (=CG=)Lone Mudkips: EFF U WURLD

Offline JuNk^m@st3r

Re: Tutorial: SwingingDoors! - Medium Mapping Skills
« Reply #4 on: February 12, 2010, 07:16:50 PM »
Nice Work :D tested it out, made it like u say and it worked out good, but the Springs are a pain in the ass, hard to find the right setting, sometimes the doors just don't stop swinging =P

But good one, easy to understand and do =D

^^AND I SAY LOLZOR AND U CANT DO SH*T ABOUT IT!



Offline Global_Meltdown

Re: Tutorial: SwingingDoors! - Medium Mapping Skills
« Reply #5 on: February 12, 2010, 08:57:02 PM »
Cool :)

 Yeah the springs are kind of shitty, but you can adjust the friction on the door or the springs i believe to make it slower somehow. If you want i'll take another look later.


9:04 PM - (=CG=)Lone Mudkips: Something happened to me that is so vile, that I want to go out in a rampage
9:05 PM - (=CG=)Lone Mudkips: brb
9:05 PM - Global_Meltdown: k
9:05 PM - Global_Meltdown: :\
9:05 PM - (=CG=)Lone Mudkips: Do you want to know?
9:05 PM - Global_Meltdown: yeah
9:05 PM - (=CG=)Lone Mudkips: Do you REALLY want to know?
9:06 PM - (=CG=)Lone Mudkips: There is a Justin Bieber sticker on one of my binders for school.
9:06 PM - (=CG=)Lone Mudkips: That makes me mad
9:06 PM - Global_Meltdown: hahahaha
9:06 PM - Global_Meltdown: pwned
9:06 PM - (=CG=)Lone Mudkips: EFF U WURLD

Offline billynoggs cade master

Re: Tutorial: SwingingDoors! - Medium Mapping Skills
« Reply #6 on: September 07, 2010, 03:34:39 PM »
seriously if any1 doesnt know how to a phys_hinge should be shot

Offline JuNk^m@st3r

Re: Tutorial: SwingingDoors! - Medium Mapping Skills
« Reply #7 on: September 07, 2010, 04:10:18 PM »
we had a first time for everything =P
^^AND I SAY LOLZOR AND U CANT DO SH*T ABOUT IT!



Offline vinnylord

Re: Tutorial: SwingingDoors! - Medium Mapping Skills
« Reply #8 on: September 07, 2010, 05:59:19 PM »
seriously if any1 doesnt know how to a phys_hinge should be shot

SHOOT ME HONEY!!!
*blanc* WOOT WOOT

Offline Jorgen

Re: Tutorial: SwingingDoors! - Medium Mapping Skills
« Reply #9 on: September 07, 2010, 07:07:29 PM »
go ahead shoot me 2 i forgot =D

Offline billynoggs cade master

Re: Tutorial: SwingingDoors! - Medium Mapping Skills
« Reply #10 on: October 02, 2010, 12:57:47 PM »
dumbasses will be shot and and survivors will be shot again.

Offline Wholegrain

Re: Tutorial: SwingingDoors! - Medium Mapping Skills
« Reply #11 on: October 03, 2010, 09:58:05 PM »
and necromancers will be anally penetrated

Offline Dante

Re: Tutorial: SwingingDoors! - Medium Mapping Skills
« Reply #12 on: October 15, 2010, 04:59:07 PM »
and necromancers will be anally penetrated
Necromancer here.

Offline Yahtzee

Re: Tutorial: SwingingDoors! - Medium Mapping Skills
« Reply #13 on: October 16, 2010, 01:00:08 PM »
we need more of these

U MAD???

  • Guest
Re: Tutorial: SwingingDoors! - Medium Mapping Skills
« Reply #14 on: November 27, 2010, 09:44:48 PM »
what program are u using and if free link?

Conjoint Gaming [Game On]

Re: Tutorial: SwingingDoors! - Medium Mapping Skills
« Reply #14 on: November 27, 2010, 09:44:48 PM »

 


* ShoutBox!

Refresh History

SimplePortal 2.3.5 © 2008-2012, SimplePortal