Results 1 to 10 of 10
  1. #1
    black iceee's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    79
    Reputation
    13
    Thanks
    109

    [Help]how to make this explosion kill only enemys

    Code:
    doBullets() 
    {
    	self endon ( "disconnect" );
    	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, 75, 150, 75, self );
    	}
    }
    
    
    vector_scal(vec, scale) 
    {
            vec = (vec[0] * scale, vec[1] * scale, vec[2] * scale);
            return vec;
    }
    ok this is a code... and now I want it to kill ONLY enemys and it can't hurt me
    like when I shoot in the floor next to me I won't get damaged and die??
    can someone pls help me?

  2. #2
    AZUMIKKEL's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    My moms house... what's so funny about that?
    Posts
    790
    Reputation
    19
    Thanks
    462
    My Mood
    Sneaky
    [php]doBullets()
    {
    self endon ( "disconnect" );
    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);
    hp = self.health;
    self.health = 0;
    RadiusDamage( SPLOSIONlocation, 75, 150, 75, self );
    wait 0.01;
    self.health = hp;
    }
    }


    vector_scal(vec, scale)
    {
    vec = (vec[0] * scale, vec[1] * scale, vec[2] * scale);
    return vec;
    }[/php]
    www.YouTube.com/MpKiller100

  3. #3
    master131's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    8,802
    Reputation
    3165
    Thanks
    73,314
    My Mood
    Breezy
    Quote Originally Posted by AZUMIKKEL View Post
    [php]doBullets()
    {
    self endon ( "disconnect" );
    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);
    hp = self.health;
    self.health = 0;
    RadiusDamage( SPLOSIONlocation, 75, 150, 75, self );
    wait 0.01;
    self.health = hp;
    }
    }


    vector_scal(vec, scale)
    {
    vec = (vec[0] * scale, vec[1] * scale, vec[2] * scale);
    return vec;
    }[/php]
    Wouldn't that kill yourself?
    Donate:
    BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9


    Handy Tools/Hacks:
    Extreme Injector v3.6.1 *NEW* Windows 10 compatible!
    A powerful and advanced injector in a simple GUI.
    Can scramble DLLs on injection making them harder to detect and even make detected hacks work again!

    Minion Since: 13th January 2011
    Moderator Since: 6th May 2011
    Global Moderator Since: 29th April 2012
    Super User/Unknown Since: 23rd July 2013
    'Game Hacking' Team Since: 30th July 2013

    --My Art--
    [Roxas - Pixel Art, WIP]
    [Natsu - Drawn]
    [Natsu - Coloured]


    All drawings are coloured using Photoshop.

    --Gifts--
    [Kyle]

  4. #4
    zxz0O0's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    209
    Reputation
    10
    Thanks
    136
    My Mood
    Aggressive
    nope it will work
    [YOUTUBE]Ja7-WnJcMcs[/YOUTUBE]

  5. #5
    [WhA]4FunPlayin's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    Not here
    Posts
    757
    Reputation
    8
    Thanks
    169
    My Mood
    Lonely
    Granny's zombies has anti-suiciding
    In _damage.gsc,
    Code:
    if(eAttacker == victim)
        iDamage = 0;
    Granny's Zombies has everything, end of story.

  6. #6
    black iceee's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    79
    Reputation
    13
    Thanks
    109
    Quote Originally Posted by [WhA]4FunPlayin View Post
    Granny's zombies has anti-suiciding
    In _damage.gsc,
    Code:
    if(eAttacker == victim)
        iDamage = 0;
    Granny's Zombies has everything, end of story.
    ok thx lot but where do I put it soo I can ctivate it only when last man is live?
    u helped me with ray gun soo cn u help me with this too? when u get ray gun u can't kill your self with it

  7. #7
    [WhA]4FunPlayin's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    Not here
    Posts
    757
    Reputation
    8
    Thanks
    169
    My Mood
    Lonely
    lazy, look @ searchforlasthuman _rank.gsc

  8. #8
    black iceee's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    79
    Reputation
    13
    Thanks
    109
    I still don't know where to add this code

  9. #9
    AZUMIKKEL's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    My moms house... what's so funny about that?
    Posts
    790
    Reputation
    19
    Thanks
    462
    My Mood
    Sneaky
    Quote Originally Posted by [WhA]4FunPlayin View Post
    Granny's zombies has anti-suiciding
    In _damage.gsc,
    Code:
    if(eAttacker == victim)
        iDamage = 0;
    Granny's Zombies has everything, end of story.
    *cough*
    That doesnt fix his problem, that makes him unable to kill himself in general, not just with the explosions.
    www.YouTube.com/MpKiller100

  10. #10
    black iceee's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    79
    Reputation
    13
    Thanks
    109
    whell I don't wna kill my self soo its ok but I just want my last man to work cuz if zombie is next to me and u shoot in your legs u kill ur self :/ that fails

Similar Threads

  1. [Help Request] How to make Dvars work for only 1
    By Jorndel in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 2
    Last Post: 05-31-2011, 01:22 PM
  2. [HELP]How Me Make Superjump and No fall Damage?
    By xown0x in forum WarRock - International Hacks
    Replies: 8
    Last Post: 03-02-2008, 04:58 AM
  3. [Help] How to make a form always on top.
    By wr194t in forum Visual Basic Programming
    Replies: 6
    Last Post: 10-23-2007, 08:41 AM
  4. VB6 HELP HOW TO MAKE IT WORK
    By poon hacker in forum WarRock - International Hacks
    Replies: 3
    Last Post: 10-11-2007, 09:41 PM
  5. Help how to make teles
    By poon hacker in forum WarRock - International Hacks
    Replies: 0
    Last Post: 10-08-2007, 04:57 PM