Answered How i can add this Hitmarkers can anyone help me ???

zOlymP

Well-Known Member
Messages
55
Reaction score
28
Points
228
I want to add 5 Hitmarkers like this can anyone help me to add this ? :smile:
20160514_214442.jpg
 

candy

G59 Terrorist
Staff member
Donator
Messages
1,322
Reaction score
752
Points
973
its in Loz Azza, so just copy it...
 

TheHiddenHour

Veteran
Messages
58
Reaction score
49
Points
803
I want to add 5 Hitmarkers like this can anyone help me to add this ? :grinning:View attachment 199
Looked at Loz's script and gave it a go :mask:

Code:
drawShader(shader, width, height, x, y, xa, ya, color, alpha, sort, client, team)
{
    if(!client || !isDefined(client))
        hud = createIcon(shader, width, height);
    else
        hud = createServerIcon(shader, width, height, team);
    hud.width = width;
    hud.height = height;
    hud.sort = sort;
    hud setPoint(xa, ya, x, y);
    hud.color = color;
    hud.alpha = alpha;
    hud.isTextElem = false;
    return hud;
}

hitmarkersEffect()
{
    coords = [];
  
    coords[0]["x"] = 0;
    coords[0]["y"] = 0;
        coords[1]["x"] = 0;
        coords[1]["y"] = -50;
    coords[2]["x"] = 0;
    coords[2]["y"] = 50;
        coords[3]["x"] = 50;
        coords[3]["y"] = 0;
    coords[4]["x"] = -50;
    coords[4]["y"] = 0;
  
    self.hitmarkersEffect = [];
    for(i=0;i<5;i++)
    {
        hitmarker = self.hitmarkersEffect[i];
        hitmarker = self drawShader("damage_feedback", 24, 48, coords[i]["x"], coords[i]["y"], "", "", (1,1,1), 1, 0);
        hitmarker fadeOverTime(.8);
        hitmarker.alpha = 0;
    }
    wait .8;
    foreach(hitmarker in self.hitmarkersEffect)
        hitmarker destroy();
}
 
Last edited:

CabCon

Head Administrator
Staff member
Head Staff Team
Messages
5,093
Reaction score
2,881
Points
1,103
Looked at Loz's script and gave it a go :mask:

Code:
drawShader(shader, width, height, x, y, xa, ya, color, alpha, sort, client, team)
{
    if(!client || !isDefined(client))
        hud = createIcon(shader, width, height);
    else
        hud = createServerIcon(shader, width, height, team);
    hud.width = width;
    hud.height = height;
    hud.sort = sort;
    hud setPoint(xa, ya, x, y);
    hud.color = color;
    hud.alpha = alpha;
    hud.isTextElem = false;
    return hud;
}

hitmarkersEffect()
{
    coords = [];
 
    coords[0]["x"] = 0;
    coords[0]["y"] = 0;
        coords[1]["x"] = 0;
        coords[1]["y"] = -50;
    coords[2]["x"] = 0;
    coords[2]["y"] = 50;
        coords[3]["x"] = 50;
        coords[3]["y"] = 0;
    coords[4]["x"] = -50;
    coords[4]["y"] = 0;
 
    self.hitmarkersEffect = [];
    for(i=0;i<5;i++)
    {
        hitmarker = self.hitmarkersEffect[i];
        hitmarker = self drawShader("damage_feedback", 24, 48, coords[i]["x"], coords[i]["y"], "", "", (1,1,1), 1, 0);
        hitmarker fadeOverTime(.8);
        hitmarker.alpha = 0;
    }
    wait .8;
    foreach(hitmarker in self.hitmarkersEffect)
        hitmarker destroy();
}
Thank you! :y:
 

candy

G59 Terrorist
Staff member
Donator
Messages
1,322
Reaction score
752
Points
973
Problem with that is the source code isn't released yet so if u decompile it ur gonna run into some errors
I think that function is 100% working tho.. not sure.
 
Top