Okay - for those who were asking me to look up my doors demo for Singularity 3.x I finally got a few moments this pm to locate the code.
You need the door.bb code for Singularity and to understand using it in Cartography Shop along with some extra bits of code in Singularity itself - I have included code for keys to open particular locks in doors.
You need Cartography Shop to set the properties of these objects but its very easy (if I can remember), and the resulting platforms, lifts and doors are great fun in your level.
Please email me if you want the source and a brief explanation.
IPete2.
Alienforce,
Yes my reply is on its way already :) enjoy.
IPete2.
Hi Ipete2,
Did you get my mail ?
Sammy
:)
Yes sorted on its way.
IPete2.
Thanks a lot.
BTW, it seems that there is no door to open. Do we need to add one ourselves, according to your guide? (I could see a moving fan and some stairs in the air)
Thanks in advance.
Sammy
:)
Hi Sammy,
Sorry I should perhaps have said...
Singularity 3.x is what Josh (Halo) distributed - it is totally his code and works as is, with B3d and CShop.
The Door.bb is my add on to make life easy for making doors, moving platforms, lifts etc, inside CShop which work beautifully inside Singularity. But you have to set it up correctly first. I don't have a running version of my doors code on my PC nowadays - this stuff is 2-3 years old...(perhaps I should set it up for you?)
So in answer to your question Yes you have to set it up first and the level which comes with Singularity is Josh's - and has no doors in it.
Check out the .bb I sent with your name on it - the explanation is there to install everything. The e-mail itself explains how to create a door - simply make a cube in cshop and texture it - select it and hit ctrl p for properties (or go to the pull down menu and select properties). A small dialogue box will open where you have to enter your own properties which will be a class and a value. This is a feature of CShop and you can make anything and add properties to it, but you have to understand how and where Josh has read these properties in Singularity - That's where my additional code comes in. Once correctly set up my code will read your property settings and operate the doors for you - you don't have to actually code a thing.
These properties are referred to in the .bb file. I think it is case sensitive so beware of spellings and lower case uppercase words. You can see a list of the propertiy classes in the Type field names - they are the same.
So the class might be DoorNS and a value may be 1 or 0 for if the door you are creating is facing North or South.
set the starting and ending angles, the key which will open it and other properties - set these inside CShop.
Export the map and load it into Singularity with the additional code I sent to you. Run it and you should see the door you set up and when you press the 'O' key (for open) if you have set it up correctly it will open using your properties.
Once you have one set up the rest is easy - simply add doors to your hearts content!
You can make:
rotating doors
lifting doors
droping doors
traps which open or close around you or under you
Fence people in
open up areas suddenly to reval invading forces or treasures
sliding doors
platforms which rotate or slide
lifts which go up and down (although lifts going up will not take you up with them due to collission issues and moving objects in B3d.)
Just use your imagination.
Let me know how you go on...
IPete2.