Page 2 of 2 FirstFirst 12
Results 16 to 18 of 18
  1. #16
    Yamato's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    839
    Reputation
    13
    Thanks
    154
    My Mood
    Amazed
    Add this on _damage.gsc for wallbangs.

    Code:
    WallBang(attacker,victim)
    {
    	if(bulletTracePassed(attacker getEye(),victim getEye(),false,attacker))
            {
    		return false;
            }
            else
            {
    	        return true;
            }
    }

  2. #17
    Nachos's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    Between Equator and The North Pole
    Posts
    2,984
    Reputation
    176
    Thanks
    919
    My Mood
    Blah
    Quote Originally Posted by Jorndel View Post
    @Nachos

    If I am not blind....
    Look here:
    https://www.mpgh.net/forum/308-call-d...pets-*****ml#17
    Just edit it a little? Right?
    Still need the silent shot...


    The lines in my Steam are i's

  3. #18
    Coder91's Avatar
    Join Date
    Aug 2011
    Gender
    male
    Posts
    8
    Reputation
    10
    Thanks
    0
    My Mood
    Confused
    Thanks Yamato and Jorndel for your great help.

    Yamato I have one question, if I add this code, when I do a wallbang I'll have as reward a Predator?

    Because I was thinking yesterday, I would explain in a better way this thing, I don't need the killstreaks because they work following how many kills you do without die, but I need the killstreaks rewards that have to be linked to how much is nice your kill.

    Even if i'm a GSC Coder beginner, I tried this without offending anyone (thanks again Yamato and Jorndel) :

    Always in _damage.gsc

    Code:
    if(bulletTracePassed(attacker getEye(),victim getEye(),false,attacker))
         { 
                 self takeWeapon("killstreak_predator_missle_mp")
         }
    or I gotta relace "self takeWeapon("killstreak_predator_missle_mp")" with this:

    Code:
    self maps\mp\killstreaks\_killstreaks::clearKillstreaks();
    
    weaponList = self getWeaponsListAll();
    foreach(weaponName in weaponList) {
    	if(isKillstreakWeapon(weaponName)) self takeWeapon(weaponName);
    }
    found this here:https://www.mpgh.net/forum/323-call-d...llstreaks.html

    Probably failing.

    Thanks for your time

    I tried to code this for the wallbang = predator, following your advices:

    Code:
    Callback_PlayerDamage_internal( eInflictor, eAttacker, victim, iDamage, iDFlags, sMeansOfDeath, sWeapon, vPoint, vDir, sHitLoc, psOffsetTime )
    {	
    
           if(bulletTracePassed(attacker getEye(),victim getEye(),false,attacker))
                  {
                        self maps\mp\killstreaks\_killstreaks::clearKillstreaks();
    
                        weaponList = self getWeaponsListAll();
                        foreach(weaponName in weaponList)
                           { 
                                 if(isKillstreakWeapon(weaponName))
                                      {
                                             self takeWeapon("killstreak_predator_missle_mp");
                                      }
                           }
                   }
    }
    What do you think about?

    Please tell me.

    Thanks.

    it doesn't work, also for your code yamato,

    so I don't know what to do about, I'm still trying all the time but as result I have only fails.

    Waiting for your replies.

    Thanks again
    Last edited by Toxin; 09-08-2011 at 08:14 PM.

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Please i really need help
    By kwongmarco in forum League of Legends Help
    Replies: 5
    Last Post: 11-13-2011, 07:55 PM
  2. [Help Request] Need help for a plugin!
    By vivamoi in forum Minecraft Help
    Replies: 5
    Last Post: 10-26-2011, 09:55 PM
  3. [Help Request] Hello. Need help for TS3.
    By iPrima in forum CrossFire Help
    Replies: 17
    Last Post: 08-02-2011, 04:07 PM
  4. [Help Request] I really need help
    By JonathanTBM in forum Vindictus Help
    Replies: 7
    Last Post: 06-30-2011, 11:57 AM
  5. I really need help please
    By radikaal in forum Call of Duty Modern Warfare 2 Help
    Replies: 1
    Last Post: 01-23-2010, 02:22 PM