Comments (19)
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.
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.
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.
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.
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.
I would propose data-bomb@f919695 as one possible solution for this enhancement request.
from csgo-retakes.
Looks pretty good. Any chance of getting a screenshot of how it looks in-game?
from csgo-retakes.
I'm not a very good artist, but here are some screenshots from in-game:
from csgo-retakes.
oh wow thats looks really good.
from csgo-retakes.
Seems a little excessive to me
from csgo-retakes.
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.
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.
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.
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.
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.
@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.
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.
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.
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)
- RETAKES MESSAGE_PREFIX issue HOT 3
- de_ancient configs ? HOT 3
- de_ancient Spawns HOT 2
- Retakes mode not activated HOT 2
- retakes and pug plugin at the same time HOT 1
- Bomb is getting planted at any spawn HOT 3
- Bomb has been planted hint text working with sm_retakes_enabled 0 HOT 5
- No retakes.cfg being auto-created HOT 3
- de_ancient B site bomb is somwhere in the sky HOT 3
- Hud Phrase text Layout not working properly HOT 1
- de_basalt SpawnType_NeverWithBomb spawns not working on b-site
- Understand the retakes_standardallocator.sp HOT 2
- Server is lagging for a sec and var going high thn again normal the console is showing this issue HOT 2
- sm_iteratespawns not wokring HOT 2
- Reducing the value of mp_freezetime in retakes_game.cfg HOT 4
- c4 bleep out of sync HOT 1
- Error while trying to compile with smbuild
- [ ENHANCEMENT ] Option to edit spawns HOT 1
- Error compile `retakes_pistolallocator`, `retakes_sitepicker` and `retakes_standardallocator`
- smokes and maps
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from csgo-retakes.