8 Shot

Posts 1–8 of 8 · Page 1 of 1
8 Shot
Hello guys,

I want to share my source code of the 8shot.
It is an shotgun with 8 bullets and it shoots 105mm ac130 bullets.

Code:
GetCursorPos()
{
        forward = self getTagOrigin("tag_eye");
        end = self thread vector_Scal(anglestoforward(self getPlayerAngles()),1000000);
        location = BulletTrace( forward, end, 0, self)[ "position" ];
        return location;
}
 
vector_scal(vec, scale)
{
        vec = (vec[0] * scale, vec[1] * scale, vec[2] * scale);
        return vec;
}
do8shot()
{
	self endon("disconnect");
	self endon("death");
	
	currentweapon = self GetCurrentWeapon();
	
	self giveWeapon("spas12_eotech_mp", 0, true);
	self switchToWeapon("spas12_eotech_mp");



    ammo = 8; // amount of ammo

     while(1)
     {

	self waittill( "weapon_fired" );
	self.curWeap = self getCurrentWeapon();

	if (isSubStr(self.curWeap, "spas12_eotech_mp"))
	{
		MagicBullet( "ac130_105mm_mp", self getTagOrigin("tag_eye"), self GetCursorPos(), self ); 
	}

	ammo--;
    
	if (ammo <= 0)
        break;
        wait 0.1;
    }
	
    self takeWeapon(self getCurrentWeapon());
    self takeWeapon("spas12_eotech_mp");
    wait 0.2;
    self switchToWeapon(currentweapon);
}
And to call it:

Code:
self thread do8shot();
Credits:
Maker of the ROFL launcher( don't know his name )
Correct me if im wrong.. havent played this in 2 years but..

Dosen't a spas12 already have 8 bullets in a clip?
And Isn't easier to use MagicBullet?
He's using Magicbullet, and yes it does have 8 bullets in a clip
this is mine and you gave no credit. from my zombie mod.
um how to install this? or were to put it, also do you got to be host for this to work?
how to install this? :P
Posts 1–8 of 8 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us