Skip to content
  • 0 Unread 0
  • 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 735 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Blessa Offline
    Blessa 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.

    Drgn Sass 2 Replies Last reply
    0
    • Blessa Blessa

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

      Drgn Offline
      Drgn Offline
      Drgn
      Plutonium Staff
      wrote 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
      • Blessa Blessa

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

        Sass Offline
        Sass Offline
        Sass
        Plutonium Staff
        wrote 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

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

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