NOTEME This tutorial was originally written by Sneaky Acolyte and Thiefs_Pawn and stored at the Dromed Central. The Thief 2 version was originally written by Hidden in shadows. My comments follow the same syntax as this one. Everything else was written by Sneaky Acolyte, Thiefs_Pawn, and Hidden in shadows.
A tutorial for making a guard that carries a lantern and lights up your visibility gem. T1/Gold only
This was originally two articles. There is likely redundant information that should be cleaned-up.
This is a tutorial for a guard that carries a lantern and lights up your visibility gem. This was made for Thief: TDP and Thief: Gold. It is not for Thief II as one can use the Renderer→Dynamic Light instead. This was added to by Dan “Thiefs_Pawn” Corder after being originally created by Daniel “Sneaky Acolyte” Garcia. We are not to be held responsible for any damages caused by this document or the following of the directions held within. It is highly recommended that you read a tutorial on Sources and Receptrons prior to reading this document. It is assumed that all preliminary actions of building a level have been implemented.
This tutorial will explain two ways of creating lantern guards, though the second is really just an extension of the first. The default AI→Utility→Visibility Control settings for a Ramirez guard are shown below:
|Corner lean mod||1059481190|
We are really only interested in the first three of these settings. It seems that these numbers represent the intensity of light Garrett must be in to be regarded as being in low, medium, or high light by the AI. The other numbers modify the light intensity depending on Garrett’s posture and speed so we can leave them alone. So to make Garrett more visible all we need to do is set the top three numbers to lower values.
Stuff you need for both methods:
As we want 2 light levels we need to divide the light level numbers above by 2 and use these numbers as the increments, which we’ll reduce the numbers by. So for ‘highest’ we need to add the property AI→Utility→Visibility Control as below:
|Corner lean mod||1059481190|
We can also add
to all the guards as a safe-guard.
Now we need to create a custom stim:
Next we will set up the lantern:
No Max Firings
Now we need to make the new stim affect Garrett:
That’s it, this method is relatively simple but does have a couple of drawbacks - the extra light doesn’t know about walls or corners and so will pass straight through them. In areas with thick walls and gentle bends this is not a problem and this method is fine. However if you want to make your lantern work in a more realistic manner you’ll need to read on to…
Do all the stuff in method 1 using more light levels if you want. E.g. add two more guards (medium and higher) with AI→Utility→Visibility Control set up as below:
And alter the receptrons on Garrett to use these new visibility levels.
The first thing we need to deal with is the light traveling through walls. This is actually surprisingly easy; all we need to do is change the source on the lantern:
Line of sight (raycast)
and voila you can sneak up on guard around a corner and not be lit up until you round the corner. The only problem now is that if you duck back round the corner you’ll still be lit up and will stay that way forever A solution is to add another source to the guard carrying the lantern with a radius a lot larger than the light radius and no ‘Line of sight’ flag set on the shape. To do this:
No max firings
The reason for adding the source to the guard and not the lantern is that if the guard is knocked out and falls forward and is then picked up and dropped by the player the lantern drops completely below floor level and its sources seem to stop having any effect (even without the ‘Line of Sight’ flag checked). This way the player will always revert to normal visibility.
So there you go working lantern guards, which method you choose depends on whether or not you need the extra realism, as it does cost extra processing power to do the second source and probably to calculate the line of sight for the first source.
Notes: The values used in this tutorial for radii, light intensity and Source strength are only a guide. You can have a much more powerful lantern if you wish, you’ll just need to experiment with the LanternStim‘s range and the Receptron’s intensities until you get an effect that looks right. Just remember that in the second method the stim on the guard must be much larger than radius at which Garrett starts to be lit.
Remember: You must include your custom gamesys in your
.zip, so that other Thief players can play your mission.
Daniel “Sneaky Acolyte” Garcia
dgarcia at techie dot com
with additions by
Dan “Thiefs_Pawn” Corder
thief at dancorder dot com
Special Thanks to Totality and the TTLG Editors’ Guild.
Lantern Guard Tutorial by Hidden in shadows, Janne Kahkonen (please note that the Dynamic light ability cannot be used in DromEd 1 only DromEd 2). I know other people have already written a tutorial regarding a guard with a lantern but I feel it my duty to present my own version that I believe is much easier to comprehend and perform. I am not the best tutorial writer in the world but here goes. I assume you already know how to do the basics like creating a starting point, rooms, the necessary scripts etc…
Left FingersNow you’re almost complete, its just the lantern left.
Congratulations! Now it’s just to run the level and behold the beauty. Copyright Janne Kahkonen 2002 and onward.