Forum

> > CS2D > Scripts > Remove projectile.
Forums overviewCS2D overview Scripts overviewLog in to reply

English Remove projectile.

4 replies
To the start Previous 1 Next To the start

moved Remove projectile.

Mora
User Off Offline

Quote
Hello all!
I just wanna ask, possible it's to do remove that projectile(all) when it's fall? example i've throw gut bomb, it's should explode, but it's will just removed.
possible it's?
Thank u.

IMG:https://i9.pixs.ru/storage/0/9/4/flashtest0_5566184_15074094.jpg

IMG:https://i9.pixs.ru/storage/1/0/1/flashtest0_8551205_15074101.jpg
edited 1×, last 08.12.14 11:14:02 am

old Re: Remove projectile.

DC
Admin Off Offline

Quote
It's not possible directly but there is a workaround which should lead to the desired result:
• fetch the position with Lua cs2d lua cmd projectilelist and cs2d lua cmd projectile
• kill the existing projectile with cs2d cmd freeprojectile
• spawn a new one at the same position with cs2d cmd spawnprojectile.

The important part: Use flydist 0 for the new projectile. This should make it explode instantly. This should at least work for the gut bomb. Grenades have an additional timer which can't be influenced I think.

old Re: Remove projectile.

Mora
User Off Offline

Quote
@user DC:Thank you, i get gut bomb as example, because smoke grenade explode same as gut bomb.
I just needs only Flash grenade, when it fall at floor it's will removed. But i don't think i can do it correctly/workable, so that's why i'm asked for.
P.s- and why here is second attack?:
IMG:https://i9.pixs.ru/storage/3/9/8/Bezimyanni_9520378_15075398.png

old Re: Remove projectile.

DC
Admin Off Offline

Quote
Ooops. Yes, this seems to be wrong. The machete does not have any secondary attack function. Thanks for pointing it out.

old Re: Remove projectile.

Mora
User Off Offline

Quote
@user DC: You can close topic.

Admin/mod comment

I can but I won't. There is no reason to close topics unless spammers go crazy /DC
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview