Warning: include(): http:// wrapper is disabled in the server configuration by allow_url_include=0 in /var/www/vhosts/own3mall/mohaaaa.co.uk/httpdocs/mohaa/tutorials/obj_spundercover(1).php on line 3

Warning: include(http://map.planetmedalofhonor.gamespy.com/mohaa/poll/poll_cookie.php): failed to open stream: no suitable wrapper could be found in /var/www/vhosts/own3mall/mohaaaa.co.uk/httpdocs/mohaa/tutorials/obj_spundercover(1).php on line 3

Warning: include(): Failed opening 'http://map.planetmedalofhonor.gamespy.com/mohaa/poll/poll_cookie.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/vhosts/own3mall/mohaaaa.co.uk/httpdocs/mohaa/tutorials/obj_spundercover(1).php on line 3
.map :: Mapping for MoHAA

 
IRC :: #.map on Quakenet.org or simply go to irc://irc.quakenet.eu.org/.map
 

 
Warning: include(): http:// wrapper is disabled in the server configuration by allow_url_include=0 in /var/www/vhosts/own3mall/mohaaaa.co.uk/httpdocs/mohaa/tutorials/obj_spundercover(1).php on line 57

Warning: include(http://map.planetmedalofhonor.gamespy.com/mohaa/leftindex.php): failed to open stream: no suitable wrapper could be found in /var/www/vhosts/own3mall/mohaaaa.co.uk/httpdocs/mohaa/tutorials/obj_spundercover(1).php on line 57

Warning: include(): Failed opening 'http://map.planetmedalofhonor.gamespy.com/mohaa/leftindex.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/vhosts/own3mall/mohaaaa.co.uk/httpdocs/mohaa/tutorials/obj_spundercover(1).php on line 57
 
 

Objective : SP Undercover (Part 1) :: mohaa_rox
-------------------------------------------------------------------------------

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.

Now for the scripting part:

//Undercover
//Architecture: mohaa_rox
//Scripting: mohaa_rox

main:

exec global/loadout.scr maps/test_undercover.scr

level waittill prespawn

exec global/ambient.scr m2l2a

level waittill spawn

$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.

Next tutorial in the series.

Need any help : Ask in the Forum

 


 
Warning: include(): http:// wrapper is disabled in the server configuration by allow_url_include=0 in /var/www/vhosts/own3mall/mohaaaa.co.uk/httpdocs/mohaa/tutorials/obj_spundercover(1).php on line 206

Warning: include(http://map.planetmedalofhonor.gamespy.com/mohaa/rightindex.php): failed to open stream: no suitable wrapper could be found in /var/www/vhosts/own3mall/mohaaaa.co.uk/httpdocs/mohaa/tutorials/obj_spundercover(1).php on line 206

Warning: include(): Failed opening 'http://map.planetmedalofhonor.gamespy.com/mohaa/rightindex.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/vhosts/own3mall/mohaaaa.co.uk/httpdocs/mohaa/tutorials/obj_spundercover(1).php on line 206


 


Warning: require(): open_basedir restriction in effect. File(/home/map/cgi-bin/mohaa/poll/include/config.inc.php) is not within the allowed path(s): (/var/www/vhosts/own3mall/mohaaaa.co.uk:/usr/share/php:/usr/share/pear) in /var/www/vhosts/own3mall/mohaaaa.co.uk/httpdocs/mohaa/tutorials/obj_spundercover(1).php on line 217

Warning: require(/home/map/cgi-bin/mohaa/poll/include/config.inc.php): failed to open stream: Operation not permitted in /var/www/vhosts/own3mall/mohaaaa.co.uk/httpdocs/mohaa/tutorials/obj_spundercover(1).php on line 217

Fatal error: require(): Failed opening required '/home/map/cgi-bin/mohaa/poll/include/config.inc.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/vhosts/own3mall/mohaaaa.co.uk/httpdocs/mohaa/tutorials/obj_spundercover(1).php on line 217