Simple enough mod, possible through gsc?
-
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! -
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 )
-
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.
-
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
-
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?
-
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. -
thebx2 This should be working. I've tested.
-
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