Changing functions?

If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here

Moderator: Moderators

Post Reply
Splaetos
Major General
Posts: 730
Joined: Tue Jan 20, 2004 2:55 pm
Contact:

Changing functions?

Post by Splaetos »

hmmm... I had a momentary lapse of reason and gave all my doors regular door functions rather then rotating door functions. Is there any way to change the function on a brush?
When I am king, you will be first against the wall~
Image
crunch
Major
Posts: 348
Joined: Sat Jun 14, 2003 2:34 pm
Location: USA
Contact:

Post by crunch »

You can open your .map file in notepad and change the entities' classname from
"func_door" to "func_rotatingdoor"

You can easily do this to all your doors with the Find/Replace option in notepad.
Image
Splaetos
Major General
Posts: 730
Joined: Tue Jan 20, 2004 2:55 pm
Contact:

Post by Splaetos »

thanks a ton crunch.
When I am king, you will be first against the wall~
Image
dooguesgoober4
Captain
Posts: 246
Joined: Fri Oct 17, 2003 1:00 am
Location: Akron, OH
Contact:

Post by dooguesgoober4 »

Actually...it is A LOT easier if you just highlight the entity you want to de-entitize....lol...and go to Selection -> Ungroup Entity OR you can just highlight the entity and right click it and select Ungroup Entity from there.....MUCH easier than going through the script!!! :D
~DooGues~

Image
Download Now!!
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

editor

Post by tltrude »

Your .map file will open with Wordpad because Notpad can't open big files. That is just as well because Notepad doesn't have a replace feature and Wordpad does.

Another option would be to highlight all the doors and then hit key N. Then, when you type in "function_rotatingdoor" for the classname value, they will all be changed. You can also do that to give all the doors the same properties of the last door highlighted--just hit enter for each key/value.
Tom Trude,

Image
crunch
Major
Posts: 348
Joined: Sat Jun 14, 2003 2:34 pm
Location: USA
Contact:

Post by crunch »

tltrude wrote: Notepad doesn't have a replace feature and Wordpad does.
:?: Notepad certainly does have a replace function. :wink:

Image
Image
Angex
Major
Posts: 293
Joined: Mon Dec 30, 2002 1:23 pm
Contact:

Post by Angex »

Depends on what version you have, older versions only have a 'find' and 'find next' function.
User avatar
ziptie2k2
Major
Posts: 326
Joined: Wed Jan 21, 2004 5:19 pm
Contact:

Post by ziptie2k2 »

Angex wrote:Depends on what version you have, older versions only have a 'find' and 'find next' function.
Yes, I have to agree, out of the 32 or so computers were I work, only about half have the replace function. However I have never really needed to worry about it, cause I just use wordpad.
I once was lost, but now........... I'm still lost!
Post Reply