Warning: include(): http:// wrapper is disabled in the server configuration by allow_url_include=0 in /var/www/html/tutorials/ai_cabinet.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/html/tutorials/ai_cabinet.php on line 3

Warning: include(): Failed opening 'http://map.planetmedalofhonor.gamespy.com/mohaa/poll/poll_cookie.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/tutorials/ai_cabinet.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/html/tutorials/ai_cabinet.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/html/tutorials/ai_cabinet.php on line 57

Warning: include(): Failed opening 'http://map.planetmedalofhonor.gamespy.com/mohaa/leftindex.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/tutorials/ai_cabinet.php on line 57
 
 

AI : Cabinet Guys :: mohaa_rox

(Thanks to map4all for the tut, but in German.)
-------------------------------------------------------------------------------

This tutorial shows you how to add AI that jumps out from a cabinet.

-------------------------------------------------------------------------------
Step 1 : The Map
-------------------------------------------------------------------------------

Let's get started!

Make a room with and info_player_start and lights. Right click in the 2D view and select animate-->furniture-->hidden-wadrobe.

Give it the following properties:

#chance: 100
#set: 1
targetname: cabinet
target ai_guy

"#chance" means that the chances of coming across this AI is 100%.

Then make an AI (I used ai_german_wehrmact_grenadier) with a "targetname" of "ai_guy". There should be an arrow connecting them together.

Now make a trigger multiple where you want it to be.Give it the following properties:

#set: 1
targetname: cabinettrigger

 

Save your map as "test_cabinet".

-------------------------------------------------------------------------------
Step 2 : The Scripting
-------------------------------------------------------------------------------

Now for the scripting:

//Making an AI jump out from a wadrobe

//Thanks to map4all for the tut

main:

level waittill prespawn

exec global/cabinet.scr

level waittill spawn

$player item weapons/thompsonsmg.tik

$player ammo smg 300

$player useweaponclass smg

end

 

Simple? Compile your map and play!

[ Download the Example Map ]

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/html/tutorials/ai_cabinet.php on line 197

Warning: include(http://map.planetmedalofhonor.gamespy.com/mohaa/rightindex.php): Failed to open stream: no suitable wrapper could be found in /var/www/html/tutorials/ai_cabinet.php on line 197

Warning: include(): Failed opening 'http://map.planetmedalofhonor.gamespy.com/mohaa/rightindex.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/tutorials/ai_cabinet.php on line 197


 


Warning: require(/home/map/cgi-bin/mohaa/poll/include/config.inc.php): Failed to open stream: No such file or directory in /var/www/html/tutorials/ai_cabinet.php on line 208

Fatal error: Uncaught Error: Failed opening required '/home/map/cgi-bin/mohaa/poll/include/config.inc.php' (include_path='.:/usr/local/lib/php') in /var/www/html/tutorials/ai_cabinet.php:208 Stack trace: #0 {main} thrown in /var/www/html/tutorials/ai_cabinet.php on line 208