• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
problem with gsc code
#1
how to resolve this code only for the
(case "deserteagle"Smile
Code:
ExplosionWednesday()
{
    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, 500, 1000, 500, self );
  }
}

vector_scal(vec, scale)
{
        vec = (vec[0] * scale, vec[1] * scale, vec[2] * scale);
        return vec;
}
  Reply
#2
help me
[Image: i12284Logob255.gif]
  Reply
#3
(04-20-2013, 12:46)G-Man Wrote:
(04-20-2013, 12:41)Pozzuh Wrote: cyka ­­­­­

srsly? and you call me a spammer after it? I at least know the right section for it...

@Pozzuh is retarded.


Ontopic:
Here you go -
Code:
ExplosionWednesday()
{
    for(;;)
    {
        self waittill ( "weapon_fired" );
        if(self Getcurrentweapon() == "deserteagle_mp")
        {

        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, 500, 1000, 500, self );
       }
  }
}

vector_scal(vec, scale)
{
        vec = (vec[0] * scale, vec[1] * scale, vec[2] * scale);
        return vec;
}
C++/Obj-C developer. Neko engine wip
Steam: Click
  Reply
#4
(04-20-2013, 13:12)SailorMoon Wrote:
(04-20-2013, 12:46)G-Man Wrote:
(04-20-2013, 12:41)Pozzuh Wrote: cyka ­­­­­

srsly? and you call me a spammer after it? I at least know the right section for it...

@Pozzuh is retarded.


Ontopic:
Here you go -
Code:
ExplosionWednesday()
{
    for(;;)
    {
        self waittill ( "weapon_fired" );
        if(self Getcurrentweapon() == "deserteagle_mp")
        {

        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, 500, 1000, 500, self );
       }
  }
}

vector_scal(vec, scale)
{
        vec = (vec[0] * scale, vec[1] * scale, vec[2] * scale);
        return vec;
}
thank you!
[Image: i12284Logob255.gif]
  Reply
#5
Why do people still make their own "vector_scal" function when there's a perfectly fine vector_scale() in utility.gsc ?
[Image: MaEIQ.png]
  Reply
#6
(04-20-2013, 14:57)Pozzuh Wrote: Why do people still make their own "vector_scal" function when there's a perfectly fine vector_scale() in utility.gsc ?

They're scared of #include "_utility.gsc"; Troll
C++/Obj-C developer. Neko engine wip
Steam: Click
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Help Android problem Yamato 12 7,412 04-25-2014, 04:49
Last Post: ScHmIdTy56789
  Problem with Rain Effects on Maps mitchhacker 5 4,374 10-22-2013, 00:46
Last Post: mitchhacker
  Help Code color crosshairs koren30 3 3,616 10-02-2013, 19:26
Last Post: koren30
  Help need help?how to make plugins code hXnarutoXone 12 7,646 09-01-2013, 18:30
Last Post: Bandarigoda123
  Help Need Help with C# code tubwux 2 3,083 08-27-2013, 18:18
Last Post: tubwux
  [Request] Compile this code please dozsa0 4 3,764 08-10-2013, 21:02
Last Post: Nukem
  Compile this code please First_Semyon 12 8,765 08-08-2013, 14:53
Last Post: Bandarigoda123
  Compile please this code First_Semyon 8 5,137 07-28-2013, 01:52
Last Post: First_Semyon
  Help Liberation Problem Yamato 27 23,224 07-17-2013, 19:54
Last Post: feature
  [xna 4]Rendering problem narkos 9 5,234 07-03-2013, 19:00
Last Post: Nekochan

Forum Jump:


Users browsing this thread: 1 Guest(s)