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

Plutonium

  1. Home
  2. BO2 Modding Support & Discussion
  3. [T6]Command not working

[T6]Command not working

Scheduled Pinned Locked Moved BO2 Modding Support & Discussion
9 Posts 2 Posters 164 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.
  • [3arc]PHillundefined Offline
    [3arc]PHillundefined Offline
    [3arc]PHill
    wrote on last edited by
    #1

    Why doesn´t this command work? (player_bulletDamageMultiplier_head 5).
    I wanted to play BO2 but being able to Tap in the heads like in VALORANT or in CSGO.

    1 Reply Last reply
    0
    • Resxtundefined Offline
      Resxtundefined Offline
      Resxt Plutonium Staff
      wrote on last edited by
      #2

      Just put low HP and headshots only I guess

      [3arc]PHillundefined 1 Reply Last reply
      0
      • [3arc]PHillundefined Offline
        [3arc]PHillundefined Offline
        [3arc]PHill
        replied to Resxt on last edited by
        #3

        Resxt But I mean then I would kill people with only 2 shots, and that is not the point. Isn´t there anything I can do to use that command?

        Resxtundefined 1 Reply Last reply
        0
        • Resxtundefined Offline
          Resxtundefined Offline
          Resxt Plutonium Staff
          replied to [3arc]PHill on last edited by
          #4

          [3arc]PHill I'm sure if you put health point at a very low number like 1 or 10 and make it headshot only it would do what you want, no?

          [3arc]PHillundefined 1 Reply Last reply
          0
          • [3arc]PHillundefined Offline
            [3arc]PHillundefined Offline
            [3arc]PHill
            replied to Resxt on last edited by [3arc]PHill
            #5

            Resxt I´m sorry to keep bothering you, but I do not want to play as Only Headshot mode, and if I low the health popints people can get killed with 2 shots on the body and 1 in the head. The main problem is that I want to kill people with 4 body shots. That is why I was trying this command so I can play with normal HP but one-shot in the head. Is there a way to make it work?

            Resxtundefined 1 Reply Last reply
            0
            • Resxtundefined Offline
              Resxtundefined Offline
              Resxt Plutonium Staff
              replied to [3arc]PHill on last edited by Resxt
              #6

              [3arc]PHill I assume you can override the damage function and catch the headshot event and change iDamage to 100 or 99999

              [3arc]PHillundefined 1 Reply Last reply
              1
              • [3arc]PHillundefined Offline
                [3arc]PHillundefined Offline
                [3arc]PHill
                replied to Resxt on last edited by [3arc]PHill
                #7

                Resxt 😬 Any help with that? 😬
                And thanks btw

                Resxtundefined 1 Reply Last reply
                0
                • Resxtundefined Offline
                  Resxtundefined Offline
                  Resxt Plutonium Staff
                  replied to [3arc]PHill on last edited by Resxt
                  #8

                  [3arc]PHill I looked into it more and I achieved what you want with GSC.
                  Also please in the future don't create 3 topics for the same thing. Just stick to one and edit it/add information when needed

                  Download: https://drive.proton.me/urls/H2R5M09YRC#bXx6IFfC4p1e
                  Install: https://plutonium.pw/docs/modding/loading-mods/#loading-existing-scripts-on-t6

                  Source code for reference

                  Init()
                  {
                      level.callbackplayerdamagestub = level.callbackplayerdamage;
                      level.callbackplayerdamage = ::OneShotHeadshotDamageCallback;
                  }
                  
                  OneShotHeadshotDamageCallback( eInflictor, eAttacker, iDamage, iDFlags, sMeansOfDeath, sWeapon, vPoint, vDir, sHitLoc, timeOffset )
                  {
                  	if (isDefined(eAttacker) && IsDefined(self))
                  	{
                  		if (sHitLoc == "head")
                          {
                              iDamage = 100;
                          }
                  	}
                  	
                  
                  	self thread [[level.callbackplayerdamagestub]]( eInflictor, eAttacker, iDamage, iDFlags, sMeansOfDeath, sWeapon, vPoint, vDir, sHitLoc, timeOffset, 0 );
                  }
                  
                  [3arc]PHillundefined 1 Reply Last reply
                  1
                  • [3arc]PHillundefined Offline
                    [3arc]PHillundefined Offline
                    [3arc]PHill
                    replied to Resxt on last edited by [3arc]PHill
                    #9

                    Resxt You are a beast!! With this I can get started. I am very grateful.
                    Yes, sorry I won´t create various topics for the same issue 😞

                    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