Door! Help.
Moderator: Core Staff
Door! Help.
Ok i cant find any tuts on doors. How do you make them open and that lot.
Little help please thank you.
Little help please thank you.
Create a brush, texture it, then right click on it and select function>door. This should open up the entities box (if not, press 'n') where you can choose which direction it moves in, whether it kills people who get in the way of it, etc.
If you want a door on a hinge as opposed to a door which moves to the side then say so and I'll be happy to explain how to do that too.
If you want a door on a hinge as opposed to a door which moves to the side then say so and I'll be happy to explain how to do that too.
Why make this so complicated?
All you need to do is make a brush which will be the "door", in common look for the origin texture and make a new brush which will be the hinge of the door using the origin texture. Now select the origin brush and the door and right click on the 2d grid. Then select script/brushmodel. Press n to bring up the entities and then for key put in targetname and for value put in door. For the trigger, go to common and select the trigger texture. Make a brush using this texture where you want the button to be, right click on the brush in the 2d screen and select trigger/use. Then press n again and put in key: targetname and value: door_trig. Thats it for the mapping, now just use this simple script below and you are done.
All you need to do is make a brush which will be the "door", in common look for the origin texture and make a new brush which will be the hinge of the door using the origin texture. Now select the origin brush and the door and right click on the 2d grid. Then select script/brushmodel. Press n to bring up the entities and then for key put in targetname and for value put in door. For the trigger, go to common and select the trigger texture. Make a brush using this texture where you want the button to be, right click on the brush in the 2d screen and select trigger/use. Then press n again and put in key: targetname and value: door_trig. Thats it for the mapping, now just use this simple script below and you are done.
Code: Select all
main()
{
maps\mp\_load::main();
thread spin();
}
spin()
{
door = getent("door","targetname");
trigger = getent ("door_trig","targetname");
while(1)
{
trigger waittill ("trigger");
door rotateyaw(90,2);
door waittill("rotatedone");
}
}
Coding is Poetry. Mapping is Art.
"Cause im the sexiest mapper ever...except for nm, that sexy man" - Soviet
-=[CoDJumper.com Movies]=-
[Ambush] || [Backlot] || [Bloc] || [Bog] || [Broadcast] || [Chinatown] || [Countdown]
[Crash] || [Creek] || [Crossfire] || [District] || [Downpour] || [Killhouse] || [Overgrown]
[Pipeline] || [Shipment & Wetwork] || [Showdown] || [Strike] || [Vacant]
"Cause im the sexiest mapper ever...except for nm, that sexy man" - Soviet
-=[CoDJumper.com Movies]=-
[Ambush] || [Backlot] || [Bloc] || [Bog] || [Broadcast] || [Chinatown] || [Countdown]
[Crash] || [Creek] || [Crossfire] || [District] || [Downpour] || [Killhouse] || [Overgrown]
[Pipeline] || [Shipment & Wetwork] || [Showdown] || [Strike] || [Vacant]
-
- Core Staff
- Posts: 13313
- Joined: April 13th, 2005, 8:22 pm
- Location: UK, London
Thats pretty much what was quoted above but without the exact details, but I must admit, looking back, that tutorial could've done with some sprucing up (i'm sure I made a better version in the stickies).Nightmare wrote:Why make this so complicated?
All you need to do is make a brush which will be the "door", in common look for the origin texture and make a new brush which will be the hinge of the door using the origin texture. Now select the origin brush and the door and right click on the 2d grid. Then select script/brushmodel. Press n to bring up the entities and then for key put in targetname and for value put in door. For the trigger, go to common and select the trigger texture. Make a brush using this texture where you want the button to be, right click on the brush in the 2d screen and select trigger/use. Then press n again and put in key: targetname and value: door_trig. Thats it for the mapping, now just use this simple script below and you are done.
Code: Select all
main() { maps\mp\_load::main(); thread spin(); } spin() { door = getent("door","targetname"); trigger = getent ("door_trig","targetname"); while(1) { trigger waittill ("trigger"); door rotateyaw(90,2); door waittill("rotatedone"); } }
Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010
Coding is Poetry. Mapping is Art.
"Cause im the sexiest mapper ever...except for nm, that sexy man" - Soviet
-=[CoDJumper.com Movies]=-
[Ambush] || [Backlot] || [Bloc] || [Bog] || [Broadcast] || [Chinatown] || [Countdown]
[Crash] || [Creek] || [Crossfire] || [District] || [Downpour] || [Killhouse] || [Overgrown]
[Pipeline] || [Shipment & Wetwork] || [Showdown] || [Strike] || [Vacant]
"Cause im the sexiest mapper ever...except for nm, that sexy man" - Soviet
-=[CoDJumper.com Movies]=-
[Ambush] || [Backlot] || [Bloc] || [Bog] || [Broadcast] || [Chinatown] || [Countdown]
[Crash] || [Creek] || [Crossfire] || [District] || [Downpour] || [Killhouse] || [Overgrown]
[Pipeline] || [Shipment & Wetwork] || [Showdown] || [Strike] || [Vacant]
Who is online
Users browsing this forum: No registered users and 0 guests