Coder Social home page Coder Social logo

Comments (19)

B3none avatar B3none commented on May 26, 2024 1

I've updated https://github.com/b3none/retakes-hud so that it is generic and will work alongside splewis' plugin as well as others. If you're feeling extra nice then you could also star the repo as it goes a really long way 👍

from csgo-retakes.

sinistersnare avatar sinistersnare commented on May 26, 2024

I would love to work on this :) is the correct function to create such an alert PrintCenterText or PrintHintText? Or something else, because I have been searching for a while D:

I am new to source modding, so would love to try something low friction like this.

from csgo-retakes.

splewis avatar splewis commented on May 26, 2024

PrintHintText should work for this. The only special note is that if you want colors in the message, you have to html format all the text (I believe).

You'd do the call in Event_RoundPostStart, after the Retakes_MessageToAll.

I'll have to think about dealing with the colors, since if you use the "RetakeSiteMessage" phrase (https://github.com/splewis/csgo-retakes/blob/master/translations/retakes.phrases.txt#L12), you'll have color tags in it - and there's no way to convert them to the html colors right now. That could be added, I could add a function to strip colors from strings, or maybe it could just be a separate phrase in the file with the html stuff for now.

... now that I write all that, no colors in that message are probably fine for now :)

from csgo-retakes.

splewis avatar splewis commented on May 26, 2024

Having looked into the color stuff, it'd be simpler just to not put any colors in that hint text. I guess you would:

  • Get the text into a string from the RetakeSiteMessage translation phrase
  • remove the colors using StripColors
  • PrintHintText

for each client.

from csgo-retakes.

BrutalCSEjziponken avatar BrutalCSEjziponken commented on May 26, 2024

This was one of the first problems I noticed with this plugin. Its kinda hard to see what site it is and sometime you just forget because its not obvious enough.. What I did since Im not a coder, was to change the translation file.

"RetakeSiteMessage"
{
    "#format"       "{1:s},{2:d},{3:d}"
    "en"            "::::: RETAKE BOMBSPOT {MOSS_GREEN}{1} {NORMAL}::::: {LIGHT_RED}{2} Ts {NORMAL}vs {LIGHT_BLUE}{3} CTs"
}

Its a bit better but a hintmessage would be best.

from csgo-retakes.

data-bomb avatar data-bomb commented on May 26, 2024

I would propose data-bomb@f919695 as one possible solution for this enhancement request.

from csgo-retakes.

splewis avatar splewis commented on May 26, 2024

Looks pretty good. Any chance of getting a screenshot of how it looks in-game?

from csgo-retakes.

data-bomb avatar data-bomb commented on May 26, 2024

I'm not a very good artist, but here are some screenshots from in-game:

de_inferno0010
de_inferno0011

from csgo-retakes.

BrutalCSEjziponken avatar BrutalCSEjziponken commented on May 26, 2024

oh wow thats looks really good.

from csgo-retakes.

RavageCS avatar RavageCS commented on May 26, 2024

Seems a little excessive to me

from csgo-retakes.

BrutalCSEjziponken avatar BrutalCSEjziponken commented on May 26, 2024

No, its really not. Ive been getting complaints about this problem ever since we started our servers. Even I noticed that I sometimes ran to the wrong site. xD

from csgo-retakes.

data-bomb avatar data-bomb commented on May 26, 2024

It's possible to make it smaller. An overlay is something that's highly customizable but you just can't have too many because it's an extra download for the clients. It's an additional option to the problem as is a Hint box, different coloring, or additional chat messages. Certainly not for everyone, which is why it runs through the API as a separate plugin.

from csgo-retakes.

BrutalCSEjziponken avatar BrutalCSEjziponken commented on May 26, 2024

A little off topic, but can you make an overlay show once when players connect to the server and join a team? Like an advertisement plugin?

from csgo-retakes.

splewis avatar splewis commented on May 26, 2024

I know the overlay file itself is set by a cvar, but I think it's too large for my tastes to include here. If it were smaller I'd be fine to include it (and disabled by default).

from csgo-retakes.

data-bomb avatar data-bomb commented on May 26, 2024

I've removed the plugin on my server because some people said they saw a black screen instead of the overlay, and I'm not sure why since it works for me and I'm not an overlay expert.

from csgo-retakes.

jinnnnnnnn avatar jinnnnnnnn commented on May 26, 2024

@data-bomb hey databomb I tried to add the siteannouncer and the bombhelper but for some reason they don't work for me, could you help me by any chance?

from csgo-retakes.

data-bomb avatar data-bomb commented on May 26, 2024

jinn, this is pretty vague description so I can't help you much. You need to do the basic stuff you'd do for all plugins-- compile the SP file and put the SMX in the correct directory. The only extra part particular to this one is that the overlays need to go on the server directory and FastDL server, if you have a FastDL server. If you post a step-by-step guide to what you did then maybe one of us can point out your issue.

from csgo-retakes.

Rafael-Leal-Prada-dos-Santos avatar Rafael-Leal-Prada-dos-Santos commented on May 26, 2024

I've tried to put that After MessageToALL but the hint shows only when someone plant the bomb or when the freezetime ends. Have it some way to put the hintmessage when it's on the freezetime?

from csgo-retakes.

shanapu avatar shanapu commented on May 26, 2024

I've tried to put that After MessageToALL but the hint shows only when someone plant the bomb or when the freezetime ends. Have it some way to put the hintmessage when it's on the freezetime?

maybe take a look at this: https://github.com/shanapu/retake-overlays / https://forums.alliedmods.net/showthread.php?t=298249
It shows the overlay as soon as the bombsite is picked by retake plugin.

from csgo-retakes.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.