Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Active Member Kenny*'s Avatar
    Join Date
    Mar 2012
    Posts
    531
    Points
    1,156
         User Info     Contact     Gamer ID
    Join Date
    Mar 2012
    Posts
    531
    Points
    1,156
    Gamer IDs

    Gamertag: HAXingPro PSN ID: TTG-RedDot

    Question [SC7E52] Set Mines

    well i got this idea from MW2 so its not mine. but idk if this is right. can someone tell me if its right? Thanks or test
    Code:
    Set_mines() 
    {
        self.mineSet = 0;
        for(;;) 
        { 
           if(self AdsButtonPressed() && self.mineSet == 0) 
           { 
             mineSpot = self.origin; 
             self.mineSet = 1; 
             while(self.mineSet)
             {
              for(i = 0; i < level.player.size; i++) 
              { 
                if(distance(minespot, level.player[i].origin)<10 && level.mineSet == 1 && level.player[ i ].pers["team"] != self.pers["team"] ) 
                 {  
                   MagicBullet( "rpg_mp", mineSpot, mineSpot+(0,0,3), self); 
                   level.mineSet = 0; 
                   wait 3; 
                 }
              }    
            } 
           wait 0.05; 
         } 
      }
    }
    }

    0 Not allowed! Not allowed!
    Last edited by Kenny*; 08-27-2012 at 04:36 PM.
    thanks to russ. Thank You
    Subscribe to my youtube channel please. Thank You
    WorkingNonHostGodMode.freeforums.org

  2. #2
    Mid Laner
    #SKATE EVERY DAMN DAY
    FrozenFire's Avatar

    Badge

    Join Date
    Mar 2012
    Location
    NYC
    Posts
    2,545
    Points
    3,442
         User Info     Contact     Gamer ID
    Join Date
    Mar 2012
    Location
    NYC
    Posts
    2,545
    Points
    3,442
    Gamer IDs

    Steam ID: froz3nfir398

    Contact info:

    Youtube Channel: http://www.youtube.com/user/FROZ3NFIR3ZCHANNEL?feature=mhee

    Default

    What does it actually do? This looks pretty cool. Nice work dude

    0 Not allowed! Not allowed!
    The Visionary





  3. #3
    Active Member Kenny*'s Avatar
    Join Date
    Mar 2012
    Posts
    531
    Points
    1,156
         User Info     Contact     Gamer ID
    Join Date
    Mar 2012
    Posts
    531
    Points
    1,156
    Gamer IDs

    Gamertag: HAXingPro PSN ID: TTG-RedDot

    Default

    it allows you to set a mine and when you get close. BOOM you die

    0 Not allowed! Not allowed!
    thanks to russ. Thank You
    Subscribe to my youtube channel please. Thank You
    WorkingNonHostGodMode.freeforums.org

  4. #4
    mini mini's Avatar
    Join Date
    Aug 2011
    Location
    Minnesota
    Posts
    1,988
    Points
    2,840
         User Info     Contact     Gamer ID
    Join Date
    Aug 2011
    Location
    Minnesota
    Posts
    1,988
    Points
    2,840
    Gamer IDs

    PSN ID: minnesotastyle

    Contact info:

    Youtube Channel: www.youtube.com/user/codeleakerforums

    Default

    But what does them mine look like?

    0 Not allowed! Not allowed!


  5. #5
    Formally known as Tlpwnzer KazzababeGamer's Avatar
    Join Date
    Jun 2011
    Posts
    2,947
    Points
    5,427
         User Info     Contact     Gamer ID
    Join Date
    Jun 2011
    Posts
    2,947
    Points
    5,427

    Default

    It might work, if it does, its very sloppy and could be made cleaner if the distance monitoring was in a separate thread.

    0 Not allowed! Not allowed!

  6. #6
    Active Member Kenny*'s Avatar
    Join Date
    Mar 2012
    Posts
    531
    Points
    1,156
         User Info     Contact     Gamer ID
    Join Date
    Mar 2012
    Posts
    531
    Points
    1,156
    Gamer IDs

    Gamertag: HAXingPro PSN ID: TTG-RedDot

    Default

    Quote Originally Posted by Minnesota View Post
    But what does them mine look like?
    it does not look like anything because it is a mine. it is set underground.

    Kazzababe- ok

    0 Not allowed! Not allowed!
    thanks to russ. Thank You
    Subscribe to my youtube channel please. Thank You
    WorkingNonHostGodMode.freeforums.org

  7. #7
    Evolved Modder
    Living Liek Larry
    tony's Avatar
    Join Date
    May 2011
    Location
    Listen, strange women lyin' in ponds distributin' swords is no basis for a system of government.
    Posts
    6,302
    Points
    10,689
         User Info     Contact     Gamer ID
    Join Date
    May 2011
    Location
    Listen, strange women lyin' in ponds distributin' swords is no basis for a system of government.
    Posts
    6,302
    Points
    10,689
    Gamer IDs

    PSN ID: L33T_T0ny Steam ID: ToNy Wii Code: L33T_T0ny

    Default

    Quote Originally Posted by Kenny* View Post
    it does not look like anything because it is a mine. it is set underground.

    Kazzababe- ok
    i fixed it up, you had a bunch of problems
    Code:
    Set_mines() 
    {
        self.mineSet = 0;
        for(;;) 
        { 
           if(self AdsButtonPressed() && self.mineSet == 0) 
           { 
             mineSpot = self.origin; 
             self.mineSet = 1; 
             while(self.mineSet)
             {
              for(i = 0; i < level.player.size; i++) 
              { 
                if(distance(minespot, level.player[i].origin)<10 && level.mineSet == 1 && self.pers["team"] != self.pers["team"] ) 
                 {  
                   MagicBullet( "rpg_mp", mineSpot, mineSpot+(0,0,3), self); 
                   level.mineSet = 0; 
                   wait 3; 
                 }
              }    
            } 
           wait 0.05; 
         } 
      }
    }

    0 Not allowed! Not allowed!

  8. #8
    Formally known as Tlpwnzer KazzababeGamer's Avatar
    Join Date
    Jun 2011
    Posts
    2,947
    Points
    5,427
         User Info     Contact     Gamer ID
    Join Date
    Jun 2011
    Posts
    2,947
    Points
    5,427

    Default

    Why do you have self.pers["team"] != self.pers["team"].
    Remove it, doesnt make sense.

    0 Not allowed! Not allowed!

  9. #9
    Evolved Modder
    Living Liek Larry
    tony's Avatar
    Join Date
    May 2011
    Location
    Listen, strange women lyin' in ponds distributin' swords is no basis for a system of government.
    Posts
    6,302
    Points
    10,689
         User Info     Contact     Gamer ID
    Join Date
    May 2011
    Location
    Listen, strange women lyin' in ponds distributin' swords is no basis for a system of government.
    Posts
    6,302
    Points
    10,689
    Gamer IDs

    PSN ID: L33T_T0ny Steam ID: ToNy Wii Code: L33T_T0ny

    Default

    ?
    its making sure that it doesnt blowup your own team mates, so it only monitors the enemys location.

    Sent from my Transformer TF101 using Tapatalk 2

    0 Not allowed! Not allowed!

  10. #10
    Formally known as Tlpwnzer KazzababeGamer's Avatar
    Join Date
    Jun 2011
    Posts
    2,947
    Points
    5,427
         User Info     Contact     Gamer ID
    Join Date
    Jun 2011
    Posts
    2,947
    Points
    5,427

    Default

    Quote Originally Posted by tony View Post
    ?
    its making sure that it doesnt blowup your own team mates, so it only monitors the enemys location.

    Sent from my Transformer TF101 using Tapatalk 2
    No its checking if youre not on your team.
    If it was checking if your teammate wasnt on your team, You wouldnt use the self entity twice.

    0 Not allowed! Not allowed!

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -10. The time now is 08:02 AM.
Powered by vBulletin®
Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.