Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help Raygun flamethrower
#1
Im trying to put a gun that shot fire.. but i can't get it work
Code:
doRayGun()
{
    self takeAllWeapons();
    self giveWeapon("uzi_mp", 0, self calcWeaponOptions(3, 0, 0, 0, 0));

    self endon("death");
    self endon("disconnect");
    while(1)
    {
        self waittill("weapon_fired");
        if(self getCurrentWeapon() != "uzi_mp")
            continue;
            
        soundEnt = spawn("script_model", self getAim());
        soundEnt playSoundAsMaster("mpl_kls_artillery_impact");
        {
            for(x = -1; x < 1; x+=0.25)
            {
                for(y = -1; y < 1; y+=0.25)
                {
                    for(z = -1; z < 1; z+=0.25)
                        line(self getTagOrigin("tag_weapon_right") + (x, y, z), self getAim() + (x, y, z), (1, 0, 0));
                }
            }
            LoadFX( "weapon/muzzleflashes/fx_pilot_light", self getAim());
            RadiusDamage(self getAim(), 64, 1000, 1000, self);
        }
        soundEnt delete();
    }
}

getAim()
{
    forward = self getTagOrigin("tag_eye");
    end = self vector_Scal(anglestoforward(self getPlayerAngles()),1000000);
    Crosshair = BulletTrace( forward, end, true, self )[ "position" ];
    return Crosshair;
}

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

Like the raygun but that shot fire like a flamethrower but i can't...
Reply

#2
This is what you needed flamethrower for? Nice! Does it work?

EDIT: I did not read the title correctly. I don't know how to help you much yet... I am not the best coder/scripter. I will look at it for you though.
[Image: shotgun21970001.jpg]
Made By IMTHEBOSS
Reply

#3
it's not working
Reply

#4
bad fx
Reply

#5
Why dont you take the fx from the flamethrower if you want it like a flamethrower :S
[Image: azuw.jpg]
Reply

#6
Code:
someFX = LoadFX("weapon/muzzleflashes/fx_pilot_light");
playFX(someFX, self getAim());
[Image: 30xhrep.png]

A casual conversation between barata and I about Nukem.
Reply

#7
Thanks
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  [Request] Raygun script WILL GUEST 11 7,234 01-02-2012, 16:51
Last Post: GscGunner
  [Request] Raygun with modloader? rkaf 12 6,795 09-05-2011, 19:27
Last Post: Nukem
  RayGun iBanana 11 6,033 08-03-2011, 22:17
Last Post: Phl3x_
  Preview Flamethrower Yamato 0 1,791 04-25-2011, 17:25
Last Post: Yamato
  Preview Flamethrower Tank Yamato 6 4,392 04-10-2011, 07:41
Last Post: Yamato
  Help fx for Flamethrower Jailbreak78 3 2,609 03-16-2011, 02:19
Last Post: Sh0tGuN2197

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.