Raised This Month: $12 Target: $400
 3% 

Smoke grenade questions


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Black Haze
BANNED
Join Date: Sep 2008
Location: Hamsterdam
Old 03-20-2011 , 14:33   Smoke grenade questions
Reply With Quote #1

Been searching for this all over the place, and think I even remember seeing it somewhere a few months ago, yet I can't find it.

For some sort of kill streak system I'm trying to have the players earn kill streaks, and toss a smoke grenade at a spot, where the kill streak reward (eg a mortar strike or the likes, or Peace Maker's Ion Cannon ) shall be executed.

Basically what I'm after is:
- Is there an event for when the smoke grenade ignites?
Edit: Thank you databomb!
PHP Code:
HookEvent("smokegrenade_detonate",smokegrenade_detonate); 
PHP Code:
public smokegrenade_detonate(Handle:event,const String:name[],bool:dontBroadcast)
{

- Can I get which client has thrown the smoke from that, and the location of the smoke?
Edit: Thanks again databomb!
PHP Code:
new Float:Origin[3];
Origin[0] = GetEventFloat(event,"x");
Origin[1] = GetEventFloat(event,"y");
Origin[2] = GetEventFloat(event,"z"); 
PHP Code:
new client GetClientOfUserId(GetEventInt(event"userid")); 


And as a bonus question :
- Is there any way to change the smoke so that it aint a big ball of smoke like it usually is, but rather a small green (or whatever color) marker like smoke column?

Hope anyone can help me, am happy with the smallest hints! ;)

Last edited by Black Haze; 03-20-2011 at 15:40.
Black Haze is offline
 



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 11:53.


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