ItsMods

Full Version: Fx name for smoke grenade?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
What's the Fx name for the normal smoke grenade? I know for care package smoke it's level._effect["spotlight_fx"].
I think its this one Smile

Code:
level.smokefx = loadFX( "props/american_smoke_grenade_mp" );
(06-22-2013, 12:56)Yamato Wrote: [ -> ]I think its this one Smile

Code:
level.smokefx = loadFX( "props/american_smoke_grenade_mp" );

Thanks Smile
Code:
boom1(loc1)
{
wait 0.5;
loc12 = loc1 + (200,0,0);
playSoundAtPos(loc12, "smokegrenade_explode_default");
redSmoke = spawnFX( level._effect["spotlight_fx"], loc12 );
Angles = vectorToAngles( loc12 - loc1 );
redSmoke.angles = Angles;

    for(i = 0; i < 6; i++)
    {
    triggerFX(redSmoke);
    wait 3;
    }
}

This is what I was messing with. I was spawning redSmoke, but how do I change it to normal smoke? I tried making a new variable for the loadfx you listed, but it wouldn't spawn.
(06-22-2013, 22:17)akillj Wrote: [ -> ]
Code:
boom1(loc1)
{
wait 0.5;
loc12 = loc1 + (200,0,0);
playSoundAtPos(loc12, "smokegrenade_explode_default");
redSmoke = spawnFX( level._effect["spotlight_fx"], loc12 );
Angles = vectorToAngles( loc12 - loc1 );
redSmoke.angles = Angles;

    for(i = 0; i < 6; i++)
    {
    triggerFX(redSmoke);
    wait 3;
    }
}

This is what I was messing with. I was spawning redSmoke, but how do I change it to normal smoke? I tried making a new variable for the loadfx you listed, but it wouldn't spawn.

Code:
boom1(loc1)
{
level.smokefx = loadFX( "props/american_smoke_grenade_mp" );
wait 0.5;
loc12 = loc1 + (200,0,0);
playSoundAtPos(loc12, "smokegrenade_explode_default");
redSmoke = spawnFX( level.smokefx, loc12 );
Angles = vectorToAngles( loc12 - loc1 );
redSmoke.angles = Angles;

    for(i = 0; i < 6; i++)
    {
    triggerFX(redSmoke);
    wait 3;
    }
}

Try that.