Results 1 to 1 of 1
  1. #1
    xinghun's Avatar
    Join Date
    Aug 2014
    Gender
    male
    Posts
    1
    Reputation
    10
    Thanks
    2

    Question How to draw a line in cod6 map

    I consulted Yamato's[Tutorial] Lines and want to draw a line in cod6 but failed.
    I can't find out the problem. So I'm here to ask for some help

    Here is my modified _tutorial.gsc (from Yamato'[Tutorial]Building your first mod and making your first code)
    I put my full test mod in attachment.

    Code:
    #include maps\mp\gametypes\_hud_util;
    #include maps\mp\_utility;
    #include common_scripts\utility;
    #include common_scripts\_painter;
    
    init()
    {
         level thread onPlayerConnect();
    }
    
    onPlayerConnect()
    {
         for( ; ; )
         {
             level waittill( "connected", player );
             player thread onPlayerSpawned();
         }
    }
    
    onPlayerSpawned()
    {
         self endon( "disconnect" );
         for( ; ; )
         {
             self waittill( "spawned_player" );
             self setClientDvars( "developer", 1, "developer_script", 1 );
    
             self thread Lines();
         }
    }
    
    Lines()
    {
         self endon( "death" );
         self endon( "disconnect" );
         while( 1 )
         {
             logPrint("start: " + self.origin + ( 0, 0, 10 ) + "\n");
             logPrint("end: " + self.origin + anglestoforward( self.angles ) * 5000 + "\n");
    
             line( self.origin + ( 0, 0, 10 ), self.origin + anglestoforward( self.angles ) * 5000, ( randomfloat( 1 ), randomfloat( 1 ), randomfloat( 1 ) ) );
             wait 0.05;
         }
    }
    I also have downloaded _painter.gsc and put it in common_scripts folder.

    In games_mp.log , I can see the log printed, such as:
    566:07 start: (335.125, 683.625, -68.7797)(0, 0, 10)
    566:07 end: (335.125, 683.625, -68.7797)(-4977.45, -474.34, -0)
    But I cannot see the line in the game map. Help me please.

    Or someone can make me a simple mod to show how to draw a line?

    https://www.virustotal.com/en/file/5...is/1408285017/
    http://virusscan.jotti.org/en/scanre...ad4471d2f59974
    <b>Downloadable Files</b> Downloadable Files
    Last edited by Lovroman; 08-17-2014 at 09:17 AM.

  2. The Following 2 Users Say Thank You to xinghun For This Useful Post:

    fantasmagorico (06-06-2015),lolunnamed (04-30-2015)

Similar Threads

  1. [RELEASE] How To Draw Sprites
    By ac1d_buRn in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 37
    Last Post: 10-12-2010, 06:50 AM
  2. How to Make Glowy Lines! ^___^
    By Nexulous in forum Tutorials
    Replies: 11
    Last Post: 09-24-2009, 06:36 PM
  3. I know how to get out of junk flea map
    By zmansquared in forum Combat Arms Hacks & Cheats
    Replies: 8
    Last Post: 03-12-2009, 10:14 AM
  4. Replies: 18
    Last Post: 12-02-2008, 09:00 PM
  5. How to draw a car in MS
    By AN1MAL in forum Entertainment
    Replies: 9
    Last Post: 12-18-2006, 06:38 PM