Results 1 to 10 of 10

Thread: How to prevent hunter from killing other hunters with bazooka?

  1. #1
    Private
    Join Date
    Aug 2013
    Posts
    95
    Thanks
    13
    Thanked 4 Times in 3 Posts

    How to prevent hunter from killing other hunters with bazooka?

    hello everybody

    when the hunter want to kill the zombie(s) with the bazooka, the bazooka can kill the hunter too.
    i would like to know if it is possible to protect the hunter who use the bazooka ?

  2. #2
    Corporal guiismiti's Avatar
    Join Date
    Dec 2013
    Location
    Brazil
    Posts
    244
    Thanks
    121
    Thanked 42 Times in 31 Posts
    yes, it is!
    set logfile 2

  3. #3
    Private
    Join Date
    Aug 2013
    Posts
    95
    Thanks
    13
    Thanked 4 Times in 3 Posts
    can you tell me how?

  4. #4
    Global Mossaderator Mitch's Avatar
    Join Date
    Nov 2012
    Posts
    654
    Thanks
    204
    Thanked 450 Times in 305 Posts
    Quote Originally Posted by guiismiti View Post
    yes, it is!
    I have added in my mod an if with a return when the hunter is moving to a other team. (And i also check if he killed or damaged a other player.)

    Edit: see the damage/killed callback.

    Edit 2: Can you make proper thread title next time? Instead of just 'bazooka' use a title like 'How to prevent hunter from killing other hunters with bazooka?'.
    Edit 3: @ORDI I assume you have friendly fire off, right?
    Last edited by Mitch; 24th April 2015 at 18:29.

  5. The Following User Says Thank You to Mitch For This Useful Post:

    ORDI (24th April 2015)

  6. #5
    Private
    Join Date
    Aug 2013
    Posts
    95
    Thanks
    13
    Thanked 4 Times in 3 Posts
    yep it is off

    i mean when the hunter kill the zombies with the bazooka, it can kill himself also
    Last edited by ORDI; 24th April 2015 at 19:05.

  7. #6
    Private
    Join Date
    Aug 2013
    Posts
    95
    Thanks
    13
    Thanked 4 Times in 3 Posts
    ok, topic solved, thx for help

  8. #7
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,010
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    Constant reminder: post solution, if found by yourself
    timescale 0.01

  9. #8
    Private
    Join Date
    Aug 2013
    Posts
    95
    Thanks
    13
    Thanked 4 Times in 3 Posts
    PHP Code:
    Callback_PlayerDamage(eInflictoreAttackeriDamageiDFlagssMeansOfDeathsWeaponvPointvDirsHitLocpsOffsetTime)
    {
        if(
    self.sessionteam == "spectator")
            return;
            
        if (
    isdefined(eAttacker) && isdefined(self) && eAttacker == self && sWeapon == "rpg_mp")// the bazooka
            
    return; 

  10. #9
    Brigadier General
    Join Date
    Oct 2012
    Posts
    994
    Thanks
    20
    Thanked 588 Times in 388 Posts
    Quote Originally Posted by ORDI View Post
    PHP Code:
    Callback_PlayerDamage(eInflictoreAttackeriDamageiDFlagssMeansOfDeathsWeaponvPointvDirsHitLocpsOffsetTime)
    {
        if(
    self.sessionteam == "spectator")
            return;
            
        if (
    isdefined(eAttacker) && isdefined(self) && eAttacker == self && sWeapon == "rpg_mp")// the bazooka
            
    return; 
    But that stops damage to everyone - hunters and zombies alike - as there is no check for which team they are on. Is that what you wanted?

  11. #10
    Private
    Join Date
    Aug 2013
    Posts
    95
    Thanks
    13
    Thanked 4 Times in 3 Posts
    anyway only the hunters can have this bazooka. and yes is that what i wanted

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •