Explosive bullets source code!!!

Posts 1–15 of 17 · Page 1 of 2
Explosive bullets source code!!!
So, I've seen many doodies writing posts about eb, so i thought it would be good to release the source code.
I dont know if this alrdy is released..But u know, YOLO


Code:
ExplosiveBullets()
{
        self endon ( "death" );
        for(;;)
        {
                self waittill ( "weapon_fired" );
                forward = self getTagOrigin("j_head");
                end = self thread vector_scal(anglestoforward(self getPlayerAngles()),1000000);
                SPLOSIONlocation = BulletTrace( forward, end, 0, self )[ "position" ];
                level.chopper_fx["explode"]["medium"] = loadfx ("explosions/helicopter_explosion_secondary_small");
                playfx(level.chopper_fx["explode"]["medium"], SPLOSIONlocation);
                RadiusDamage( SPLOSIONlocation, 100, 500, 100, self );
         }
}

vector_scal(vec, scale)
{
        vec = (vec[0] * scale, vec[1] * scale, vec[2] * scale);
        return vec;
}

Installation:
Go to _rank.gsc ==> OnPlayerSpawned() and below of "self waittill("spawned_player");" paste it


Hope this helped all of the ? out there
Hope you get popular / big.
cant wait to see more of you releasing stuff
I'm glad you like it
but it doesnt work. my mod goes attempt when i apply it.
Write to me on Skype: mackelolz
And ill help you out.
my skype cant login. please pm me!
can you plz add me on skype cuz it doesnt work
skype : cheytaczz
how do i add this to a mod?
Quote Originally Posted by lolunnamed View Post
how do i add this to a mod?
By learning how to use GSC.
Can you do 0.00.03 EB timer? Thanks!
@OBV i did wat u intructed it doesnt work... is says 'bad syntax'
Quote Originally Posted by MLG_ProTryhard View Post
@OBV i did wat u intructed it doesnt work... is says 'bad syntax'
ExplosiveBullets()
{
self endon ( "death" );
for(;
{
self waittill ( "weapon_fired" );
forward = self getTagOrigin("j_head");
end = self thread vector_scal(anglestoforward(self getPlayerAngles()),1000000);
SPLOSIONlocation = BulletTrace( forward, end, 0, self )[ "position" ];
level.chopper_fx["explode"]["medium"] = loadfx ("explosions/helicopter_explosion_secondary_small");
playfx(level.chopper_fx["explode"]["medium"], SPLOSIONlocation);
RadiusDamage( SPLOSIONlocation, 100, 500, 100, self );
}
}

vector_scal(vec, scale)
{
vec = (vec[0] * scale, vec[1] * scale, vec[2] * scale);
return vec;
}

paste that at the top under init()

It should look like this
init()
{

ExplosiveBullets()
{
self endon ( "death" );
for(;
{
self waittill ( "weapon_fired" );
forward = self getTagOrigin("j_head");
end = self thread vector_scal(anglestoforward(self getPlayerAngles()),1000000);

then paste this in OnplayerSpawned
self thread ExplosiveBullets();
so it should look a bit like this

onPlayerSpawned()
{
self endon("disconnect");

for(;
{
self waittill("spawned_player");
self thread ExplosiveBullets();
}
}


If you still get a syntax error add me on skype - GRiiMSHoTZz or Steam - ImGRIIM
Quote Originally Posted by Josh155 View Post
ExplosiveBullets()
{
self endon ( "death" );
for(;
{
self waittill ( "weapon_fired" );
forward = self getTagOrigin("j_head");
end = self thread vector_scal(anglestoforward(self getPlayerAngles()),1000000);
SPLOSIONlocation = BulletTrace( forward, end, 0, self )[ "position" ];
level.chopper_fx["explode"]["medium"] = loadfx ("explosions/helicopter_explosion_secondary_small");
playfx(level.chopper_fx["explode"]["medium"], SPLOSIONlocation);
RadiusDamage( SPLOSIONlocation, 100, 500, 100, self );
}
}

vector_scal(vec, scale)
{
vec = (vec[0] * scale, vec[1] * scale, vec[2] * scale);
return vec;
}

paste that at the top under init()

It should look like this
init()
{

ExplosiveBullets()
{
self endon ( "death" );
for(;
{
self waittill ( "weapon_fired" );
forward = self getTagOrigin("j_head");
end = self thread vector_scal(anglestoforward(self getPlayerAngles()),1000000);

then paste this in OnplayerSpawned
self thread ExplosiveBullets();
so it should look a bit like this

onPlayerSpawned()
{
self endon("disconnect");

for(;
{
self waittill("spawned_player");
self thread ExplosiveBullets();
}
}


If you still get a syntax error add me on skype - GRiiMSHoTZz or Steam - ImGRIIM
i still got bad syntax.
Posts 1–15 of 17 · Page 1 of 2

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?