What is the normal bullet code?

Posts 12 of 2 · Page 1 of 1
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
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
Posts 12 of 2 · Page 1 of 1
This thread is closed for replies.

Tags for this Thread

None

Need help?