Call of Duty 4 Singleplayer Tutorial #2: Player weapons and Introscreen
Welcome to the second Call of Duty 4 basic map tutorial. This time I am going to show you how to give player the weapons you wish for the mission and how to make an mission briefing introscreen to display mission info like the original missions.
Please excuse my awkward and odd accent and presentation and any grammar mistakes, I am not skilled on speaking english and explaining stuff at the same time.
I also apologize for any quality flaws.
Here is the code I used:
##########################
##########################
#include maps\_anim;
#include maps\_utility;
#include common_scripts\utility;
#include maps\_utility_code;
player_setup()
{
level.player takeallweapons();
level.player freezecontrols( true );
level.player setviewmodel( "" );
level.player giveWeapon( "" );
level.player givemaxammo( "" );
level.player switchtoweapon( "" );
level.player disableweapons();
}
Introscreen()
{
lines = [];
lines[ lines.size ] = &"LINE1";
lines[ lines.size ] = &"LINE2";
lines[ lines.size ] = &"LINE3";
lines[ lines.size ] = &"LINE4";
lines[ lines.size ] = &"LINE5";
fade_time = ( 1 );
time = ( 1.5 );
maps\_introscreen::introscreen_feed_lines( lines );
maps\_introscreen::introscreen_generic_fade_in( "black", time, fade_time );
level notify("introscreen_complete");
level.player freezecontrols( false );
level.player enableweapons();
}
VERSION "1"
CONFIG "F:\projects\mk\bin\StringEd\StringEd.cfg"
FILENOTES ""
REFERENCE INTROLINE1
LANG_ENGLISH ""Test Map Video""
REFERENCE INTROLINE2
LANG_ENGLISH "Player"
REFERENCE INTROLINE3
LANG_ENGLISH "Day 1337"
REFERENCE INTROLINE4
LANG_ENGLISH "Random Tutorial Room"
REFERENCE INTROLINE5
LANG_ENGLISH "Task Force 99"
ENDMARKER
##########################
##########################
Other Videos By SPi
Other Statistics
Call of Duty 4: Modern Warfare Statistics For SPi
SPi presently has 1,949,122 views for Call of Duty 4: Modern Warfare across 412 videos, with His channel uploaded over 9 days worth of Call of Duty 4: Modern Warfare videos. This is 71.59% of the total watchable video on SPi's YouTube channel.