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

[TF2] Creating a visual effect


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Spazman0
Member
Join Date: Jul 2008
Old 07-16-2008 , 10:50   [TF2] Creating a visual effect
Reply With Quote #1

As some of you know, I have recently made a Teleport plugin. To add a little bit of extra effect, I was wanting to either add, in order of preference: a) the explosion effect with gibs, (not sure if this is possible), b) the spy disguise smoke puff, c) the pyro's compression-blast effect.

Thinking about the limitations, I would think that b) and c) would be achievable, I'm just not sure how. But, if anyone wants to share a way that a) might be achieved, or they have info on how I could do b) and/or c), I'm all ears.

Thanks,

Spazman0
Spazman0 is offline
L. Duke
Veteran Member
Join Date: Apr 2005
Location: Walla Walla
Old 07-16-2008 , 11:03   Re: [TF2] Creating a visual effect
Reply With Quote #2

Try this code.

ShowParticle will place it in at the position you specify. AttachParticle will parent it to the player/entity specified.

For things like player_recent_teleport_blue/player_recent_teleport_red (the glowing trails used when players have just used an engie's teleporter), you'll probably want to parent them to a player.



Code:
public ShowParticle(Float:pos[3], String:particlename[], Float:time)
{
    new particle = CreateEntityByName("info_particle_system");
    if (IsValidEdict(particle))
    {
        TeleportEntity(particle, pos, NULL_VECTOR, NULL_VECTOR);
        DispatchKeyValue(particle, "effect_name", particlename);
        ActivateEntity(particle);
        AcceptEntityInput(particle, "start");
        CreateTimer(time, DeleteParticles, particle);
    }
    else
    {
        LogError("ShowParticle: could not create info_particle_system");
    }    
}

AttachParticle(ent, String:particleType[], Float:time)
{
    new particle = CreateEntityByName("info_particle_system");
    if (IsValidEdict(particle))
    {
        new Float:pos[3];
        GetEntPropVector(ent, Prop_Send, "m_vecOrigin", pos);
        TeleportEntity(particle, pos, NULL_VECTOR, NULL_VECTOR);
        GetEntPropString(ent, Prop_Data, "m_iName", tName, sizeof(tName));
        DispatchKeyValue(particle, "targetname", "tf2particle");
        DispatchKeyValue(particle, "parentname", tName);
        DispatchKeyValue(particle, "effect_name", particleType);
        DispatchSpawn(particle);
        SetVariantString(tName);
        AcceptEntityInput(particle, "SetParent", particle, particle, 0);
        ActivateEntity(particle);
        AcceptEntityInput(particle, "start");
        CreateTimer(time, DeleteParticles, particle);
    }
    else
    {
        LogError("AttachParticle: could not create info_particle_system");
    }
}

public Action:DeleteParticles(Handle:timer, any:particle)
{
    if (IsValidEntity(particle))
    {
        new String:classname[STRLENGTH];
        GetEdictClassname(particle, classname, sizeof(classname));
        if (StrEqual(classname, "info_particle_system", false))
        {
            RemoveEdict(particle);
        }
        else
        {
            LogError("DeleteParticles: not removing entity - not a particle '%s'", classname);
        }
    }
}
Some particle names:
Code:
L 07/07/2008 - 08:19:21: [ztf2nades.smx] critical_rocket_blue
L 07/07/2008 - 08:19:21: [ztf2nades.smx] critical_rocket_bluesparks
L 07/07/2008 - 08:19:21: [ztf2nades.smx] critical_rocket_red
L 07/07/2008 - 08:19:21: [ztf2nades.smx] critical_rocket_redsparks
L 07/07/2008 - 08:19:21: [ztf2nades.smx] rockettrail_underwater
L 07/07/2008 - 08:19:21: [ztf2nades.smx] rockettrail_waterbubbles
L 07/07/2008 - 08:19:21: [ztf2nades.smx] sentry_rocket
L 07/07/2008 - 08:19:21: [ztf2nades.smx] sentry_rocket_burst
L 07/07/2008 - 08:19:21: [ztf2nades.smx] sentry_rocket_fire
L 07/07/2008 - 08:19:21: [ztf2nades.smx] rockettrail
L 07/07/2008 - 08:19:21: [ztf2nades.smx] flaregun_trail_blue
L 07/07/2008 - 08:19:21: [ztf2nades.smx] flaregun_trail_red
L 07/07/2008 - 08:19:21: [ztf2nades.smx] flaregun_trail_crit_red
L 07/07/2008 - 08:19:21: [ztf2nades.smx] flaregun_crit_red
L 07/07/2008 - 08:19:21: [ztf2nades.smx] flaregun_trail_crit_blue
L 07/07/2008 - 08:19:21: [ztf2nades.smx] teleporter_red_exit
L 07/07/2008 - 08:19:21: [ztf2nades.smx] teleporter_arms_circle_red
L 07/07/2008 - 08:19:21: [ztf2nades.smx] teleporter_red_entrance
L 07/07/2008 - 08:19:21: [ztf2nades.smx] teleporter_blue_entrance
L 07/07/2008 - 08:19:21: [ztf2nades.smx] teleporter_blue_exit
L 07/07/2008 - 08:19:21: [ztf2nades.smx] teleporter_arms_circle_blue
L 07/07/2008 - 08:19:21: [ztf2nades.smx] teleporter_blue_charged
L 07/07/2008 - 08:19:21: [ztf2nades.smx] teleporter_blue_charged_wisps
L 07/07/2008 - 08:19:21: [ztf2nades.smx] teleporter_red_charged
L 07/07/2008 - 08:19:21: [ztf2nades.smx] teleporter_blue_entrance_level2
L 07/07/2008 - 08:19:21: [ztf2nades.smx] teleporter_blue_entrance_level3
L 07/07/2008 - 08:19:21: [ztf2nades.smx] teleporter_blue_charged_level2
L 07/07/2008 - 08:19:21: [ztf2nades.smx] teleporter_blue_wisps_level2
L 07/07/2008 - 08:19:21: [ztf2nades.smx] teleporter_blue_charged_level3
L 07/07/2008 - 08:19:21: [ztf2nades.smx] teleporter_blue_wisps_level3
L 07/07/2008 - 08:19:21: [ztf2nades.smx] teleporter_blue_exit_level2
L 07/07/2008 - 08:19:21: [ztf2nades.smx] teleporter_blue_exit_level3
L 07/07/2008 - 08:19:21: [ztf2nades.smx] teleporter_red_charged_level2
L 07/07/2008 - 08:19:21: [ztf2nades.smx] teleporter_red_wisps_level2
L 07/07/2008 - 08:19:21: [ztf2nades.smx] teleporter_red_charged_level3
L 07/07/2008 - 08:19:21: [ztf2nades.smx] teleporter_red_wisps_level3
L 07/07/2008 - 08:19:21: [ztf2nades.smx] teleporter_red_entrance_level2
L 07/07/2008 - 08:19:21: [ztf2nades.smx] teleporter_red_entrance_level3
L 07/07/2008 - 08:19:21: [ztf2nades.smx] ExplosionCore_buildings
L 07/07/2008 - 08:19:21: [ztf2nades.smx] ExplosionCore_MidAir
L 07/07/2008 - 08:19:21: [ztf2nades.smx] Explosions_MA_Debris001
L 07/07/2008 - 08:19:21: [ztf2nades.smx] bday_blood
L 07/07/2008 - 08:19:21: [ztf2nades.smx] bday_1balloon
L 07/07/2008 - 08:19:21: [ztf2nades.smx] bday_bloodconfetti
L 07/07/2008 - 08:19:21: [ztf2nades.smx] bday_bloodconfetti2
L 07/07/2008 - 08:19:21: [ztf2nades.smx] ExplosionCore_Wall
L 07/07/2008 - 08:19:21: [ztf2nades.smx] ExplosionCore_Wall_underwater
L 07/07/2008 - 08:19:21: [ztf2nades.smx] bday_confetti
L 07/07/2008 - 08:19:21: [ztf2nades.smx] bday_confetti_colors
L 07/07/2008 - 08:19:21: [ztf2nades.smx] bday_balloon01
L 07/07/2008 - 08:19:21: [ztf2nades.smx] bday_balloon02
L 07/07/2008 - 08:19:21: [ztf2nades.smx] Explosions_MA_Dustup_2
L 07/07/2008 - 08:19:21: [ztf2nades.smx] ExplosionCore_MidAir_underwater
L 07/07/2008 - 08:19:21: [ztf2nades.smx] Explosions_UW_Debris001
L 07/07/2008 - 08:19:21: [ztf2nades.smx] ExplosionCore_sapperdestroyed
L 07/07/2008 - 08:19:21: [ztf2nades.smx] sapper_coreflash
L 07/07/2008 - 08:19:21: [ztf2nades.smx] sapper_debris
L 07/07/2008 - 08:19:21: [ztf2nades.smx] sapper_flash
L 07/07/2008 - 08:19:21: [ztf2nades.smx] sapper_flashup
L 07/07/2008 - 08:19:21: [ztf2nades.smx] sapper_flyingembers
L 07/07/2008 - 08:19:21: [ztf2nades.smx] sapper_smoke
L 07/07/2008 - 08:19:21: [ztf2nades.smx] player_recent_teleport_red
L 07/07/2008 - 08:19:21: [ztf2nades.smx] player_glowred
L 07/07/2008 - 08:19:21: [ztf2nades.smx] player_dripsred
L 07/07/2008 - 08:19:21: [ztf2nades.smx] player_recent_teleport_blue
L 07/07/2008 - 08:19:21: [ztf2nades.smx] player_drips_blue
L 07/07/2008 - 08:19:21: [ztf2nades.smx] player_sparkles_red
L 07/07/2008 - 08:19:21: [ztf2nades.smx] player_sparkles_blue
L 07/07/2008 - 08:19:21: [ztf2nades.smx] doublejump_puff
L 07/07/2008 - 08:19:21: [ztf2nades.smx] doublejump_smoke
L 07/07/2008 - 08:19:21: [ztf2nades.smx] deflect_fx
L 07/07/2008 - 08:19:21: [ztf2nades.smx] deflect_temp
L 07/07/2008 - 08:19:21: [ztf2nades.smx] rocketbackblast
L 07/07/2008 - 08:19:21: [ztf2nades.smx] rocketbackblastsparks
L 07/07/2008 - 08:19:21: [ztf2nades.smx] flamethrower
L 07/07/2008 - 08:19:21: [ztf2nades.smx] flamethrower_crit_red
L 07/07/2008 - 08:19:21: [ztf2nades.smx] flamethrower_crit_pilot_red
L 07/07/2008 - 08:19:21: [ztf2nades.smx] flamethrower_crit_red_glow
L 07/07/2008 - 08:19:21: [ztf2nades.smx] flamethrower_crit_red_sparks
L 07/07/2008 - 08:19:21: [ztf2nades.smx] flamethrower_underwater
L 07/07/2008 - 08:19:21: [ztf2nades.smx] pyrotaunt
L 07/07/2008 - 08:19:21: [ztf2nades.smx] pyrotaunt_flame
L 07/07/2008 - 08:19:21: [ztf2nades.smx] pyrotaunt_powerup
L 07/07/2008 - 08:19:21: [ztf2nades.smx] flamethrower_blue
L 07/07/2008 - 08:19:21: [ztf2nades.smx] flamethrower_crit_blue
L 07/07/2008 - 08:19:21: [ztf2nades.smx] pyro_blast
L 07/07/2008 - 08:19:21: [ztf2nades.smx] pyro_blast_lines
L 07/07/2008 - 08:19:21: [ztf2nades.smx] pyro_blast_warp
L 07/07/2008 - 08:19:21: [ztf2nades.smx] pyro_blast_flash
L 07/07/2008 - 08:19:21: [ztf2nades.smx] flaregun_destroyed
L 07/07/2008 - 08:19:21: [ztf2nades.smx] flaregun_destroyed_bits
L 07/07/2008 - 08:19:21: [ztf2nades.smx] burningplayer_corpse
L 07/07/2008 - 08:19:21: [ztf2nades.smx] burningplayer_corpseglow
L 07/07/2008 - 08:19:21: [ztf2nades.smx] burningplayer_blue
L 07/07/2008 - 08:19:21: [ztf2nades.smx] burningplayer_blueglow
L 07/07/2008 - 08:19:21: [ztf2nades.smx] burningplayer_red
L 07/07/2008 - 08:19:21: [ztf2nades.smx] burninggibs
L 07/07/2008 - 08:19:21: [ztf2nades.smx] blood_impact_red_01
L 07/07/2008 - 08:19:21: [ztf2nades.smx] blood_impact_red_01_chunk
L 07/07/2008 - 08:19:21: [ztf2nades.smx] blood_impact_red_01_smalldroplets
L 07/07/2008 - 08:19:21: [ztf2nades.smx] blood_spray_red_01
L 07/07/2008 - 08:19:21: [ztf2nades.smx] water_blood_impact_red_01
L 07/07/2008 - 08:19:21: [ztf2nades.smx] water_blood_impact_red_01_chunk
L 07/07/2008 - 08:19:21: [ztf2nades.smx] water_blood_impact_red_01_goop
L 07/07/2008 - 08:19:21: [ztf2nades.smx] blood_spray_red_01_far
L 07/07/2008 - 08:19:21: [ztf2nades.smx] lowV_blood_impact_red_01
L 07/07/2008 - 08:19:21: [ztf2nades.smx] lowV_smallerchunks
L 07/07/2008 - 08:19:21: [ztf2nades.smx] lowV_debrischunks
L 07/07/2008 - 08:19:21: [ztf2nades.smx] lowV_oildroplets
L 07/07/2008 - 08:19:21: [ztf2nades.smx] lowV_blood_spray_red_01
L 07/07/2008 - 08:19:21: [ztf2nades.smx] temp_blood_spray_red_01_far
L 07/07/2008 - 08:19:21: [ztf2nades.smx] temp_blood_spray_red_01
L 07/07/2008 - 08:19:21: [ztf2nades.smx] lowV_blood_spray_red_01_far
L 07/07/2008 - 08:19:21: [ztf2nades.smx] lowV_water_blood_impact_red_01
L 07/07/2008 - 08:19:21: [ztf2nades.smx] lowV_water_debris
L 07/07/2008 - 08:19:21: [ztf2nades.smx] lowV_water_bubbles
L 07/07/2008 - 08:19:21: [ztf2nades.smx] blood_trail_red_01_goop
L 07/07/2008 - 08:19:21: [ztf2nades.smx] blood_trail_red_01_droplets
L 07/07/2008 - 08:19:21: [ztf2nades.smx] muzzle_shotgun
L 07/07/2008 - 08:19:21: [ztf2nades.smx] muzzle_shotgun_flash
L 07/07/2008 - 08:19:21: [ztf2nades.smx] muzzle_grenadelauncher
L 07/07/2008 - 08:19:21: [ztf2nades.smx] muzzle_minigun
L 07/07/2008 - 08:19:21: [ztf2nades.smx] muzzle_minigun_starflash01
L 07/07/2008 - 08:19:21: [ztf2nades.smx] muzzle_minigun_core
L 07/07/2008 - 08:19:21: [ztf2nades.smx] muzzle_minigun_sparks
L 07/07/2008 - 08:19:21: [ztf2nades.smx] muzzle_minigun_smoke
L 07/07/2008 - 08:19:21: [ztf2nades.smx] muzzle_pistol
L 07/07/2008 - 08:19:21: [ztf2nades.smx] muzzle_scattergun
L 07/07/2008 - 08:19:21: [ztf2nades.smx] muzzle_smg
L 07/07/2008 - 08:19:21: [ztf2nades.smx] muzzle_smg_sparks
L 07/07/2008 - 08:19:21: [ztf2nades.smx] muzzle_revolver
L 07/07/2008 - 08:19:21: [ztf2nades.smx] muzzle_sniperrifle
L 07/07/2008 - 08:19:21: [ztf2nades.smx] muzzle_syringe
L 07/07/2008 - 08:19:21: [ztf2nades.smx] muzzle_sentry
L 07/07/2008 - 08:19:21: [ztf2nades.smx] muzzle_sentry2
L 07/07/2008 - 08:19:21: [ztf2nades.smx] muzzle_pipelauncher
L 07/07/2008 - 08:19:21: [ztf2nades.smx] muzzle_minigun_constant
L 07/07/2008 - 08:19:21: [ztf2nades.smx] muzzle_minigun_constant_core
L 07/07/2008 - 08:19:21: [ztf2nades.smx] muzzle_minigun_constant_flare
L 07/07/2008 - 08:19:21: [ztf2nades.smx] muzzle_minigun_constant_sparks
L 07/07/2008 - 08:19:21: [ztf2nades.smx] muzzle_minigun_constant_starflash
L 07/07/2008 - 08:19:21: [ztf2nades.smx] muzzle_minigun_constant_smoke
L 07/07/2008 - 08:19:21: [ztf2nades.smx] teleported_red
L 07/07/2008 - 08:19:21: [ztf2nades.smx] teleported_blue
L 07/07/2008 - 08:19:21: [ztf2nades.smx] teleportedin_red
L 07/07/2008 - 08:19:21: [ztf2nades.smx] teleportedin_blue
L 07/07/2008 - 08:19:21: [ztf2nades.smx] cig_smoke
L 07/07/2008 - 08:19:21: [ztf2nades.smx] cig_burn
L 07/07/2008 - 08:19:21: [ztf2nades.smx] crit_text
L 07/07/2008 - 08:19:21: [ztf2nades.smx] achieved
L 07/07/2008 - 08:19:21: [ztf2nades.smx] mini_fireworks
L 07/07/2008 - 08:19:21: [ztf2nades.smx] mini_firework_flare
L 07/07/2008 - 08:19:21: [ztf2nades.smx] dispenser_heal_red
L 07/07/2008 - 08:19:21: [ztf2nades.smx] dispenser_beam_red_pluses
L 07/07/2008 - 08:19:21: [ztf2nades.smx] dispenser_beam_red_trail
L 07/07/2008 - 08:19:21: [ztf2nades.smx] medicgun_beam_red_invun
L 07/07/2008 - 08:19:21: [ztf2nades.smx] medicgun_beam_red_invulnbright
L 07/07/2008 - 08:19:21: [ztf2nades.smx] medicgun_beam_red_invunglow
L 07/07/2008 - 08:19:21: [ztf2nades.smx] dispenser_heal_blue
L 07/07/2008 - 08:19:21: [ztf2nades.smx] dispenser_beam_blue_trail
L 07/07/2008 - 08:19:21: [ztf2nades.smx] medicgun_beam_blue_invun
L 07/07/2008 - 08:19:21: [ztf2nades.smx] medicgun_beam_blue_invunglow
L 07/07/2008 - 08:19:21: [ztf2nades.smx] medicgun_beam_blue_invulnbright
L 07/07/2008 - 08:19:21: [ztf2nades.smx] medicgun_invulnstatus_fullcharge_red
L 07/07/2008 - 08:19:21: [ztf2nades.smx] medicgun_invulnstatus_fullcharge_blue
L 07/07/2008 - 08:19:21: [ztf2nades.smx] medicgun_beam_blue
L 07/07/2008 - 08:19:21: [ztf2nades.smx] medicgun_beam_red
L 07/07/2008 - 08:19:21: [ztf2nades.smx] water_splash01
L 07/07/2008 - 08:19:21: [ztf2nades.smx] water_splash01_droplets
L 07/07/2008 - 08:19:21: [ztf2nades.smx] water_bulletsplash01
L 07/07/2008 - 08:19:21: [ztf2nades.smx] water_bulletsplash01_minigun
L 07/07/2008 - 08:19:21: [ztf2nades.smx] water_playerwake_static
L 07/07/2008 - 08:19:21: [ztf2nades.smx] water_playerwake_moving
L 07/07/2008 - 08:19:21: [ztf2nades.smx] water_playerdive
L 07/07/2008 - 08:19:21: [ztf2nades.smx] water_playerdive_bubbles
L 07/07/2008 - 08:19:21: [ztf2nades.smx] water_playeremerge
L 07/07/2008 - 08:19:21: [ztf2nades.smx] water_bulletsplash01_cheap
L 07/07/2008 - 08:19:21: [ztf2nades.smx] stickybombtrail_red
L 07/07/2008 - 08:19:21: [ztf2nades.smx] stickybombtrail_blue
L 07/07/2008 - 08:19:21: [ztf2nades.smx] critical_grenade_blue
L 07/07/2008 - 08:19:21: [ztf2nades.smx] critical_grenade_red
L 07/07/2008 - 08:19:21: [ztf2nades.smx] stickybomb_pulse_blue
L 07/07/2008 - 08:19:21: [ztf2nades.smx] stickybomb_pulse_red
L 07/07/2008 - 08:19:21: [ztf2nades.smx] pipebombtrail_red
L 07/07/2008 - 08:19:21: [ztf2nades.smx] pipebombtrail_blue
L 07/07/2008 - 08:19:21: [ztf2nades.smx] critical_pipe_red
L 07/07/2008 - 08:19:21: [ztf2nades.smx] critical_pipe_blue
L 07/07/2008 - 08:19:21: [ztf2nades.smx] buildingdamage_smoke2
L 07/07/2008 - 08:19:21: [ztf2nades.smx] sentrydamage_4
L 07/07/2008 - 08:19:21: [ztf2nades.smx] sentrydamage_3
L 07/07/2008 - 08:19:21: [ztf2nades.smx] sentrydamage_1
L 07/07/2008 - 08:19:21: [ztf2nades.smx] sentrydamage_2
L 07/07/2008 - 08:19:21: [ztf2nades.smx] tpdamage_1
L 07/07/2008 - 08:19:21: [ztf2nades.smx] tpdamage_2
L 07/07/2008 - 08:19:21: [ztf2nades.smx] tpdamage_3
L 07/07/2008 - 08:19:21: [ztf2nades.smx] tpdamage_smoke1
L 07/07/2008 - 08:19:21: [ztf2nades.smx] tpdamage_4
L 07/07/2008 - 08:19:21: [ztf2nades.smx] dispenserdamage_4
L 07/07/2008 - 08:19:21: [ztf2nades.smx] dispensersmoke_2
L 07/07/2008 - 08:19:21: [ztf2nades.smx] buildingdamage_dispenser_fire1
L 07/07/2008 - 08:19:21: [ztf2nades.smx] dispenserdamage_1
L 07/07/2008 - 08:19:21: [ztf2nades.smx] dispenserdamage_3
L 07/07/2008 - 08:19:21: [ztf2nades.smx] buildingdamage_dispenser_fire0
L 07/07/2008 - 08:19:21: [ztf2nades.smx] dispenserdamage_2
L 07/07/2008 - 08:19:21: [ztf2nades.smx] buildingdamage_fire1
L 07/07/2008 - 08:19:21: [ztf2nades.smx] nailtrails_medic_red
L 07/07/2008 - 08:19:21: [ztf2nades.smx] nailtrails_medic_blue
L 07/07/2008 - 08:19:21: [ztf2nades.smx] nailtrails_medic_blue_crit
L 07/07/2008 - 08:19:21: [ztf2nades.smx] nailtrails_medic_red_crit
L 07/07/2008 - 08:19:21: [ztf2nades.smx] speech_typing
L 07/07/2008 - 08:19:21: [ztf2nades.smx] speech_mediccall
L 07/07/2008 - 08:19:21: [ztf2nades.smx] speech_mediccall_attention
L 07/07/2008 - 08:19:21: [ztf2nades.smx] speech_voice
L 07/07/2008 - 08:19:21: [ztf2nades.smx] bullet_tracer01_crit
L 07/07/2008 - 08:19:21: [ztf2nades.smx] bullet_tracer01_blue
L 07/07/2008 - 08:19:21: [ztf2nades.smx] bullet_tracer01_red
L 07/07/2008 - 08:19:21: [ztf2nades.smx] bullet_tracer01_blue_crit
L 07/07/2008 - 08:19:21: [ztf2nades.smx] bullet_impact1_blue_crit
L 07/07/2008 - 08:19:21: [ztf2nades.smx] bullet_tracer01_red_crit
L 07/07/2008 - 08:19:21: [ztf2nades.smx] bullet_impact1_red_crit
L 07/07/2008 - 08:19:21: [ztf2nades.smx] bullet_scattergun_tracer01_blue_crit
L 07/07/2008 - 08:19:21: [ztf2nades.smx] bullet_scattergun_tracer01_red_crit
L 07/07/2008 - 08:19:21: [ztf2nades.smx] bullet_pistol_tracer01_blue_crit
L 07/07/2008 - 08:19:21: [ztf2nades.smx] bullet_pistol_tracer01_red_crit
L 07/07/2008 - 08:19:21: [ztf2nades.smx] bullet_shotgun_tracer01_blue_crit
L 07/07/2008 - 08:19:21: [ztf2nades.smx] bullet_shotgun_tracer01_red_crit
L 07/07/2008 - 08:19:21: [ztf2nades.smx] particle_nemesis_blue
L 07/07/2008 - 08:19:21: [ztf2nades.smx] particle_nemesis_burst_blue
L 07/07/2008 - 08:19:21: [ztf2nades.smx] particle_nemesis_red
L 07/07/2008 - 08:19:21: [ztf2nades.smx] particle_nemesis_burst_red
L 07/07/2008 - 08:19:21: [ztf2nades.smx] spy_start_disguise_red
L 07/07/2008 - 08:19:21: [ztf2nades.smx] disguise_flash_red
L 07/07/2008 - 08:19:21: [ztf2nades.smx] spy_start_disguise_blue
L 07/07/2008 - 08:19:21: [ztf2nades.smx] disguise_flash_blue
L 07/07/2008 - 08:19:21: [ztf2nades.smx] spark_electric01
L 07/07/2008 - 08:19:21: [ztf2nades.smx] sapper_sentry1_fx
L 07/07/2008 - 08:19:21: [ztf2nades.smx] sapper_sentry1_sparks1
L 07/07/2008 - 08:19:21: [ztf2nades.smx] sapper_sentry1_sparks2
L 07/07/2008 - 08:19:21: [ztf2nades.smx] candle_light1
L 07/07/2008 - 08:19:21: [ztf2nades.smx] player_intel_papertrail
L 07/07/2008 - 08:19:21: [ztf2nades.smx] player_intel_trail_red
L 07/07/2008 - 08:19:21: [ztf2nades.smx] player_intel_trail_blue
L 07/07/2008 - 08:19:21: [ztf2nades.smx] cart_flashinglight
L 07/07/2008 - 08:19:21: [ztf2nades.smx] eject_minigunbrass
L 07/07/2008 - 08:19:21: [ztf2nades.smx] medicgun_beam_attrib_drips
L 07/07/2008 - 08:19:21: [ztf2nades.smx] medicgun_beam_attrib_shards
L 07/07/2008 - 08:19:21: [ztf2nades.smx] medicgun_beam_attrib_overheal
L 07/07/2008 - 08:19:21: [ztf2nades.smx] medicgun_beam_attrib_healing
L 07/07/2008 - 08:19:21: [ztf2nades.smx] medicgun_beam_attrib_muzzle
L 07/07/2008 - 08:19:21: [ztf2nades.smx] overhealedplayer_red_pluses
L 07/07/2008 - 08:19:21: [ztf2nades.smx] overhealedplayer_blue_pluses
L 07/07/2008 - 08:19:21: [ztf2nades.smx] medicgun_beam_attrib_overheal_blue
L 07/07/2008 - 08:19:21: [ztf2nades.smx] medicgun_beam_attrib_overheal_red
L 07/07/2008 - 08:19:21: [ztf2nades.smx] bonersaw_temp
L 07/07/2008 - 08:19:21: [ztf2nades.smx] critgun_weaponmodel_blu
L 07/07/2008 - 08:19:21: [ztf2nades.smx] critgun_weaponmodel_red
L 07/07/2008 - 08:19:21: [ztf2nades.smx] healthgained_blu
L 07/07/2008 - 08:19:21: [ztf2nades.smx] healthgained_red
L 07/07/2008 - 08:19:21: [ztf2nades.smx] cinefx_goldrush_burningbarrel
L 07/07/2008 - 08:19:21: [ztf2nades.smx] cinefx_goldrush
L 07/07/2008 - 08:19:21: [ztf2nades.smx] cinefx_goldrush_flash
L 07/07/2008 - 08:19:21: [ztf2nades.smx] cinefx_goldrush_burningdebris
L 07/07/2008 - 08:19:21: [ztf2nades.smx] cinefx_goldrush_pitglow
L 07/07/2008 - 08:19:21: [ztf2nades.smx] impact_concrete_noflecks
L 07/07/2008 - 08:19:21: [ztf2nades.smx] ricochet_sparks
L 07/07/2008 - 08:19:21: [ztf2nades.smx] impact_generic_burst_2
L 07/07/2008 - 08:19:21: [ztf2nades.smx] impact_antlion
L 07/07/2008 - 08:19:21: [ztf2nades.smx] impact_metal_child_smoke
L 07/07/2008 - 08:19:21: [ztf2nades.smx] impact_metal
L 07/07/2008 - 08:19:21: [ztf2nades.smx] impact_metal_child_glowLarge
L 07/07/2008 - 08:19:21: [ztf2nades.smx] impact_generic_smoke
L 07/07/2008 - 08:19:21: [ztf2nades.smx] impact_metal_child_base
L 07/07/2008 - 08:19:21: [ztf2nades.smx] impact_generic_burn
L 07/07/2008 - 08:19:21: [ztf2nades.smx] impact_computer
L 07/07/2008 - 08:19:21: [ztf2nades.smx] impact_glass
L 07/07/2008 - 08:19:21: [ztf2nades.smx] impact_glass_child_burst
L 07/07/2008 - 08:19:21: [ztf2nades.smx] impact_glass_child_smoke
L 07/07/2008 - 08:19:21: [ztf2nades.smx] impact_glass_child_backblast
L 07/07/2008 - 08:19:21: [ztf2nades.smx] impact_concrete
L 07/07/2008 - 08:19:21: [ztf2nades.smx] impact_dirt
L 07/07/2008 - 08:19:21: [ztf2nades.smx] impact_woodbroken
L 07/07/2008 - 08:19:21: [ztf2nades.smx] impact_dirt_nosmoke
L 07/07/2008 - 08:19:21: [ztf2nades.smx] impact_wood
L 07/07/2008 - 08:19:21: [ztf2nades.smx] impact_wood_child_puff
L 07/07/2008 - 08:19:21: [ztf2nades.smx] bullet_pistol_tracer01_red
L 07/07/2008 - 08:19:21: [ztf2nades.smx] bullet_pistol_tracer01_blue
L 07/07/2008 - 08:19:21: [ztf2nades.smx] bullet_scattergun_tracer01_red
L 07/07/2008 - 08:19:21: [ztf2nades.smx] bullet_scattergun_tracer01_blue
L 07/07/2008 - 08:19:21: [ztf2nades.smx] bullet_shotgun_tracer01_red
L 07/07/2008 - 08:19:21: [ztf2nades.smx] bullet_shotgun_tracer01_blue
__________________
"Good grammar is essential, Robin."
- Batman

Last edited by L. Duke; 07-16-2008 at 11:12.
L. Duke is offline
Spazman0
Member
Join Date: Jul 2008
Old 07-16-2008 , 11:13   Re: [TF2] Creating a visual effect
Reply With Quote #3

Ok, so I replace effect_name with a particle name? And when I want to call it, what do I need to call,
ShowParticle(*value for pos*, *value for particlename*, *value for lifetime*)?

I'm kinda new to SourcePawn so forgive my noobiness

EDIT: Also, what is the timer measured in? Seconds? Ticks?

EDIT: It is working now. Thanks LDuke!

Last edited by Spazman0; 07-16-2008 at 20:44.
Spazman0 is offline
Reply


Thread Tools
Display Modes

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 04:55.


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