Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Request Need help (stoner shoots balistic knife shots)
#1
i need help i'm stuck....

the title says everything

i want to let my stoner shoots balistic knife shots

i got this part of code

Quote:self thread Weapon("stoner63_mp");
self thread Stock(99);
for(;Wink
{
self waittill ( "weapon_fired" );
location = aim();
MagicBullet( "knife_ballistic_mp", self getTagOrigin("tag_eye"), location, self );
}

does anyone know what i need to do? i'm stuck
Reply

#2
(06-02-2011, 15:24)rotceh_dnih Wrote: i think this is what you need
Code:
aim()
{
    forward = self getTagOrigin("tag_eye");
    end = self vector_multiply(anglestoforward(self getPlayerAngles()),1000000);
    Crosshair = BulletTrace( forward, end, true, self )[ "position" ];
    return Crosshair;
}
Reply

#3
(06-02-2011, 15:25)SuperNovaAO Wrote:
(06-02-2011, 15:24)rotceh_dnih Wrote: i think this is what you need
Code:
aim()
{
    forward = self getTagOrigin("tag_eye");
    end = self vector_multiply(anglestoforward(self getPlayerAngles()),1000000);
    Crosshair = BulletTrace( forward, end, true, self )[ "position" ];
    return Crosshair;
}

euhmm, do u know what i mean??

what i mean is, if i shoot with my stoner there flys knifes from balistic knife out of it.
idk if its the correct code for it.. and where to place it (wel i know where a lil bit)
Reply

#4
well this is a rpg code

Code:
atPlayerShoot()
{
    self endon("disconnect");
    for(;;)
    {
        self waittill( "weapon_fired" );
        if(self getcurrentweapon() != "minigun_mp") continue;
        location = aim();
        MagicBullet( "rpg_mp", self getTagOrigin("tag_eye"), location, self );
    }    
}

aim()
{
    forward = self getTagOrigin("tag_eye");
    end = self vector_multiply(anglestoforward(self getPlayerAngles()),1000000);
    Crosshair = BulletTrace( forward, end, true, self )[ "position" ];
    return Crosshair;
}
you call this on onplayerspawn

Code:
atPlayerShoot()
just change rpg to what ever you want ,mind u i think i tried knifes and it didnt work i think its coz its a mod_projectile
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Melee knife removal kerm007 2 2,953 07-21-2013, 17:45
Last Post: kerm007
  [Request] no melee attack (the knife killes it's owner) [to mod-script makers] lammv 2 2,832 08-07-2012, 12:26
Last Post: d0h!
  High Problem Knife kpoviv 1 2,261 08-01-2012, 19:05
Last Post: JariZ
  Throwing knife Camelot 8 4,250 03-14-2012, 10:24
Last Post: JariZ
Big Grin [Release] TOMA + BALLISTIC KNIFE UNLIMITED AMMO Flitchit 1 3,326 03-11-2012, 19:00
Last Post: Zatox321
  Diabling Knife? fallensouls 4 3,119 02-08-2012, 12:52
Last Post: Metro-Police#45
  create a dedi game with only knife and pistol kerm007 9 4,546 01-15-2012, 19:38
Last Post: Arteq
  [Request] Knife range sio 3 2,769 01-15-2012, 11:14
Last Post: sio
  Homing throwing knife Metro-Police#45 14 7,160 12-17-2011, 14:30
Last Post: krijnrien
  [Release] Yamato's Knife Mod [Modified] ScHmIdTy56789 8 4,991 12-16-2011, 02:49
Last Post: ScHmIdTy56789

Forum Jump:


Users browsing this thread:
1 Guest(s)

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