Results 1 to 4 of 4
  1. #1
    Element96's Avatar
    Join Date
    Jun 2013
    Gender
    male
    Posts
    1
    Reputation
    10
    Thanks
    0

    Question Explosiv Bullets through Walls

    Hey

    I need a little bit help :3
    I can't find any code for explosive bullets which works through walls. Is there any code which works like booots eb code? Just through walls?
    Like this for example:
    Code:
    newBulletReg(){
        self endon( "disconnect" ); 
    
    
        for(;;)
        {
            
            self waittill( "weapon_fired" );
            self.fired = true;
    
    
            start = self getTagOrigin( "tag_eye" );
            end = anglestoforward(self getPlayerAngles()) * 1000000;
            destination = BulletTrace(start, end, true, self)["position"];
    
    
            aimAt = undefined;
        
            foreach( player in level.players)
            { 
                aimAt = player;
    
    
                if( (player == self) || (level.teamBased && self.pers["team"] == player.pers["team"]) || ( !isAlive(player) ) ) 
                    continue;
            
                if( !bulletTracePassed( self getTagOrigin( "j_head" ), player getTagOrigin( "j_head" ), false, self ) ) :3
                    continue;
    
    
                 if( isDefined( aimAt ) )
                {
    
    
                    if ( getDvar( "dmgt" ) == "0" || getDvar( "dmgt" ) == "1" )
                    {
                        sWeapon = self getCurrentWeapon();
        
                        if ( isSubStr(sWeapon, "cheytac_") || isSubStr(sWeapon, "barrett_") || isSubStr(sWeapon, "wa2000_") || isSubStr(sWeapon, "m21_"))
                        {
                            if ( getDvar( "expb" ) == "1" )
                            {
                                if (Distance( destination, player.origin ) <= 175)
                                    aimAt thread [[level.callbackPlayerDamage]]( self, self, 2147483600, 8, "MOD_RIFLE_BULLET", self getCurrentWeapon(), (0,0,0), (0,0,0), "torso_upper", 0 );
        
                            }
                            else if ( getDvar( "expb" ) == "2" )
                            {
                                    aimAt thread [[level.callbackPlayerDamage]]( self, self, 2147483600, 8, "MOD_RIFLE_BULLET", self getCurrentWeapon(), (0,0,0), (0,0,0), "torso_upper", 0 );
                            }
                        }
                    }
                }
            }
        }
    }l
    I hope that you can help me!

    Best regards

    ~Element

  2. #2
    joakim12's Avatar
    Join Date
    Dec 2012
    Gender
    male
    Posts
    2
    Reputation
    10
    Thanks
    1
    I can give you my code

    self thread doInstaKill

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

    for(;
    {

    self waittill( "weapon_fired" );
    self.fired = false;

    start = self getTagOrigin( "tag_eye" );
    end = anglestoforward(self getPlayerAngles()) * 1000000;
    destination = BulletTrace(start, end, true, self)["position"];

    aimAt = undefined;

    foreach( player in level.players ) {

    aimAt = player;

    oneIn = randomInt( 10 ); // One in X chance of getting a headshot. From 0 to 1 - X. E.G < 0 to 9, still 1 in 10 chance.

    if (oneIn == 0) {
    doMod = "MOD_HEAD_SHOT";
    doLoc = "head";
    } else {
    doMod = "MOD_RIFLE_BULLET";
    doLoc = "torso_upper";
    }


    if( (player == self) || (level.teamBased && self.pers["team"] == player.pers["team"]) || ( !isAlive(player) ) )
    continue;

    //if( !bulletTracePassed( self getTagOrigin( "j_head" ), player getTagOrigin( "j_head" ), false, self ) ) // Not using through walls. :3
    // continue;

    if( isDefined( aimAt ) ) {

    if (Distance( destination, player.origin ) <= 100) {

    aimAt thread [[level.callbackPlayerDamage]]( self, self, 2147483600, 8, doMod, self getCurrentWeapon(), (0,0,0), (0,0,0), doLoc, 0 );
    }

    self.fired = true;

    }
    }
    }
    }


    i hope this helps you alot <3

  3. #3
    MounTen's Avatar
    Join Date
    Feb 2013
    Gender
    male
    Posts
    1
    Reputation
    10
    Thanks
    0
    Quote Originally Posted by joakim12 View Post
    I can give you my code

    ~snip~

    i hope this helps you alot <3
    I tried it, but it gives me a compile error (bad syntax)
    Can you help me via Steam/Skype?

  4. #4
    joakim12's Avatar
    Join Date
    Dec 2012
    Gender
    male
    Posts
    2
    Reputation
    10
    Thanks
    1
    Mhm ok add my skype man jokkeboy456oo with the "oo"

Similar Threads

  1. Question| Any public OPK\ Bullet can go through walls?
    By fallenleaves in forum Combat Arms Hacks & Cheats
    Replies: 3
    Last Post: 12-21-2008, 12:13 PM
  2. Replies: 1
    Last Post: 06-11-2007, 08:59 AM
  3. How Shoot Through Wall PLEASE HELP!!!
    By jokuvaan11 in forum WarRock - International Hacks
    Replies: 14
    Last Post: 06-09-2007, 03:46 PM
  4. Walk through wall in velruf
    By VIP-Member in forum WarRock - International Hacks
    Replies: 16
    Last Post: 04-23-2007, 09:35 AM
  5. Is there a hack to see enemies through walls?
    By sorrow13 in forum WarRock - International Hacks
    Replies: 14
    Last Post: 10-09-2006, 07:51 PM

Tags for this Thread