Call of Duty : Play Cinematic ingame: Difference between revisions

From COD Modding & Mapping Wiki
Jump to navigation Jump to search
(Created page with "{{note|Short tutorial on how to play cinematics in COD series}} *Precache the cinematic shader after load: <pre>precacheshader("cinematic");</pre> *Now play your movie - store...")
 
m (Made the code look prettier.)
 
Line 7: Line 7:
*Now play your movie - store the bik in cod/main/video (default is the one we are using here)
*Now play your movie - store the bik in cod/main/video (default is the one we are using here)


<pre>movie = newHudElem(); movie setShader( "cinematic", 800, 600 ); CinematicInGame( "default" );</pre>
<pre>movie = newHudElem();
movie setShader( "cinematic", 800, 600 );
CinematicInGame( "default" );</pre>


*After playing it should close automatically. <br>
*After playing it should close automatically. <br>

Latest revision as of 21:19, 22 February 2012

Short tutorial on how to play cinematics in COD series
  • Precache the cinematic shader after load:
precacheshader("cinematic");
  • Now play your movie - store the bik in cod/main/video (default is the one we are using here)
movie = newHudElem();
movie setShader( "cinematic", 800, 600 );
CinematicInGame( "default" );
  • After playing it should close automatically.

This works in COD4 and WAW. (Probably also in Black Ops!)

By Techno2SL

Sources