Login x
User Name:
Password:
Social Links Facebook Twitter YouTube Steam RSS News Feeds

Members Online

»
0 Active | 75 Guests
Online:

LATEST FORUM THREADS

»
CoD: Battle Royale
CoD+UO Map + Mod Releases
Damaged .pk3's
CoD Mapping
heli to attack ai
CoD4 SP Mapping

Forums

»

Welcome to the MODSonline.com forums. Looking for Frequently Asked Questions? Check out our FAQs section or search it out using the SEARCH link below. If you are new here, you may want to check out our rules and this great user's guide to the forums and the website.
For more mapping and modding information, see our Wiki: MODSonWiki.com

Jump To:
Forum: All Forums : Call of Duty 2
Category: CoD2 SP Mapping
Call of Duty 2 single player mapping, scripting and everything single player.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked
Page
Next Page
subscribe
Author Topic: doors that open on command?
wilston
General Member
Since: Sep 10, 2006
Posts: 43
Last: Nov 17, 2007
[view latest posts]
Level 2
Category: CoD2 SP Mapping
Posted: Thursday, Dec. 7, 2006 12:24 pm


does anyone have any clue how to do doors that open on command?? (ie buy pressing "F" or something?)



Share |
All-Killer
General Member
Since: May 26, 2006
Posts: 140
Last: Nov 23, 2008
[view latest posts]
Level 4
Category: CoD2 SP Mapping
Posted: Saturday, Dec. 9, 2006 12:15 pm
I can tell you.

First nou need to make youre door. Than on the side make a origin brush where youre door needs to rotate. Select the door and the origin and make it a brushmodel. Give it a targetname of door1.

Now make a trigger where you want to make the door to open. make it a trigger_use and call it door1_trig. You can add some thing to the trigger_use like when youre close to the trigger you get a message like: Press use to op the door. Now youre don with the mapping part now for the script:

Code:
door1()
{
door1 = getent ("door1","targetname");
door1_trig = getent ("door1_trig","targetname");

while (1)
{
door1_trig waittill ("trigger",user);
door1 rotateto ((0, -90,0), 1);
wait (8);
door1 rotateto ((0, 0,0), 1);
}
}


Use this. Now compile and youre ready to go!
Share |
bodyguard
General Member
Since: Jun 30, 2005
Posts: 442
Last: Dec 4, 2007
[view latest posts]
Level 5
Category: CoD2 SP Mapping
Posted: Saturday, Dec. 9, 2006 02:49 pm
http://www.modsonline.com/Downloads-full-3372.html

thats a link to a video tutorial on what ya need but one thing there is no sound for it but if you watch the tutorial and then follow exactly what all killer says you can see what he does in the video

good luck mate
bodyguard[rocking]
Share |
wilston
General Member
Since: Sep 10, 2006
Posts: 43
Last: Nov 17, 2007
[view latest posts]
Level 2
Category: CoD2 SP Mapping
Posted: Sunday, Dec. 17, 2006 01:47 am
hey...

i was wondering all-killer would u be so kind as to upload a working map with one of these doors in it? like a .map file an .gsc??

i followed ur intstructions but i must have done something wrong..

thanks
Share |
All-Killer
General Member
Since: May 26, 2006
Posts: 140
Last: Nov 23, 2008
[view latest posts]
Level 4
Category: CoD2 SP Mapping
Posted: Thursday, Jan. 4, 2007 05:46 pm
hmm oke i tell you what to do.

-make you door (just use a brush en texture it)
-make a brush where the rotating point of the door is en texture it with an origin texture (tools>origin)
- Select the origin texture and the door and rightclick> script> brushmodel
-Now with those two things still selected press ''N'' and by key add ''targetname'' and bu the value ''door1''
-now create a brush and give it a trigger texture (tools>trigger) then rightclick> trigger> use. Press ''N'' and by key add targetname and by value ''door1_trig''. now youre done.
Share |
wilston
General Member
Since: Sep 10, 2006
Posts: 43
Last: Nov 17, 2007
[view latest posts]
Level 2
Category: CoD2 SP Mapping
Posted: Sunday, Jan. 7, 2007 10:00 am
that didnt work.

ive tried a few times now in different maps. i put the script in an followed the instructions to make the door.

when u walk up to the door in the game it shows the icon for an action but nothing happens when u press "F"..

does anyone else have any other methods?
Share |
DadofAzz
General Member
Since: May 24, 2005
Posts: 1233
Last: Oct 17, 2009
[view latest posts]
Level 8
MODSCON
Category: CoD2 SP Mapping
Posted: Sunday, Jan. 7, 2007 10:35 am
Wilston, dl and have a look at this it may help

http://www.modsonline.com/Downloads-full-3469.html

The .map file is included in this IWD so you can load that into the editor and poke around even pull things apart to see better how its done.
Also you can rip out and use the scripts from the IWD

Also it may help to study stryders "moving things" tutorial in the COD section. This should give you some idea of how scripting works.
Share |
wilston
General Member
Since: Sep 10, 2006
Posts: 43
Last: Nov 17, 2007
[view latest posts]
Level 2
Category: CoD2 SP Mapping
Posted: Sunday, Jan. 7, 2007 10:52 am
wow.

i take my hat of to u sir.

i havent gone mine working yet but ur little map there is darn fine.
Share |
DadofAzz
General Member
Since: May 24, 2005
Posts: 1233
Last: Oct 17, 2009
[view latest posts]
Level 8
MODSCON
Category: CoD2 SP Mapping
Posted: Sunday, Jan. 7, 2007 10:59 am
Thank you, just keep at it and you will get it to work. Once you do you will find it easier each time hence.

doa
Share |
wilston
General Member
Since: Sep 10, 2006
Posts: 43
Last: Nov 17, 2007
[view latest posts]
Level 2
Category: CoD2 SP Mapping
Posted: Sunday, Jan. 7, 2007 11:20 am
yes!!

i got it working..

but i forgot to make another trigger to let u get back out..
Share |
Restricted Access Topic is Locked
Page
Next Page
subscribe
MODSonline.com Forums : Call of Duty 2 : CoD2 SP Mapping

Latest Syndicated News

»
Codutility.com up and runn...
Nice, and there still using the logo and template for the screenshots, which...
Codutility.com up and runn...
dundy writes...Quote:Call of Duty modding and mapping is barly alive only a ...
Codutility.com up and runn...
Mystic writes...Quote:It seems to me the like the site is completely dead? ...
Codutility.com up and runn...
It seems to me the like the site is completely dead?

Partners & Friends

»