Raised This Month: $ Target: $400
 0% 

Generate Smoke Effect Lasting 30s?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
simoneaolson
Member
Join Date: Sep 2009
Old 10-05-2009 , 16:44   Generate Smoke Effect Lasting 30s?
Reply With Quote #1

Trying to emulate a smoke grenade in DoD:S on Round win, however i can't get it to do anything.

I have tried TE_SetupSmoke() but the function only displayed smoke for a couple frames then went away very quickly

my code so far:

Code:
//smokeModel = PrecacheModel("materials/models/weapons/w_models/smoke_us/w_smoke_us.vmt")
//tpos == position on map to display smoke

SmokeEffect(tPos, smokeModel, 60.0, 60, 30.0)

public Action:SmokeEffect(Float:pos[3], Model, Float:Scale, FrameRate, Float:Life)
{
    TE_Start("Smoke");
    TE_WriteVector("m_vecOrigin", pos);
    TE_WriteNum("m_nModelIndex", Model);
    TE_WriteFloat("m_fScale", Scale);
    TE_WriteNum("m_nFrameRate", FrameRate); 
    TE_WriteFloat("m_fLife", Life)
    TE_SendToAll()
}
simoneaolson is offline
retsam
Veteran Member
Join Date: Aug 2008
Location: so-cal
Old 10-05-2009 , 19:39   Re: Generate Smoke Effect Lasting 30s?
Reply With Quote #2

Ya TE's you gotta repeat by using a repeating timer, or itll only be displayed once as far as I know.
retsam 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 23:34.


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