[Script] Hitmarkers (Updated)

broken avatar :(
Created 1724 days ago
by MZslayer11
0 Members and 1 Guest are viewing this topic.
12,464 views
broken avatar :(
×
broken avatar :(
Location: usUnited States
Date Registered: 7 March 2014
Last active: 1 day ago
Posts
1,190
Respect
Forum Rank
Zombie Colossus
Primary Group
UGX Site Moderator
My Groups
More
My Contact & Social Links
More
×
MZslayer11's Groups
UGX Site Moderator Has the ability to issue warnings to users, edit and remove posts from the forum and to move topics to other boards. Upholds the rules of the forum. Moderates Chat Rooms.
MZslayer11's Contact & Social LinksAsk MeService_Code_30MZslayer11
[Script] Hitmarkers (Updated)


This is an updated version of an old script that I posted a while ago. This new script addresses many issues with the old script and is much better. Remove all scripting that you did for the old script before using this script. Thanks.


Preview Video:
[You are not allowed to view external links. Register or Login to see them]


Script created by: PROxFTW
Difficulty: Easy


[You are not allowed to view external links. Register or Login to see them]


Download and simply put the files where they belong. The sound files are default WaW files just placed correctly for you. Then just copy the mod.csv lines into your mod.csv and continue with the tutorial.



Step 1
------------------------------
In mapname.gsc above
maps\_zombiemode::main();
add
precacheShader( "damage_feedback" );

Step 2
-------------------------------
In _zombiemode_spawner.gsc in the function
zombie_death_event( zombie ) { CODE }
below
zombie waittill( "death" );
add
if( IsDefined( zombie.attacker ) && IsPlayer( zombie.attacker ) ) zombie.attacker thread maps\_damagefeedback::updateDamageFeedback( zombie );

Step 3
--------------------------------
In _zombiemode_spawner.gsc in the function
zombie_damage( mod, hit_location, hit_origin, player ) { CODE }
below
if( !IsDefined( player ) )
{
return;
}
add
if( IsDefined( player ) && IsPlayer( player ) ) player thread maps\_damagefeedback::updateDamageFeedback( self );

Step 4
--------------------------
Do the same thing in Step 3 for Step 4 but this time in the zombie_damage_ads function
zombie_damage_ads( mod, hit_location, hit_origin, player ) { CODE }

Step 5
--------------------------
In _zombiemode.gsc find
onPlayerSpawned() { CODE }
and below
self add_to_spectate_list();
add
if( !IsDefined( self.hud_damagefeedback ) )
self thread maps\_damagefeedback::init();

Step 5
--------------------------
Make sure all scripts are checked in your mod builder and build you mod.

DONE



If you use this script in your map, give credit to PROxFTW and MZslayer11
Last Edit: May 12, 2015, 12:52:12 am by MZslayer11
broken avatar :(
×
broken avatar :(
Location: usYork, SC
Date Registered: 15 March 2014
Last active: 216 days ago
Posts
214
Respect
Forum Rank
Mr. Elemental
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
WaW Scriptor
Signature
WaW Scriptor
×
PROxFTW's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
PROxFTW's Contact & Social LinksPROxFTWPROxFTWPROxFTWPROxFTW
There were a few reasons why I never posted this, not cause I didn't want anyone to know, but if you can tell, the sound doesn't exactly work, I believe the SP_hit_alert was changed to MP_hit_alert for the sound, and maybe something else but can't remember. And there was an issue where you could get hitmarkers on an already killed zombie. I was just never in the mood to exactly go about fixing any of this, so why I never posted it, and wanted to redo the script a bit. Also, the one you copied had an issue in co-op, just if you are going to keep it just update it, the updated script was like 3 post below.
broken avatar :(
×
broken avatar :(
Location: usUnited States
Date Registered: 7 March 2014
Last active: 1 day ago
Posts
1,190
Respect
Forum Rank
Zombie Colossus
Primary Group
UGX Site Moderator
My Groups
More
My Contact & Social Links
More
×
MZslayer11's Groups
UGX Site Moderator Has the ability to issue warnings to users, edit and remove posts from the forum and to move topics to other boards. Upholds the rules of the forum. Moderates Chat Rooms.
MZslayer11's Contact & Social LinksAsk MeService_Code_30MZslayer11
There were a few reasons why I never posted this, not cause I didn't want anyone to know, but if you can tell, the sound doesn't exactly work, I believe the SP_hit_alert was changed to MP_hit_alert for the sound, and maybe something else but can't remember. And there was an issue where you could get hitmarkers on an already killed zombie. I was just never in the mood to exactly go about fixing any of this, so why I never posted it, and wanted to redo the script a bit. Also, the one you copied had an issue in co-op, just if you are going to keep it just update it, the updated script was like 3 post below.

I believe I actually copied the script from the last one down and it seems to be working fine (except sounds, I will mention this in the tutorial). I test coop with my friend and it worked fine. Also, I haven't noticed hitmarkers on killed zombies so that's good.  ;)
broken avatar :(
×
broken avatar :(
Location: se
Date Registered: 30 July 2013
Last active: 32 days ago
Posts
517
Respect
Forum Rank
Zombie Enslaver
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
×
Ege115's Groups
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Ege115's Contact & Social LinksEge115
There were a few reasons why I never posted this, not cause I didn't want anyone to know, but if you can tell, the sound doesn't exactly work, I believe the SP_hit_alert was changed to MP_hit_alert for the sound, and maybe something else but can't remember. And there was an issue where you could get hitmarkers on an already killed zombie. I was just never in the mood to exactly go about fixing any of this, so why I never posted it, and wanted to redo the script a bit. Also, the one you copied had an issue in co-op, just if you are going to keep it just update it, the updated script was like 3 post below.
You could just check if the zombie is alive after they get damaged,
if(isAlive(zombie))
Last Edit: March 05, 2015, 05:30:19 am by Ege115
broken avatar :(
×
broken avatar :(
Location: gbMilton Keynes
Date Registered: 17 January 2014
Last active: 73 days ago
Posts
6,879
Respect
Forum Rank
Immortal
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Signature
If you want scripts / features made for you, then contact me by PM or email / skype etc
it will cost you tho so if you have no intention of reciprocating don't even waste my time ;)
×
Harry Bo21's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Harry Bo21's Contact & Social Links[email protected]HarryBo21HarryBo000
Finally, Ive been trying to find this for literally ages lol

Thanks for sharing MZslayer11

And thanks for the script PROxFTW :)
broken avatar :(
×
broken avatar :(
Face to Face
Location: chSomwhere
Date Registered: 6 October 2013
Last active: 526 days ago
Posts
947
Respect
Forum Rank
The Decider
Primary Group
Member
Personal Quote
Hello :)
Signature
Maya <3

Let's Play some osu!
×
MrDunlop4's Groups
MrDunlop4's Contact & Social Links
Nice Thanks for sharing :D

MrDunlop4
broken avatar :(
×
broken avatar :(
Location: es
Date Registered: 15 August 2013
Last active: 316 days ago
Posts
161
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Community Mapper
My Groups
More
Signature
Enjoy my work? Feel free to [You are not allowed to view external links. Register or Login to see them] to support me

Wanna become a Patron? [You are not allowed to view external links. Register or Login to see them]
×
sethnorris's Groups
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
sethnorris's Contact & Social Links
I know this is a silly question but could you upload some sort of video/pic so non-scripters know what this is about? I understand this but i would like to see it in a more visual way.
broken avatar :(
×
broken avatar :(
Location: gbMilton Keynes
Date Registered: 17 January 2014
Last active: 73 days ago
Posts
6,879
Respect
Forum Rank
Immortal
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
×
Harry Bo21's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Harry Bo21's Contact & Social Links[email protected]HarryBo21HarryBo000
Its the same thing as you get in multiplayer

If you hit someone (in this case a zombie) you hear a noice, and see a little crosshair appear for about a second.

If you get them in the head, its usually a slightly different noise

Its literally just to indicate the bullet hit a "opponent"
broken avatar :(
×
broken avatar :(
Location: usYork, SC
Date Registered: 15 March 2014
Last active: 216 days ago
Posts
214
Respect
Forum Rank
Mr. Elemental
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
WaW Scriptor
×
PROxFTW's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
PROxFTW's Contact & Social LinksPROxFTWPROxFTWPROxFTWPROxFTW
You could just check if the zombie is alive after they get damaged,
if(isAlive(zombie))
Yah I know, was going to be my way to fix it, but just got to lazy to ever do it.
broken avatar :(
×
broken avatar :(
True Blue Elite
Location: auAustralia
Date Registered: 8 February 2015
Last active: 365 days ago
Posts
688
Respect
Forum Rank
Zombie Enslaver
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
Still Kickin'
Signature


×
Andy Whelan's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Andy Whelan's Contact & Social LinksAndyWhelanAndyWhelan01AndyWhelan
Thank You for sharing
broken avatar :(
×
broken avatar :(
Location: fi
Date Registered: 25 June 2013
Last active: 17 hours ago
Posts
3,999
Respect
Forum Rank
Eviscerator
Primary Group
UGX V.I.P.
My Groups
More
My Contact & Social Links
More
×
HitmanVere's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
UGX V.I.P.
UGX V.I.P.
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
If I remember correctly, this plays for everyone, so if you shoot zombie, friends can see your hitmarkers  :-\
broken avatar :(
×
broken avatar :(
Location: usUnited States
Date Registered: 7 March 2014
Last active: 1 day ago
Posts
1,190
Respect
Forum Rank
Zombie Colossus
Primary Group
UGX Site Moderator
My Groups
More
My Contact & Social Links
More
×
MZslayer11's Groups
UGX Site Moderator Has the ability to issue warnings to users, edit and remove posts from the forum and to move topics to other boards. Upholds the rules of the forum. Moderates Chat Rooms.
MZslayer11's Contact & Social LinksAsk MeService_Code_30MZslayer11
If I remember correctly, this plays for everyone, so if you shoot zombie, friends can see your hitmarkers  :-\

Nope. That was a similar script. This one is fixed, and I tested it coop  ;)
broken avatar :(
×
broken avatar :(
Location: nl
Date Registered: 15 January 2015
Last active: 583 days ago
Posts
21
Respect
Forum Rank
Legless Crawler
Primary Group
Donator ♥
My Groups
More
×
Dust R I P's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Dust R I P's Contact & Social Links
Idk if I'M doing something wrong but this seems to lag my map and delay everything
broken avatar :(
×
broken avatar :(
Location: usUnited States
Date Registered: 7 March 2014
Last active: 1 day ago
Posts
1,190
Respect
Forum Rank
Zombie Colossus
Primary Group
UGX Site Moderator
My Groups
More
My Contact & Social Links
More
×
MZslayer11's Groups
UGX Site Moderator Has the ability to issue warnings to users, edit and remove posts from the forum and to move topics to other boards. Upholds the rules of the forum. Moderates Chat Rooms.
MZslayer11's Contact & Social LinksAsk MeService_Code_30MZslayer11
Idk if I'M doing something wrong but this seems to lag my map and delay everything

Hmm... I'm not sure what to tell you as I have not experienced this problem and I am not particularly experienced in scripting.
broken avatar :(
×
broken avatar :(
Location: usYork, SC
Date Registered: 15 March 2014
Last active: 216 days ago
Posts
214
Respect
Forum Rank
Mr. Elemental
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
WaW Scriptor
×
PROxFTW's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
PROxFTW's Contact & Social LinksPROxFTWPROxFTWPROxFTWPROxFTW
This is an updated version of the hitmarkers. Not really necessary to update but should be a little better than the original script. This includes headshot sounds and no longer shows hitmarkers on dead zombies. This does require a little more scripting but should be more reliable. Also MZslayer11 if you want to update you can but up to you. If there are any issues let me know. My files are completely different so I tried to determine the exact spots they should be but I could have messed something up still.

Step 1
------------------------------
In mapname.gsc above
maps\_zombiemode::main();
add
precacheShader( "damage_feedback" );

Step 2
-------------------------------
In _zombiemode_spawner.gsc in the function
zombie_death_event( zombie ) { CODE }
below
zombie waittill( "death" );
add
if( IsDefined( zombie.attacker ) && IsPlayer( zombie.attacker ) ) zombie.attacker thread maps\_damagefeedback::updateDamageFeedback( zombie );

Step 3
--------------------------------
In _zombiemode_spawner.gsc in the function
zombie_damage( mod, hit_location, hit_origin, player ) { CODE }
below
if( !IsDefined( player ) )
{
return;
}
add
if( IsDefined( player ) && IsPlayer( player ) ) player thread maps\_damagefeedback::updateDamageFeedback( self );

Step 4
--------------------------
Do the same thing in Step 3 for Step 4 but this time in the zombie_damage_ads function
zombie_damage_ads( mod, hit_location, hit_origin, player ) { CODE }

Step 5
--------------------------
In _zombiemode.gsc find
onPlayerSpawned() { CODE }
and below
self add_to_spectate_list();
add
if( !IsDefined( self.hud_damagefeedback ) )
self thread maps\_damagefeedback::init();

Step 6
---------------------------
Download: [You are not allowed to view external links. Register or Login to see them]
And simply put the files where they belong. The sound files are default waw files just placed correctly for you. There are also 2 csv files because the sound info came from 2 different csv files and I didn't feel like modifying them to work in 1. Then just copy the mod.csv lines into your mod.csv and done.

Video of the updated version for those wondering
Sorry but you are not allowed to view spoiler contents.

 

Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Twitch
Loading ...