Server Help

LVZ/LVL Questions - Doors?

tancred_ - Wed Aug 04, 2004 8:44 pm
Post subject: Doors?
aright, feel like a newbie map builder but, that's cause, i am, now, how do i make doors? lol, i'll figure out how to make a bot that'll open em and close em but how do i make doors? im using ssme btw
Solo Ace - Wed Aug 04, 2004 10:02 pm
Post subject:

Cyan~Fire - Wed Aug 04, 2004 10:44 pm
Post subject:
You can open/close doors with ?set Door:DoorMode. Or you can be lazy (or not sysop) and use my plugin.
Donkano - Thu Aug 05, 2004 12:19 am
Post subject:
50% Packetloss made a doorbot plugin as well.

-Donkano
Solo Ace - Thu Aug 05, 2004 2:00 am
Post subject:
Of course he did.
50% Packetloss - Thu Aug 05, 2004 5:07 am
Post subject:
Doors are given 1 bit each for a total of 8 bits. The least signigicant bit (right most) is door number 1 and the left most door tile on your tileset.

To turn on door 1 you would do ?set door:doormode:1 because 00000001 binary = 1 decimal. If you just wanted door 2 then you would do 00000010 binary = 2 decimal. Use windows caculator to do binary math, or you could do it in your head if you know binary. Doors are either open, closed or random. So in all, you use a char in C++ to represent all 8 doors and then you use bitshifting and bitwise operators to do the rest. So to close all doors ?set door:doormode=255 and to open them all ?set door:doormode:0
Cyan~Fire - Thu Aug 05, 2004 5:27 pm
Post subject:
Frick you 50%, why do you have to be so much cooler than me?
Solo Ace - Thu Aug 05, 2004 6:15 pm
Post subject:
He dedicated his life to bot coding, you didn't, you loser, you.
Game Warden - Fri Aug 06, 2004 10:10 am
Post subject:
They still make it a little to hard....if you download FACTS from subspacedownloads.com it has a handy file that tells you the right numbers to open and close certain doors using the ?set door:doormode=0-255
Solo Ace - Fri Aug 06, 2004 12:53 pm
Post subject:
He just told you how it works...
Bak - Fri Aug 06, 2004 2:30 pm
Post subject:
just think of it as powers of two
say door y is closed and you want it open.
step one ?get door:doormode
write this down let's call it x

then do 2^y and add this to x and let's call this z

type ?set door:doormode:z


doesn't get much easier than that
Mr Ekted - Fri Aug 06, 2004 3:15 pm
Post subject:
Code: Show/Hide
door 1 = 0000 0001
door 2 = 0000 0010
door 3 = 0000 0100
door 4 = 0000 1000
door 5 = 0001 0000
door 6 = 0010 0000
door 7 = 0100 0000
door 8 = 1000 0000

Bitwise OR them together. That's a single |.

All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group