Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Donate
Collapse

Plutonium

  1. Home
  2. BO2 Modding Support & Discussion
  3. [Support] how to lower Health percentage and weapons in my server.

[Support] how to lower Health percentage and weapons in my server.

Scheduled Pinned Locked Moved BO2 Modding Support & Discussion
3 Posts 3 Posters 313 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Blessaundefined Offline
    Blessaundefined Offline
    Blessa
    wrote on last edited by Mr. Android
    #1

    how do i make it so u dont get hit markers with snipers. and the only weapons u can kill someone with are snipers.

    Drgnundefined Sassundefined 2 Replies Last reply
    0
    • Drgnundefined Offline
      Drgnundefined Offline
      Drgn Plutonium Staff
      replied to Blessa on last edited by Drgn
      #2

      Blessa You can edit health in the gamemode configs. As for damage you need to have a damage callback with iDamage being the damage output.

      1 Reply Last reply
      0
      • Sassundefined Offline
        Sassundefined Offline
        Sass Plutonium Staff
        replied to Blessa on last edited by Sass
        #3

        Blessa You need to have a .gsc file going, here's what you need to put in it :

        Step 1:
        Put this in init() : level.onplayerdamage = ::onplayerdamage;

        Step 2:
        Put this anywhere in your file :

        onplayerdamage( einflictor, eattacker, idamage, idflags, smeansofdeath, sweapon, vpoint, vdir, shitloc, psoffsettime )
        {
            if(!isSubStr(sweapon, "svu_") && !isSubStr(sweapon, "dsr50_") && !isSubStr(sweapon, "ballista_") && !isSubStr(sweapon, "xpr50_") && smeansofdeath != "MOD_MELEE" && smeansofdeath != "MOD_EXPLOSIVE" && smeansofdeath != "MOD_GRENADE")
                self.health = 100;
        }
        

        Edit: added grenade damage

        1 Reply Last reply
        0

        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Donate