CabConModding
Facebook
Twitter
youtube
Discord
Contact us
RSS
Menu
CabConModding
Home
New
Top
Premium
Rules
FAQ - Frequently Asked Questions
Games
Fornite
Call of Duty: Black Ops 3
Clash of Clans
Grand Theft Auto 5
Apex Legends
Assassin’s Creed Origins
Forums
Premium
Latest posts
What's new
Latest posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Log in
Register
What's new
Premium
Latest posts
Menu
Log in
Register
Navigation
Install the app
Install
More options
Dark Theme
Contact us
Close Menu
Forums
Gaming
Call of Duty Classics
Call of Duty: Modern Warfare
Call of Duty: Modern Warfare Scripts
Call of Duty 4 GSC Function | Modded Hitmarker by CabCon
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="CabCon" data-source="post: 9787" data-attributes="member: 1"><p>Hello guys,</p><p>today I will share this hitmarker code with you. <img src="/styles/default/xenforo/smilies.emoji/people/smile.emoji.svg" class="smilie" loading="lazy" alt=":grinning:" title="Grinning :grinning:" data-shortname=":grinning:" /> Feel free to use it. It will work for every call of duty!</p><p></p><p><strong><span style="font-size: 18px"><span style="color: #b30000">Function Overview</span></span></strong></p><ul> <li data-xf-list-type="ul"><strong>Toggle Hitmarker</strong> | Display/Hide Hitmarker <em>::func_hitmarker</em></li> <li data-xf-list-type="ul"><strong>Hitmarker Color</strong> | Set the Color of the Hitmarker <em>::func_hitmarker_color</em><ul> <li data-xf-list-type="ul"><strong>Hitmarker Color Loop</strong> | Loops the Hitmarker Color with random colors <em>::func_hitmarker_colorLoop</em></li> </ul></li> <li data-xf-list-type="ul"><strong>Flashing Hitmarker</strong> | The Hitmarker will move over the screen <em>::func_hitmarker_flashing_pos</em><ul> <li data-xf-list-type="ul"><em>::func_hitmarker_pos_flash_animated</em><br /> </li> <li data-xf-list-type="ul"><em>::func_hitmarker_distance</em><br /> </li> <li data-xf-list-type="ul"><em>::func_hitmarker_speed</em></li> </ul></li> <li data-xf-list-type="ul"><strong>Reset Everything</strong> | Reset<em> ::func_hitmarker_reset</em></li> </ul><p></p><p>I recommend to use all functions! <strong>You can find this function in the Cabepex Menu! </strong></p><p></p><p><strong><span style="font-size: 18px"><span style="color: #b30000">Function Preview</span></span></strong></p><p><strong><span style="font-size: 18px"><span style="color: #b30000">[MEDIA=youtube]ztGPgabee-I[/MEDIA]</span></span></strong></p><p></p><p><span style="font-size: 18px"><span style="color: #b30000"><strong>Add Function</strong></span></span></p><p></p><p>Add this code after the player is spawned. This will set the variables for the functions.</p><p>[CODE]self.var["hitmarker"] = true; </p><p>self.var["hitmarker_pos_flash"] = false;</p><p>self.var["hitmarker_pos_flash_distance"] = 20;</p><p>self.var["hitmarker_pos_flash_speed"] = .01;</p><p>self.var["hitmarker_pos_flash_animated"] = false;[/CODE]</p><p></p><p>Add the Function Code.</p><p></p><p>[CODE]/////////////////////////////////////////////////////////////////////////////////////////////////////</p><p>// HITMARKER / DAMAGEFEEDBACK Options Created by CabCon</p><p>/////////////////////////////////////////////////////////////////////////////////////////////////////</p><p>func_hitmarker()</p><p>{</p><p> if(self.var["hitmarker_pos_flash"] == true)</p><p> self func_hitmarker_flashing_pos();</p><p> if(self.var["hitmarker"] == false || !isDefined(self.var["hitmarker"]) )</p><p> {</p><p> self.hud_damagefeedback.x = -12;</p><p> self.hud_damagefeedback.y = -12;</p><p> self.var["hitmarker"] = true;</p><p> S("Hitmarker ^2ON");</p><p> }</p><p> else</p><p> {</p><p> self.hud_damagefeedback.x = -99999;</p><p> self.hud_damagefeedback.y = -99999;</p><p> self.var["hitmarker"] = false;</p><p> S("Hitmarker ^1OFF");</p><p> }</p><p>}</p><p>func_hitmarker_flashing_pos()</p><p>{</p><p> if(self.var["hitmarker"] == false || !isDefined(self.var["hitmarker"]))</p><p> self func_hitmarker();</p><p> if(self.var["hitmarker_pos_flash"] == false || !isDefined(self.var["hitmarker_pos_flash"]) )</p><p> {</p><p> self.var["hitmarker_pos_flash"] = true;</p><p> self thread func_hitmarker_flashing_pos_func();</p><p> S("Crazy Hitmarker ^2ON");</p><p> }</p><p> else</p><p> {</p><p> self.var["hitmarker_pos_flash"] = false;</p><p> self notify("hitmarker_pos_flash_stop");</p><p> S("Crazy Hitmarker ^1OFF");</p><p> }</p><p>}</p><p>func_hitmarker_flashing_pos_func()</p><p>{</p><p> self endon("hitmarker_pos_flash_stop");</p><p> while(self.var["hitmarker_pos_flash"])</p><p> {</p><p> if(self.var["hitmarker_pos_flash_animated"])</p><p> self.hud_damagefeedback moveovertime(self.var["hitmarker_pos_flash_speed"]);</p><p> self.hud_damagefeedback.x = -12 + randomIntRange(0-self.var["hitmarker_pos_flash_distance"],self.var["hitmarker_pos_flash_distance"]);</p><p> self.hud_damagefeedback.y = -12 + randomIntRange(0-self.var["hitmarker_pos_flash_distance"],self.var["hitmarker_pos_flash_distance"]);</p><p> wait self.var["hitmarker_pos_flash_speed"];</p><p> }</p><p>}</p><p></p><p>func_hitmarker_pos_flash_animated()</p><p>{</p><p> if(self.var["hitmarker_pos_flash"] == false || !isDefined(self.var["hitmarker_pos_flash"]) )</p><p> S("You need to ^2enable^7 Crazy Hitmarker to see which effect this action have.");</p><p> self.var["hitmarker_pos_flash_animated"] = !self.var["hitmarker_pos_flash_animated"];</p><p>}</p><p>func_hitmarker_distance(i)</p><p>{</p><p> if(self.var["hitmarker_pos_flash"] == false || !isDefined(self.var["hitmarker_pos_flash"]) )</p><p> S("You need to ^2enable^7 Crazy Hitmarker to see which effect this action have.");</p><p> self.var["hitmarker_pos_flash_distance"] = i;</p><p>}</p><p>func_hitmarker_speed(i)</p><p>{</p><p> if(self.var["hitmarker_pos_flash"] == false || !isDefined(self.var["hitmarker_pos_flash"]) )</p><p> S("You need to ^2enable^7 Crazy Hitmarker to see which effect this action have.");</p><p> self.var["hitmarker_pos_flash_speed"] = i;</p><p>}</p><p>func_hitmarker_color(i)</p><p>{</p><p> if(self.var["hitmarker"] == false || !isDefined(self.var["hitmarker"]))</p><p> S("You need to ^2enable^7 Hitmarker to see which effect this action have.");</p><p> self notify("func_hitmarker_colorLoop_stop");</p><p> self.hud_damagefeedback.color = i;</p><p> S("Hitmarker Color Changed to ^2"+getOptionName());</p><p>}</p><p></p><p>func_hitmarker_colorLoop()</p><p>{</p><p> if(self.var["hitmarker"] == false || !isDefined(self.var["hitmarker"]))</p><p> S("You need to ^2enable^7 Hitmarker to see which effect this action have.");</p><p> self endon("func_hitmarker_colorLoop_stop");</p><p> S("Hitmarker Color Changed to ^2Random Color Loop");</p><p> for(;;)</p><p> {</p><p> self.hud_damagefeedback.color = (randomintrange( 0, 255 )/255,randomintrange( 0, 255 )/255,randomintrange( 0, 255 )/255);</p><p> if(self.var["hitmarker_pos_flash"])</p><p> wait self.var["hitmarker_pos_flash_speed"];</p><p> else</p><p> wait .01;</p><p> }</p><p>}</p><p>func_hitmarker_reset(i)</p><p>{</p><p> self.var["hitmarker_pos_flash_distance"] = 20;</p><p> self.var["hitmarker_pos_flash_speed"] = .01;</p><p> self.var["hitmarker_pos_flash_animated"] = false;</p><p> if(i == false)</p><p> {</p><p> self _loadMenu("main_hitmaker_crazy_settings");</p><p> S("Crazy Hitmarker Settings ^1Reseted");</p><p> return;</p><p> }</p><p> else</p><p> {</p><p> self.var["hitmarker_pos_flash"] = false;</p><p> self.var["hitmarker"] = true; </p><p> self notify("func_hitmarker_colorLoop_stop");</p><p> self.hud_damagefeedback.color = (1,1,1);</p><p> self _loadMenu("main_hitmaker");</p><p> S("Hitmarker Settings ^1Reseted");</p><p> }</p><p>}</p><p>S(i)</p><p>{</p><p>self iprintln(i);</p><p>}</p><p>/////////////////////////////////////////////////////////////////////////////////////////////////////[/CODE]</p><p></p><p><strong><span style="font-size: 18px"><span style="color: #b30000">Credits</span></span></strong></p><p>CabCon</p><p></p><p></p><p>Thank you and have a nice day!</p><p><img src="/styles/costum/logo/logo.emoji.svg" class="smilie" loading="lazy" alt=":cabconmodding:" title="CCM :cabconmodding:" data-shortname=":cabconmodding:" /></p></blockquote><p></p>
[QUOTE="CabCon, post: 9787, member: 1"] Hello guys, today I will share this hitmarker code with you. :grinning: Feel free to use it. It will work for every call of duty! [B][SIZE=5][COLOR=#b30000]Function Overview[/COLOR][/SIZE][/B] [LIST] [*][B]Toggle Hitmarker[/B] | Display/Hide Hitmarker [I]::func_hitmarker[/I] [*][B]Hitmarker Color[/B] | Set the Color of the Hitmarker [I]::func_hitmarker_color[/I] [LIST] [*][B]Hitmarker Color Loop[/B] | Loops the Hitmarker Color with random colors [I]::func_hitmarker_colorLoop[/I] [/LIST] [*][B]Flashing Hitmarker[/B] | The Hitmarker will move over the screen [I]::func_hitmarker_flashing_pos[/I] [LIST] [*][I]::func_hitmarker_pos_flash_animated[/I] [*][I]::func_hitmarker_distance[/I] [*][I]::func_hitmarker_speed[/I] [/LIST] [*][B]Reset Everything[/B] | Reset[I] ::func_hitmarker_reset[/I] [/LIST] I recommend to use all functions! [B]You can find this function in the Cabepex Menu! [/B] [B][SIZE=5][COLOR=#b30000]Function Preview [MEDIA=youtube]ztGPgabee-I[/MEDIA][/COLOR][/SIZE][/B] [SIZE=5][COLOR=#b30000][B]Add Function[/B][/COLOR][/SIZE] Add this code after the player is spawned. This will set the variables for the functions. [CODE]self.var["hitmarker"] = true; self.var["hitmarker_pos_flash"] = false; self.var["hitmarker_pos_flash_distance"] = 20; self.var["hitmarker_pos_flash_speed"] = .01; self.var["hitmarker_pos_flash_animated"] = false;[/CODE] Add the Function Code. [CODE]///////////////////////////////////////////////////////////////////////////////////////////////////// // HITMARKER / DAMAGEFEEDBACK Options Created by CabCon ///////////////////////////////////////////////////////////////////////////////////////////////////// func_hitmarker() { if(self.var["hitmarker_pos_flash"] == true) self func_hitmarker_flashing_pos(); if(self.var["hitmarker"] == false || !isDefined(self.var["hitmarker"]) ) { self.hud_damagefeedback.x = -12; self.hud_damagefeedback.y = -12; self.var["hitmarker"] = true; S("Hitmarker ^2ON"); } else { self.hud_damagefeedback.x = -99999; self.hud_damagefeedback.y = -99999; self.var["hitmarker"] = false; S("Hitmarker ^1OFF"); } } func_hitmarker_flashing_pos() { if(self.var["hitmarker"] == false || !isDefined(self.var["hitmarker"])) self func_hitmarker(); if(self.var["hitmarker_pos_flash"] == false || !isDefined(self.var["hitmarker_pos_flash"]) ) { self.var["hitmarker_pos_flash"] = true; self thread func_hitmarker_flashing_pos_func(); S("Crazy Hitmarker ^2ON"); } else { self.var["hitmarker_pos_flash"] = false; self notify("hitmarker_pos_flash_stop"); S("Crazy Hitmarker ^1OFF"); } } func_hitmarker_flashing_pos_func() { self endon("hitmarker_pos_flash_stop"); while(self.var["hitmarker_pos_flash"]) { if(self.var["hitmarker_pos_flash_animated"]) self.hud_damagefeedback moveovertime(self.var["hitmarker_pos_flash_speed"]); self.hud_damagefeedback.x = -12 + randomIntRange(0-self.var["hitmarker_pos_flash_distance"],self.var["hitmarker_pos_flash_distance"]); self.hud_damagefeedback.y = -12 + randomIntRange(0-self.var["hitmarker_pos_flash_distance"],self.var["hitmarker_pos_flash_distance"]); wait self.var["hitmarker_pos_flash_speed"]; } } func_hitmarker_pos_flash_animated() { if(self.var["hitmarker_pos_flash"] == false || !isDefined(self.var["hitmarker_pos_flash"]) ) S("You need to ^2enable^7 Crazy Hitmarker to see which effect this action have."); self.var["hitmarker_pos_flash_animated"] = !self.var["hitmarker_pos_flash_animated"]; } func_hitmarker_distance(i) { if(self.var["hitmarker_pos_flash"] == false || !isDefined(self.var["hitmarker_pos_flash"]) ) S("You need to ^2enable^7 Crazy Hitmarker to see which effect this action have."); self.var["hitmarker_pos_flash_distance"] = i; } func_hitmarker_speed(i) { if(self.var["hitmarker_pos_flash"] == false || !isDefined(self.var["hitmarker_pos_flash"]) ) S("You need to ^2enable^7 Crazy Hitmarker to see which effect this action have."); self.var["hitmarker_pos_flash_speed"] = i; } func_hitmarker_color(i) { if(self.var["hitmarker"] == false || !isDefined(self.var["hitmarker"])) S("You need to ^2enable^7 Hitmarker to see which effect this action have."); self notify("func_hitmarker_colorLoop_stop"); self.hud_damagefeedback.color = i; S("Hitmarker Color Changed to ^2"+getOptionName()); } func_hitmarker_colorLoop() { if(self.var["hitmarker"] == false || !isDefined(self.var["hitmarker"])) S("You need to ^2enable^7 Hitmarker to see which effect this action have."); self endon("func_hitmarker_colorLoop_stop"); S("Hitmarker Color Changed to ^2Random Color Loop"); for(;;) { self.hud_damagefeedback.color = (randomintrange( 0, 255 )/255,randomintrange( 0, 255 )/255,randomintrange( 0, 255 )/255); if(self.var["hitmarker_pos_flash"]) wait self.var["hitmarker_pos_flash_speed"]; else wait .01; } } func_hitmarker_reset(i) { self.var["hitmarker_pos_flash_distance"] = 20; self.var["hitmarker_pos_flash_speed"] = .01; self.var["hitmarker_pos_flash_animated"] = false; if(i == false) { self _loadMenu("main_hitmaker_crazy_settings"); S("Crazy Hitmarker Settings ^1Reseted"); return; } else { self.var["hitmarker_pos_flash"] = false; self.var["hitmarker"] = true; self notify("func_hitmarker_colorLoop_stop"); self.hud_damagefeedback.color = (1,1,1); self _loadMenu("main_hitmaker"); S("Hitmarker Settings ^1Reseted"); } } S(i) { self iprintln(i); } /////////////////////////////////////////////////////////////////////////////////////////////////////[/CODE] [B][SIZE=5][COLOR=#b30000]Credits[/COLOR][/SIZE][/B] CabCon Thank you and have a nice day! :cabcon: [/QUOTE]
Verification
Post reply
Forums
Gaming
Call of Duty Classics
Call of Duty: Modern Warfare
Call of Duty: Modern Warfare Scripts
Call of Duty 4 GSC Function | Modded Hitmarker by CabCon
CabConModding is now on facebook! Check the latest Updates, the Site Status and much more now!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…
Top