This is an intermediate tutorial and I assume you
can make a basic room and lights.
This tutorial will show you how to go undercover like
in m2l2a. Let's begin!
I made 3 rooms with doors connecting them. I also made
a room with lockers and a bench.
On one of the benches, put a script model with keys
and values of:
model: animate/pulse_papers1.tik
targetname: papers
A set of level 1 papers will appear.
Add another script model with keys and values of:
model: items/officer_uniform.tik
targetname: suit
Again a set of officer uniform will appear. Put everything
in position. Now make a trigger use over the 2 items.
Give it a targetname of "trigger".
Add some soldiers around. You will notice that they
will salute you. Also add a sentry (ai_german_elite_sentry).
Press "i" to bring up the properties. Only
change the following :
type_attack : alarm
type_diguise : sentry
The sentry will ask for your papers. If you don't show
him, he will kill you! You may also want to add an officer
(german_elite_gestapo) and press "i" again
to give him properties of :
type_attack : alarm
type_disguise: officer
The officer will kill you when you show him your papers.
Just kill him.
$player item weapons/silencedpistol.tik
//gives you a silenced
//pistol
$player ammo pistol 1000
$player useweaponclass pistol
thread hints
thread disguise
////////////
hints:
local.key = getboundkey1 "Holster"
iprintlnbold_noloc (loc_convert_string "Press
the ( ") local.key (loc_convert_string
" ) key to holster your weapon.")
wait 1
iprintlnbold "If your weapon is not holstered"
iprintlnbold "your cover will be blown."
wait 2
end
disguise:
$trigger waittill trigger //the
trigger used in above
$suit remove //removes
the suit
$papers remove //removes
the papers
iprintlnbold "Show your papers when asked."
local.key = getboundkey1 "toggleitem"
iprintlnbold_noloc (loc_convert_string "Press
the ( ") local.key (loc_convert_string
" ) key to show your papers.")
$player playsound pickup_papers //sound
$player playsound pickup_uniform //sound
waitthread global/items.scr::add_item "papers_level1"
//gives you
//level 1 papers
waitthread global/items.scr::add_item "uniform"
//gives you
//uniform
end
Save your work as "test_undercover". Compile
your map and play!
Ok, in the next part, I'll show you how to acquire
level 2 papers and blowing your cover.