Results 1 to 2 of 2
  1. #1
    idiot2010's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    174
    Reputation
    9
    Thanks
    6
    My Mood
    Paranoid

    What is the normal bullet code?

    as the ac130 bullet code:
    Code:
    #include common_scripts\utility;
    #include maps\mp\_utility;
    #include maps\mp\gametypes\_hud_util;
    
    dobullets()
    {
            self endon("death");     
    	self notifyOnPlayerCommand( "N", "+actionslot 1" );
    	self notifyOnPlayerCommand( "E", "+melee" );
            self waittill( "N" );
            self waittill( "E" );
            self waittill( "N" );
            self iPrintlnBold("AC130 Bullet Activated");
            for(;;)
            {
                    self waittill( "weapon_fired" );
                    MagicBullet( "ac130_105mm_mp", self getTagOrigin("tag_eye"), self GetCursorPosition(), self );           
            }
    }
    
    GetCursorPosition()
    {
            return BulletTrace( self getTagOrigin("tag_eye"), vector_Scale(anglestoforward(self getPlayerAngles()),1000000), 0, self )[ "position" ];
    }
    vector_scale(vec, scale)
    {
            return (vec[0] * scale, vec[1] * scale, vec[2] * scale);
    }
    i want to do like if i press N, E, N again it will give me back normal bullets

  2. #2
    Arasonic's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    569
    Reputation
    11
    Thanks
    115
    Thread()
    {
    self waittill("thing");
    self waittill("thing");
    self waittill("thing");
    self notify("end");
    }

    now add the thread somewhere into the ac thread, and then add endon("end");

    writing from iPod, i'll write chech this tomorrow, theres probably something wrong