Author |
Message |
wEaViL Don't make me turn this forum around!

Age:45 Gender: Joined: Feb 17 2003 Posts: 829 Location: nc usa Offline
|
Posted: Mon Jan 12, 2004 6:58 am Post subject: Manual Doors? |
 |
|
|
|
Hmm eyes hurt from searching so imma just post this one. Ok I just made a new map and it has some tiles I have placed in certain places to keep people out or let in when I type *objon and off. I wrote down all the x and y coords for each tile and the index for them too... I was reading the lvz ini file but it just messed me all up... what I want to know is how to make it so that I can control these doors. I want object 1 to control 2 diff doors for letting piolets in and out and object 2 to allow and dissallow piolets from going into my safety areas. This is prob a easy thing but I dont understand it.... music and images are a snap lol |
|
Back to top |
|
 |
Dr Brain Flip-flopping like a wind surfer

Age:39 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: Mon Jan 12, 2004 9:13 am Post subject: |
 |
|
|
|
You use the
?set door:doormode=some_number
where some_number is from 0 to 255. Each door tile represents 1 bit. You will almost certainly need a bot to do what you want, unless you happen to run ASSS. _________________ Hyperspace Owner
Smong> so long as 99% deaths feel lame it will always be hyperspace to me |
|
Back to top |
|
 |
wEaViL Don't make me turn this forum around!

Age:45 Gender: Joined: Feb 17 2003 Posts: 829 Location: nc usa Offline
|
Posted: Mon Jan 12, 2004 10:11 am Post subject: |
 |
|
|
|
Someone shoot me now... Know of a good bot to use for it? lol |
|
Back to top |
|
 |
50% Packetloss Server Help Squatter

Age:40 Gender: Joined: Sep 09 2003 Posts: 561 Location: Santa Clarita, California Offline
|
Posted: Mon Jan 12, 2004 11:22 am Post subject: |
 |
|
|
|
http://forums.minegoboom.com/viewtopic.php?t=2082
Im not sure if the bot works, i didnt really play with it too much.
This is the formula in c++ for doors
if((doorState & 255) | (1 << i))
where doorstate is the current # that the door is and i is the number of the door you wish to turn on
and a nice function
void botInfo::setDoorMode(Uint8 mode)
{
_linkedlist <String> settings;
settings.append(new String("Door:DoorMode:" + String(mode)));
tell(makeChangeSettings(&settings));
doorState = mode;
} |
|
Back to top |
|
 |
SuSE Me measures good

Joined: Dec 02 2002 Posts: 2307 Offline
|
Posted: Mon Jan 12, 2004 12:53 pm Post subject: |
 |
|
|
|
there's a built-in 'calculator' in FACTS for people that don't like to think |
|
Back to top |
|
 |
wEaViL Don't make me turn this forum around!

Age:45 Gender: Joined: Feb 17 2003 Posts: 829 Location: nc usa Offline
|
Posted: Mon Jan 12, 2004 2:35 pm Post subject: |
 |
|
|
|
I like to think... I just been doing so much of it lately that my brain has went out on vacation lol Thx man |
|
Back to top |
|
 |
Smong Server Help Squatter

Joined: 1043048991 Posts: 0x91E Offline
|
Posted: Mon Jan 12, 2004 2:45 pm Post subject: |
 |
|
|
|
I think to turn off a bit you XOR the number (might be wise to | first just to make sure it was switched on in the first place as ^ toggles the bits). |
|
Back to top |
|
 |
|