ItsMods
Hitmark color? - Printable Version

+- ItsMods (https://www.itsmods.com)
+-- Forum: Archive (https://www.itsmods.com/Forum-Archive.html)
+--- Forum: Archive (https://www.itsmods.com/Forum-Archive--64.html)
+--- Thread: Hitmark color? (/Thread-Hitmark-color.html)



Hitmark color? - frozenliquid - 07-19-2012

Is it possible to change the hitmarker color in BO? If it is, what's the dvar for it?
I don't have crosshairs enabled but the hitmark still shows up properly.

I tried this:
setDvar("cg_crosshairEnemyColor", 1, 0, 0);

and then ran out of ideas Dumb Bitch

(That didn't even change the crosshair color though, after I enabled them :p)


RE: Hitmark color? - Pozzuh - 07-19-2012

It's a shader in one of the gscs.

That dvar changes the crosshair color when aiming at an enemy (normally red).


RE: Hitmark color? - frozenliquid - 07-19-2012

Ah alright. Any advice on how I could get about finding that shader?

Edit:

I think I found it! Thanks a ton dude.

Code:
onPlayerConnect() { for(;;) { level waittill("connecting", player); player.hud_damagefeedback = newClientHudElem(player); player.hud_damagefeedback.horzAlign = "center"; player.hud_damagefeedback.vertAlign = "middle"; player.hud_damagefeedback.x = -12; player.hud_damagefeedback.y = -12; player.hud_damagefeedback.alpha = 0; player.hud_damagefeedback.archived = true; player.hud_damagefeedback setShader("damage_feedback", 24, 48); player.hitSoundTracker = true; } }