Throw Grenade Info (Y.A.T.E.S) 
18 comments NOTE: It requires
Y.A.T.E.S (2.0.4) - Admin Script / Framework (39) in order to run the plugin properly otherwise you have got to use the standalone script!
Documentation
The script outputs what type of grenade (+ flare) the teammate threw, similar mechanism like in CS:GO. The message will output only for the team squad itself and not for the enemy team.
Installation
IF YOU'RE USING Y.A.T.E.S: Just extract the grenade_info folder to
IF YOU'RE NOT USING Y.A.T.E.S: Extract the GrenadeInfo.lua file to
Changelog
29.12.2016 - "used" is now replaced with "threw" in the message output.
27.12.2016 - Initial release.
Rules & Permissions
You can do anything as you wish with this script. You can also upload it to other source parts as long you have my permission.



The script outputs what type of grenade (+ flare) the teammate threw, similar mechanism like in CS:GO. The message will output only for the team squad itself and not for the enemy team.


sys/lua/_yates/plugins
directory path and you're ready to go.
sys/lua
directory path. Afterwards, open server.lua file with a text editor and add the following line.Code:
1
dofile("sys/lua/GrenadeInfo.lua")
Changelog



You can do anything as you wish with this script. You can also upload it to other source parts as long you have my permission.
edited 4×, last 15.07.17 01:29:34 pm

Comments
18 comments



Log in!
You need to log in to be able to write comments!Log in
@
Masea: all it does is printing a message. The idea is OK but it doesn't deserve to be uploaded alone.
You don't see people selling their products in parts.

You don't see people selling their products in parts.

@
Goo: Excuse me, why? Probably the most absurd mind to don't like it... You're saying that is OK but without an occasion, that's annoying.

Yeah but this thing would've been better inside a bigger thing like maybe a pack of CS:GO features for the Y.A.T.E.S script
@
Goo: It's OK because I don't pretty much care about likes as my prime aim is constructive criticism. Even though the code logic structure is pretty simple, the purpose of this script is to provide a same concept just like in CS:GO.
Heck, if I could somehow manage the "Fire in the hole!" thingy (there's hud_fireinthehole setting though but that's an in-game setting and not server sided) I could reproduce same messages such as "Flashbang out!".

Heck, if I could somehow manage the "Fire in the hole!" thingy (there's hud_fireinthehole setting though but that's an in-game setting and not server sided) I could reproduce same messages such as "Flashbang out!".
So what it basically does is telling your team what grenade you were using? That's OK I guess... Not enough for a like though
29.12.16 05:10:41 pm
It's pretty useful.. but I don't think this will be needed by lots of people.
Meh, I don't feel like liking here, sorry.
Meh, I don't feel like liking here, sorry.

@
Gaios: What you said is also valid for you too. Just because you didn't even read full description yet. Take care on "attentions" next time.

@
Andrez: As you've guessed out, "Fire in the hole!" message is a part of CS2D internals thus it's impossible to modify it directly.
The only way to do that (indirectly though) is to hack the CS2D source code with a sort of hex editor and remove the message string bytes. Of course, that's a dirty approach and would surely lead to big problems. Not worth it.

The only way to do that (indirectly though) is to hack the CS2D source code with a sort of hex editor and remove the message string bytes. Of course, that's a dirty approach and would surely lead to big problems. Not worth it.

A very nice idea, but it's too "uncomfortable"
I mean, it becomes 2 messages for each grenade, quite spammy.
If somehow it would be in the same message than fire in the hole... which is something ingame not server sided i guess i'd take it. But it's not like that
I mean, it becomes 2 messages for each grenade, quite spammy.
If somehow it would be in the same message than fire in the hole... which is something ingame not server sided i guess i'd take it. But it's not like that



