Author Topic: Hit Marker Mod  (Read 2394 times)

Hello. I have done the following code into a client.cs file:
Code: [Select]
function ClientCmdDisplayHitMarker() // Called by server upon hit
{
    Crosshair.setBitmap("bitmap/with/markers.wat"); // Displays the hitmarker
    Crosshair.schedule(400, setBitmap, "default/crosshair/path"); // After 400 MS, remove the hitmarker
}
I don't know what the crosshair's bitmap is. I need something to make this hit marker to work. What do I do next?
Quote
You may want to get the crosshairs current bitmap first and then set it back to that after in case they have a custom crosshair.
Quote
Yeah, as a workaround for custom crosshairs, you could add another element to the playGUI to use as hitmarkers

Oh, here's  picture of the look of the hit marker
« Last Edit: August 15, 2014, 10:38:50 AM by Mr. Noobalot »

Try crosshair.getBitmap() or crosshair.bitmap to get the current one.

Try crosshair.getBitmap() or crosshair.bitmap to get the current one.
In the code on the client.cs file?


Wasn't this mod already made?

Wasn't this mod already made?
i dont know. Link to the topic?

yes
i like your graphic better though
you shouldn't overwrite the crosshair, that doesn't look very good