Files

> > CS2D > Lua Scripts > Throw Grenade Info (Y.A.T.E.S)
Files overviewCS2D overviewLua Scripts overview

English Throw Grenade Info (Y.A.T.E.S) >

18 comments2 kb, 452 Downloads

old Throw Grenade Info (Y.A.T.E.S)

GeoB99
Moderator Off Offline

NOTE: It requires file cs2d Y.A.T.E.S (3.0.2) - Admin Script / Framework in order to run the plugin properly otherwise you have got to use the standalone script!

spam 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.

off-topic Installation

> IF YOU'RE USING Y.A.T.E.S: Just extract the grenade_info folder to
sys/lua/_yates/plugins
directory path and you're ready to go.

> IF YOU'RE NOT USING Y.A.T.E.S: Extract the GrenadeInfo.lua file to
sys/lua
directory path. Afterwards, open server.lua file with a text editor and add the following line.
1
dofile("sys/lua/GrenadeInfo.lua")

Changelog

CHANGED
29.12.2016 - "used" is now replaced with "threw" in the message output.
ADDED
27.12.2016 - Initial release.

illegal 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.
edited 4×, last 15.07.17 01:29:34 pm
Approved by Sparty

Download Download

2 kb, 452 Downloads

Comments

18 comments
To the start Previous 1 Next To the start

Log in!

You need to log in to be able to write comments!Log in

old

Mami Tomoe
User Off Offline

@user 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.

old

Danel Matto
BANNED Off Offline

I like it script
I like it!

old

Masea
Super User Off Offline

@user Mami Tomoe: 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.
I like it!

old

boncuk
User Off Offline

Nice script !
I like it!

old

Mami Tomoe
User Off Offline

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

old

GeoB99
Moderator Off Offline

@user Mami Tomoe: 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!".

old

Mami Tomoe
User Off Offline

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

old

Yates
Reviewer Off Offline

@user Keemstar: So who's this fake account?

old Okay?

Keemstar
BANNED Off Offline

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.

old

GeoB99
Moderator Off Offline

@user VADemon / @user Mora: You guys are right, "threw" could've made it more sense. I changed it!

old

VADemon
User Off Offline

I double user Mora's comment.
I like it!

old

Angel Montez
BANNED Off Offline

Like Go! Nice
I like it!

old

Masea
Super User Off Offline

@user 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.
I like it!

old

Gaios
Reviewer Off Offline

Oh my friend, you don't know CS2D yet
cs2d lua hook radio
edited 1×, last 30.12.16 06:24:26 pm

old

GeoB99
Moderator Off Offline

@user 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.

old

Andrez
User Off Offline

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 like it!

old

Mora
User Off Offline

Maybe 'threw' instead 'used' would be better.
Since it is just like addon (bcs ez) it may be more less-if-weapon'able.. Can't say i like it but it's ok as for addon..
I like it!
To the start Previous 1 Next To the start