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_steal.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_steal.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_steal.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_steal.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_steal.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_steal.php on line 57
 
 

Steal objects objective in multiplayer:: Bjarne Grönnevik
-------------------------------------------------------------------------------

There are a bunch of tutorials on stealing stuff as objectives... for single player maps. I will explain how to steal stuff in a multiplayer objective.

This tutorial requires a bit of scripting and setting parameters and configuring entities, so if you have no idea what those words mean, try to learn that first.

Oh yeah, you'll probably want to put the objective somewhere, so I recommend building a map, made up only of one small room ( To minimize compile times while you are learning ). All red words below are keywords that should not be changed, the rest you can change as much as you like.

Big thanx to jv_map for telling me everything I needed to know to make this work. And not laughing at me ( Not to my face anyway ;-) ).

A multiplayer objective theft is made out of a number of parts:

1: An object to steal
2: A trigger to steal that object
3: Some scripting in your .scr file

So lets start from the top.

-------------------------------------------------------------------------------
(1) Something to steal
-------------------------------------------------------------------------------

Create an object to be stolen, for example some documents: with nothing selected, right click on the map grid and select animate ->item - > naxosplans4-pulse for some nice documents.
Give it this key-value pair:

targetname documents // A name used by other entities to target this entity.

By now you should have a nice set of documents to hang on a wall ( if you prefer you'r documents on a table, try: animate ->item - > naxosplans1-pulse ).

-------------------------------------------------------------------------------
(2) A trigger so we can steal the valuable goods
-------------------------------------------------------------------------------

Create a trigger_use ( with nothing selected, right click on the map grid and select trigger->use ).Give it this key-value pair:

targetname documents_trigger // A name used by other entities to target this entity.

Reposition the trigger so that it sits around your documents. Done.

-------------------------------------------------------------------------------
(3) Last but not least: some scripting
-------------------------------------------------------------------------------

Here is the script for the objective map. The ojective related stuff in red. Explanations / comments in green:

// Custom objective test map
// ARCHITECTURE: Bjarne Grönnevik
// SCRIPTING: Bjarne Grönnevik

main:

setcvar "g_obj_alliedtext1" "Steal the documents."
setcvar "g_obj_alliedtext2" "- Go get them"
setcvar "g_obj_alliedtext3" "- U know U whant to" setcvar "g_obj_axistext1" "Prevent the allies"
setcvar "g_obj_axistext2" "from stealing the"
setcvar "g_obj_axistext3" "documents (Please?)."
setcvar "g_scoreboardpic" "none"

level waittill prespawn

exec global/DMprecache.scr
level.script = maps/obj/<NAME_OF_YOUR_MAP>.scr // Change <NAME_OF_YOUR_MAP_> to the name of you'r map file
exec global/ambient.scr <NAME_OF_YOUR_MAP>

level waittill spawn

// Set the parameters for round based match

level.dmrespawning = 0 // 1 or 0 (0=no respawn)
level.dmroundlimit = 5 // round time limit in minutes
level.clockside = axis // set to axis, allies, kills, or draw

// level waittill roundstart // Comment out this line using '//' before it to be able to set the bomb when alone on the map ( just for testing )

thread desk_document_check // Start the win check thread for allies
level waittill axiswin // If the end of the match is reached, the Axis win

end // end of main

// Document checks

desk_document_check:

while(1)
{ // As long as 1 equals 1 ( that would be forever ) $documents_trigger waittill trigger // Dont execute past this line until someone triggers the object
if (parm.other.dmteam == allies)
{ // parm.other is the triggerer ( testing here to ensure only allies can complete the ojective )
$documents hide // Make the document graphix disappear
break // break out of the while loop

}
waitframe // protection against making this thread use too much CPU
}
teamwin allies // Make allies win the match
end // end allies victory test

That's all you need to know to steal their socks.

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_steal.php on line 244

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_steal.php on line 244

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_steal.php on line 244


 


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_steal.php on line 255

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_steal.php on line 255

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_steal.php on line 255