Raised This Month: $ Target: $400
 0% 

cs: grenade id on multiple smoke nades?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
vittu
SuperHero Moderator
Join Date: Oct 2004
Location: L.A. County, CA
Old 03-21-2005 , 21:17   cs: grenade id on multiple smoke nades?
Reply With Quote #1

Is there a way to get the grenade id of multiple smoke nades? like say each time one is thrown get the id.

I've tried both functions get_grenade_id and get_grenade, the problem is when you throw more then one it only returns the first thrown smoke nades id until it goes away then it gets the next thrown nades id.

Anyone got any idea on how to make it get the next nades id before the first one disappears?
vittu is offline
Send a message via AIM to vittu Send a message via MSN to vittu Send a message via Yahoo to vittu
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 03-22-2005 , 01:13  
Reply With Quote #2

You can use the grenade_throw (I believe that is the name) forward from csx.inc. wId will be CSW_SMOKEGRENADE for smoke grenades. You can store thrown grenades in an array or something.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 03-22-2005 , 16:13  
Reply With Quote #3

Yea, that's what it is:
Quote:
forward grenade_throw( index,greindex,wId );
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:53.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode