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/jeep.php on line 24

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/jeep.php on line 24

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/jeep.php on line 24

 
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/jeep.php on line 59

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/jeep.php on line 59

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/jeep.php on line 59
 
 

Mountable Jeep :: mohaa_rox
------------------------------------------------------------------

This tutorial shows you how to add a jeep that lets you mount the .30cal while a friendly drives the jeep.

Start MoHRadiant and make a small map. Then add a jeep (vehicle_allied_jeep) and give it a targetname of let's say "playerjeep". Don't forget an info_player_start. Then add a friendly AI from the list of AI_allied. I used our favourite British Major Grillo (ai_allied_oss-man_normal) and gave him a targetname of "oss_man". Remember, it MUST be "oss_man". Place him anywhere you want.

Now it's almost complete! Create a trigger_multiple with targetname of "playerjeep_trigger". Your trigger must have a "_trigger" targetname of which it belongs to the jeep.

Almost done. You should have 3 objects, the friendly, jeep and jeep_trigger.

Add a info_vehicle_point in front of the jeep, and make sure it targets another one where you want it to be. For example, give it a targetname of "t1" and target of "t2". Then create another one with targetname of "t2". You should see an arrow linking t1 to t2. Drag t2 anywhere you want the jeep to stop at.

Now for the script:

//jeep tutorial
//by mohaa_rox

main:

level waittill prespawn

level.slowspeed = 150 //slowest speed of jeep
level.fastspeed = 250 //fastest speed of jeep
level.lookahead = 256

level.grillo = $oss_man //our lovable Grillo

level.playerjeep = $playerjeep //our jeep
level.playerjeep thread global/vehicles_thinkers.scr::PLAYER_JEEP_CONTROLLER
level.playerjeep thread PLAYER_JEEP_Drive

level waittill spawn

PLAYER_JEEP_Drive:
level.playerjeep drive $t1 level.slowspeed 40 200 level.lookahead //tells jeep to drive to t1
level.playerjeep waittill drive
level.playerjeep stop //stops jeep at last waypoint
end

That's for all! Save and compile!

[ 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/vhosts/own3mall/mohaaaa.co.uk/httpdocs/mohaa/tutorials/jeep.php on line 170

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/jeep.php on line 170

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/jeep.php on line 170


 


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/jeep.php on line 183

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/jeep.php on line 183

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/jeep.php on line 183