Files

> > CS2D > Lua Scripts > Bouncing Grenades
Files overviewCS2D overviewLua Scripts overview

English Bouncing Grenades >

35 comments2 kb, 495 Downloads

Comments

35 comments
Page
To the start Previous 1 2 Next To the start

Log in!

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

old

sonkii
User Off Offline

Wait,what?This thing i really i need!Like it!
I like it!

old

Zurak
User Off Offline

in reality if a grenade hit a person it wouldn't bounce off but land near or if its a head shot it would knock the person out/kill him.

old

Apache uwu
User Off Offline

@user Infinite Rain: Actually the attack hook triggers after the grenade is thrown, so a script like ex:

1
2
3
4
5
6
7
addhook("attack","_attack")

function _attack(id)
	if player(id,"weapon")==51 then
		parse("strip "..id.." 51")
	end
end

Would not work, as you can see in my script, I used the select hook to detect if the user is holding a grenade or not.

As for the image, since the client and the server always have latency, the image moving across would not be smooth.

old

Infinite Rain
Reviewer Off Offline

@user Avo:
Firstly, one image will never lagg.
Secondly, it would be hard to detect a grenade throw and remove it before HE would be thrown
I like it!

old

maPmaKer
User Off Offline

Awesome, really awesome.
I like it!

old

Lubo
User Off Offline

Well the lau is pretty simple and cool.
So I like it.
Can i request you a lua?
I like it!

old

Avo
User Off Offline

@user Infinite Rain: You're probably right. But possible with images you know it, as user Apache uwu, it would lead to lags
I like it!

old

SkullzOrig
User Off Offline

You have to admit, they were good ideas.
I like it!

old

Apache uwu
User Off Offline

It's very possible. However doing it with images would not be smooth (due to lag between the server and client).

old

Infinite Rain
Reviewer Off Offline

Your suggestions is IMPOSSIBLE to be completed in Lua.
I like it!

old

SkullzOrig
User Off Offline

Idea's for grenades:
Sticky grenade: Sticks to the player when it makes contact, but does only 75% of the damage a HE nade does.
Flame grenade: It released a highly flamable gas that ignites the player on fire. Wears off after 3 sec, if the player is out of the gas distance.
Remote C2: Like the sticky grenade, it has the ability to stick to players. But only this explosive is remotely detonated, it is removed if the detonator is dropped or the detonator holder is killed.
I like it!

old

Infinite Rain
Reviewer Off Offline

during collision(!) so he can make delay after wall will disappear and grenade will bounce normally.
I like it!

old

Avo
User Off Offline

No, he couldn't. You can't make your custom bounce. He spawn building during collision and it cause bounce
I like it!

old

mafia_man
User Off Offline

You could use custom collision box'es for players, cuz now bouncing from them sucks.

old

Avo
User Off Offline

It's useless, but who one cares? You used the same trick like in "no penetration", am I right?
I like it!

old

Apache uwu
User Off Offline

I meant not with the current script. Also images might lag

old

Yates
Reviewer Off Offline

@user Apache uwu:
Plasma grenade image.
Move the image using Lua when thrown.
If it hits a player (same x y) then it sticks and follows him.
Explode on player x y.

Seems possible.

old

Apache uwu
User Off Offline

haha like halo plasma grenades? Sorry that is impossible.

old

SkullzOrig
User Off Offline

Hello ketamire, I have idea for you. Why not make a grenade that sticks to the player. That should be more of a challange for you. This is ok idea, but I probably won't use. I give like tho.
I like it!

old

Apache uwu
User Off Offline

@user DannyDeth: Sorry! That is a real grenade, I can't change the bounce path.
To the start Previous 1 2 Next To the start