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