View Full Version : Quick Question, hoping for quick answere...
Edward
06-17-2004, 11:06 AM
Hi!
I'm making a very large level, doing a lot of cleaving (deleted sectors to replace objects), and a lot of locked doors. I'm just wondering, how many symbols can I have? I'm making this Multi-Locked surface COG where you knock and a message is printed. Now, how many surfaces can I have? I have 32 so far, hoping to go for 256...
/Edward
darthslaw
06-18-2004, 01:08 PM
You might instead be able to do something similar to GBK's global door cog, where a certain set of flags you specify indicate which objects are to be controlled by the cog.
Take a lookie (http://www.tbns.net/GBK/ol/cogs/cogs/gbk_door.txt) if you need to.
------------------
nytfyre m0d (http://www.nightfire.uni.cc/site/page.php) || f33l t3h p0w3r (http://www.geocities.com/qrphome/pwp3/) || t3h l0st c0gz (http://www.tbns.net/GBK/ol/index.htm) || OMF > * (http://www.bkkbazaar.com/omf/)
[This message has been edited by Darth Slaw (edited June 18, 2004).]
Edward
06-19-2004, 04:45 AM
Hm... I see... Yes, I think that could work... Problem would be to count the doors... You see, I've set a different message per door. All messages are on a CogString file. Ah, never mind... I'll try the flagging part. Flag all doors with something and test each one.
/Edward
Edward
06-19-2004, 07:01 AM
OK, that didn't work. So I ask... 2 things... One: Again, what's the limit on symbols.
Two: How do I improve this? The COG you gave was a little hard to understand.
# Appartment doors. Can be very rude.
#
# By Edward
flags=0x240
symbols
message activated
surface i local
sound knock
int j=0 local
end
#
code
activated:
j=0;
for(i=0; i<=GetSurfaceCount(); i=i+1)
{
if(GetSurfaceFlags(i) & 0x8000)
{
PlaySoundLocal(knock,1,0,0x0);
sleep(1);
jkPrintUNIString(-1, 8000+j);
j=j+1;
}
}
return;
end
Edward, that cog wont work. Your using the Activated message, but you didnt include anything that would send that message. There is no way in cog to get the Activated message from all surfaces, short of defining them all incog. Sorry.
Slaw: Dude! I forgot all about that site! http://forums.massassi.net/html/eek.gif /me gets all nostalgic...
BTW, there is an updated version of that cog here (http://shauri.hopto.org/src/gdc.cog). Its not quite as complex, and only works off the 0x10000000 thing flag...
------------------
Dear lady, can you hear the wind blow, and did you know
Your stairway lies on the whispering wind.
:w (http://shauri.hopto.org)q (http://www.massassi.net/levels/files/2533.shtml)
darthslaw
06-19-2004, 02:18 PM
<font face="Verdana, Arial" size="2">Originally posted by GBK:
Slaw: Dude! I forgot all about that site! http://forums.massassi.net/html/eek.gif /me gets all nostalgic...</font>
I only recently stumbled upon it, and it's in my sig -- hence the name "The lost cogs" http://forums.massassi.net/html/wink.gif
Oh wait, agh! I was thinking "capture all the stuff you need" (CaptureThing()) but that won't work with surfaces.
Maybe try a heap instead? Hmm...
------------------
nytfyre m0d (http://www.nightfire.uni.cc/site/page.php) || f33l t3h p0w3r (http://www.geocities.com/qrphome/pwp3/) || t3h l0st c0gz (http://www.tbns.net/GBK/ol/index.htm) || OMF > * (http://www.bkkbazaar.com/omf/)
[This message has been edited by Darth Slaw (edited June 19, 2004).]
Edward
06-19-2004, 03:48 PM
Hm... That's going to be tricky, since this level will be in MP as well...
/Edward
Powered by vBulletin® Version 4.1.5 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.