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

Plutonium

  1. Home
  2. BO2 Modding Support & Discussion
  3. Simple enough mod, possible through gsc?

Simple enough mod, possible through gsc?

Scheduled Pinned Locked Moved BO2 Modding Support & Discussion
8 Posts 2 Posters 378 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.
  • thebx2undefined Offline
    thebx2undefined Offline
    thebx2
    wrote on last edited by
    #1

    I was playing cyberpunk last night, and near the beginning there is a tutorial that goes over combat techniques and all of that, and while I was shooting at the ai bot in game, it would give me feedback that I've hit my target, in this case by displaying hit points that float away from the point of impact. Got me thinking a bit.

    I was wondering if a similar type of hit marker/confirm would be possible in zombies or multiplayer, though it doesn't necessarily have to show hit points, I'd assume that would add complexity since you'd need to track what body part you've hit. a glow or color flash could work, the word hit could be displayed briefly, something like that.

    Would this be possible in gsc? Does this already exist? I searched but didn't see what I was looking for.
    something along the lines of:

    if hit.confirm
    {
    self iPrintln( HIT );
    }

    Also, if I were to attempt to code this myself, should I put this in onPlayerSpawned?
    thanks for any insight in advance! 🙂

    1 Reply Last reply
    0
    • mikzyundefined Offline
      mikzyundefined Offline
      mikzy Banned
      wrote on last edited by mikzy
      #2

      I actually made a mod for this! You can find it here: https://github.com/mikzyy/BO2-ZM-Hitmarkers

      This is the default hitmarker from multiplayer, but you can modify this to do any type of feedback. (the init_player_hitmarkers and updatedamagefeedback are where it happens 😉 )

      thebx2undefined 2 Replies Last reply
      0
      • thebx2undefined Offline
        thebx2undefined Offline
        thebx2
        replied to mikzy on last edited by
        #3

        mikey
        that's siiiick thanks man! Did you make a thread for it? Don't know why didn't I see it in search? oh well.

        Will try this out tn for sure.

        1 Reply Last reply
        0
        • thebx2undefined Offline
          thebx2undefined Offline
          thebx2
          replied to mikzy on last edited by
          #4

          mikey hmm doesn't seem to be doing anything. I compiled the script as is and it loaded up fine, but I don't see any red hit markers when I hit my target. I also tried merging it with my script and same result for now.

          I notice the exact thing I want to see is happening beside my points counter at the bottom right in yellow, can we somehow move that to the point of bullet impact? Red hit markers are cool too, it just doesn't seem to be working on my end

          mikzyundefined 1 Reply Last reply
          0
          • mikzyundefined Offline
            mikzyundefined Offline
            mikzy Banned
            replied to thebx2 on last edited by
            #5

            thebx2 Yes, i made a post on this: https://forum.plutonium.pw/topic/6785/release-bo2-zombie-hitmarkers?_=1607824594266

            To enable red hitmarkers, you must type in your server config:
            set redHitmarkers 1

            If you are trying to merge your script, then you may encounter some errors. What are you trying to do?

            thebx2undefined 1 Reply Last reply
            0
            • thebx2undefined Offline
              thebx2undefined Offline
              thebx2
              replied to mikzy on last edited by thebx2
              #6

              mikey ah right ofc, definitely forgot to do that.
              I'm not getting any errors, but I still don't see anything happening. I have a script that is pretty much just zombeies++ with a few minor modifications here and there, like I've made a custom connect message for example. Just wanted to add this in as a new feature really.

              mikzyundefined 1 Reply Last reply
              0
              • mikzyundefined Offline
                mikzyundefined Offline
                mikzy Banned
                replied to thebx2 on last edited by
                #7

                thebx2 This should be working. I've tested.

                thebx2undefined 1 Reply Last reply
                0
                • thebx2undefined Offline
                  thebx2undefined Offline
                  thebx2
                  replied to mikzy on last edited by
                  #8

                  mikey
                  I believe you, I'm sure its something dumb I've done on my end that I haven't discovered yet. I'm a pretty decent troubleshooter though, surely I can zero in on the cause

                  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