AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Snippets and Tutorials (https://forums.alliedmods.net/forumdisplay.php?f=112)
-   -   TF2 Particles via TempEnts (https://forums.alliedmods.net/showthread.php?t=75102)

DiscoBBQ 08-06-2008 22:44

Re: TF2 Particles via TempEnts
 
L.Duke, if you ever need someone to birth your kids, im your man.

This works perfectly for me, I'm able to do a TF2 GoreMod now, yahoo!

http://img.photobucket.com/albums/v3.../headshot2.jpg

KickBack 08-14-2008 19:15

Re: TF2 Particles via TempEnts
 
Thanks a lot ! This is of great use !

There is just one slight bug with timers (ShowParticle) : when a round ends (waiting for players, team win, etc), one should take care to reset timers because on round reset/restart, particle systems are automatically destroyed by the server and when the timer tries to destroy them, it shows a warning saying it couldn't destroy an entity which has nothing to do with our particle. While this is not critical, I advise anyone using this snippet to hook whenever a round restart/resets (I'm using both words because I can't remember the actual event) and delete the active timers if that happens.

Other than that, this is great stuff !!
Thanks

r5053 08-23-2008 09:49

Re: TF2 Particles via TempEnts
 
can someone post a full axample plugin ?

chundo 08-26-2008 20:01

Re: TF2 Particles via TempEnts
 
Damn, thanks! I've been trying to figure out how to display the achievement trophy on and off for months now.

Greyscale 08-26-2008 20:48

Re: TF2 Particles via TempEnts
 
Quote:

Originally Posted by Pinkfairie (Post 665730)
L.Duke, if you ever need someone to birth your kids, im your man.

This works perfectly for me, I'm able to do a TF2 GoreMod now, yahoo!

<bloody pyro>

LOL that's pretty insane.

chundo 08-27-2008 14:42

Re: TF2 Particles via TempEnts
 
When I spawn the "nemesis" particle, DeleteParticles() only removes the animated border and detaches the particle from the player - the star-with-fists icon stays hanging in the air forever. Any idea how to remove that?

chundo 08-27-2008 14:58

Re: TF2 Particles via TempEnts
 
Also, is there any way to attach a particle to a player, but hide it from the player's view? For example, I can attach a "nemesis" icon using the particle system, but it obscures the player's view if they look up. Likewise, I could use a tempent and specify which players to send it too, but then it isn't attached to the player and can't be destroyed.

Can you clarify what the "entindex", "m_iAttachType" and "m_iAttachmentPointIndex" properties of a tempent do? I couldn't find any documentation for them online.

L. Duke 08-27-2008 15:47

Re: TF2 Particles via TempEnts
 
Some icons like the nemesis icon do seem to remain. I don't know why.

I believe the tempents version "entindex" is the entity to attach to (player, prop_physics, etc.). I don't know about the attachement type, but I assume the attachment point index is the index of the attachment point on the entity. TF2 players have several including the party hat and eye attachments.

CrimsonGT 10-08-2008 09:03

Re: TF2 Particles via TempEnts
 
2 Attachment(s)
If you want a quick way to view the entities in game, heres a quick plugin I wrote. Just type "particle <particlename>" in console and it will parent it to the player for 5 seconds so you can check it out. I did this and made a list of all of the ones I want to use :P

DiscoBBQ 12-02-2008 16:11

Re: TF2 Particles via TempEnts
 
L4D Particles:

Code:

1: weapon_tracers
2: weapon_pipebomb
3: weapon_pipebomb_dirt
4: weapon_pipebomb_water
5: weapon_pipebomb_water_splash
6: weapon_pipebomb_fuse
7: weapon_pipebomb_blinking_light
8: burning_character
9: weapon_molotov_thrown
10: weapon_molotov_held
11: witch_eye_glow
12: hunter_claw
13: infected_vomit
14: blood_atomized
15: bandage_01
16: tank_rock_throw_ground_generic
17: hunter_stab
18: hunter_leap_dust
19: achieved
20: water_trail_directional
21: water_trail_directional_walk
22: water_trail_idle
23: burning_character_screen
24: speech_voice
25: water_splash
26: cigarette_smoke
27: smoker_spore_trail
28: smoker_smokecloud
29: smoker_smokecloud_camera
30: boomer_vomit_screeneffect
31: smoker_screen_effect
32: glow_survivor_use_target
33: glow_survivor_ability_target
34: glow_survivor_through_wall
35: glow_pz_health_high
36: glow_pz_health_medium
37: glow_pz_health_low
38: glow_boomer_it_victim
39: glow_tank_ability_target
40: molotov_groundfire
41: molotov_explosion
42: weapon_molotov_fp
43: weapon_molotov_fp_wick
44: weapon_pipebomb_fuse_fp
45: impact_physics_dust
46: impact_physics_sparks
47: blood_impact_red_01_droplets
48: blood_impact_yellow_01
49: blood_impact_red_01_smalldroplets
50: blood_impact_smoker_01
51: blood_impact_smoker_01_smoke
52: blood_impact_smoker_01_droplets
53: blood_impact_red_01
54: blood_impact_tank_01
55: blood_impact_headshot_01
56: blood_impact_headshot_01b
57: blood_impact_headshot_01e
58: blood_impact_headshot_01c
59: blood_impact_headshot_01d
60: blood_impact_headshot_01g
61: blood_impact_survivor_01
62: blood_impact_hunter_01
63: blood_impact_infected_01_shotgun
64: blood_impact_red_01_chunk_shotgun
65: blood_impact_red_01_backspray_shotgun_2
66: blood_impact_boomer_01
67: blood_impact_witch_01
68: blood_impact_arterial_spray_old
69: blood_impact_arterial_spray
70: blood_impact_arterial_spray_3
71: blood_impact_arterial_spray_2
72: blood_impact_tank_02
73: blood_impact_headshot_01f
74: blood_impact_infected_01
75: blood_impact_red_01_backspray_2
76: blood_impact_red_01_smalldroplets_shotgun
77: blood_incapacitated
78: blood_bleedout_2
79: blood_bleedout_trails_a
80: blood_bleedout_trails_b
81: blood_bleedout_trails_c
82: blood_bleedout_trails_d
83: blood_bleedout_trails_e
84: blood_bleedout_trails_f
85: blood_bleedout_trails_g
86: blood_bleedout_trails_h
87: blood_bleedout
88: blood_bleedout_3
89: blood_impact_arterial_spray_4
90: hunter_claw_child_fleshybits
91: blood_impact_arterial_spray_3_child
92: blood_impact_infected_01_cheap
93: blood_impact_infected_01_shotgun_cheap
94: blood_impact_red_01_cheap
95: blood_impact_smoker_01_cheap
96: blood_impact_tank_01_cheap
97: blood_impact_arterial_spray_cheap
98: blood_atomized_b
99: blood_atomized_b_sub
100: blood_atomized_d
101: blood_atomized_c
102: blood_atomized_fallback
103: blood_atomized_fallback_2
104: blood_atomized_fallback_3
105: boomer_vomit
106: boomer_vomit_e
107: boomer_vomit_c
108: boomer_vomit_d
109: boomer_vomit_b
110: boomer_explode
111: boomer_explode_I
112: boomer_explode_Jtemp1
113: boomer_explode_D_extra
114: boomer_explode_A_alt
115: boomer_explode_B_extra
116: boomer_explode_B
117: boomer_explode_F
118: boomer_explode_J
119: boomer_explode_Jtemp2
120: boomer_explode_Jtemp3
121: boomer_explode_Jtemp4
122: boomer_explode_A
123: boomer_leg_smoke
124: boomer_vomit_survivor
125: boomer_vomit_survivor_b
126: boomer_chunk_smoke
127: boomer_explode_D_glow
128: boomer_explode_arterial_spray
129: boomer_explode_M
130: boomer_explode_cheap
131: boomer_vomit_screeneffect_b
132: fire_burning_infected
133: fire_burning_survivor
134: fire_burning_tank
135: footstep_wet
136: footstep_mud
137: footstep_grass
138: footstep_dirt
139: footstep_puddle
140: footstep_puddle_b
141: hunter_leap
142: hunter_pounce
143: hunter_pounce_dust
144: hunter_slash
145: impact_cardboard
146: impact_asphalt
147: impact_generic_burn
148: impact_clay
149: impact_grass
150: impact_water
151: impact_water_child_bits
152: impact_water_child_splash
153: impact_concrete
154: impact_ricochet
155: impact_ricochet_sparks
156: impact_metal
157: impact_metal_child_glow2
158: impact_sheetrock
159: impact_electronic
160: impact_rubber
161: impact_rubber_child_base
162: impact_wood
163: impact_wood_child_smoke
164: impact_wood_child_burn
165: impact_wood_child_burst
166: impact_glass
167: impact_leaves
168: impact_leaves_child_smoke
169: impact_brick
170: impact_brick_child_smoke
171: impact_tile
172: impact_tile_child_smoke
173: impact_plastic
174: impact_rock
175: impact_dirt
176: impact_dirt_child_bounce
177: impact_plaster
178: impact_plaster_child_smoketrails
179: impact_upholstery
180: impact_upholstery_child_burn
181: impact_upholstery_child_burst
182: impact_carpet
183: impact_carpet_child_burn
184: impact_carpet_child_smoke
185: impact_grass_child_base
186: impact_generic_smoke
187: impact_steam
188: impact_steam_child_mist
189: impact_steam_child_cloud
190: impact_steam_short
191: impact_steam_child_mist_short
192: impact_steam_child_cloud_short
193: impact_steam_child_mist_small
194: impact_steam_small
195: impact_steam_child_cloud_small
196: impact_water_child_refract
197: impact_asphalt_cheap
198: impact_brick_cheap
199: impact_cardboard_cheap
200: impact_carpet_cheap
201: impact_clay_cheap
202: impact_concrete_cheap
203: impact_dirt_cheap
204: impact_electronic_cheap
205: impact_glass_cheap
206: impact_grass_cheap
207: impact_leaves_cheap
208: impact_metal_cheap
209: impact_plaster_cheap
210: impact_plastic_cheap
211: impact_rock_cheap
212: impact_rubber_cheap
213: impact_sheetrock_cheap
214: impact_tile_cheap
215: impact_upholstery_cheap
216: impact_water_cheap
217: impact_wood_cheap
218: impact_wood_child_chunks
219: impact_plaster_notrails
220: impact_plaster_cheap_2
221: impact_sheetrock_cheap_2
222: impact_plaster_notrails_cheap
223: impact_plaster_child_smoke3
224: impact_sand
225: impact_sand_cheap
226: impact_mud
227: impact_mud_cheap
228: impact_asphalt_child_smoke
229: impact_computer
230: impact_computer_cheap
231: impact_paper
232: impact_paper_cheap
233: impact_cloth
234: impact_cloth_cheap
235: impact_wet
236: impact_wet_cheap
237: impact_puddle
238: impact_puddle_cheap
239: infected_slobber
240: infected_drool
241: infected_drool_drip
242: infected_sweat
243: infected_punch
244: infected_kick
245: infected_froth
246: infected_froth_b
247: infected_froth_c
248: infected_froth_d
249: infected_vomit_stream
250: infected_door_slash_wood
251: infected_door_hit_wood
252: infected_door_hit_metal
253: infected_door_hit_metal_b
254: infected_door_slash_metal
255: screen_zombie_vision
256: screen_stunned
257: screen_tunnel_vision
258: screen_vomited
259: screen_rain_impact
260: screen_hurt
261: screen_hurt_b
262: screen_blood_splatter
263: screen_blood_splatter_a
264: screen_bashed
265: screen_bashed_b
266: screen_bashed_d
267: screen_bashed_c
268: burning_character_screen_b
269: burning_character_screen_c
270: burning_character_screen_d
271: smoker_tongue
272: smoker_tongue_joint
273: smoker_tongue_drips
274: smoker_smoke
275: smoker_tongue_fall
276: smoker_smokecloud_camera_horiz
277: smoker_screen_effect_b
278: tongue_wrap
279: smoker_spore_attack
280: smoker_spore_trail_attack
281: smoker_spore_attack_genericsmoke
282: smoker_spore_trail_cheap
283: smoker_smokecloud_camera_cheap
284: smoker_smokecloud_cheap
285: cigarette_smoke_ash
286: cigarette_smoke_ash_glow
287: cigarette_smoke_cherry
288: cigarette_smoke_b
289: cigarette_smoke_cherry Version #2
290: cigarette_smoke_ash Version #2
291: cigarette_smoke_ash_glow Version #2
292: flashlight_thirdperson_bak
293: flashlight_firstperson_
294: flashlight_thirdperson_glow3
295: flashlight_thirdperson_beamlet
296: flashlight_firstperson
297: flashlight_thirdperson_mod
298: flashlight_thirdperson
299: tank_rock_throw_ground_generic_cracks_2
300: tank_rock_throw_ground_generic_cracks
301: tank_rock_throw_impact
302: tank_survivor_pound
303: tank_object_throw
304: tank_rock_throw_rock
305: tank_rock_throw_rock_smalldebris
306: tank_rock_throw_stump
307: tank_rock_throw_stump_smalldebris
308: tank_rock_throw_impact_stump
309: tank_rock_throw_impact_chunks_stump
310: tank_breath
311: tank_breath_cloud
312: tank_footstep_generic
313: tank_wall_scrape_generic
314: tank_wall_scrape_generic_debris
315: water_trail_idle_child
316: water_splash_child_base
317: water_splash_child_rings_small
318: water_object_wake
319: water_object_wake_big
320: weapon_muzzle_smoke
321: weapon_shove
322: weapon_muzzle_flash_autoshotgun_main
323: weapon_explosion_grenade
324: weapon_muzzle_flash_assaultrifle_vent_fire
325: weapon_muzzle_flash_autoshotgun_fallback
326: weapon_muzzle_flash_sparks3
327: weapon_muzzle_flash_huntingrifle_vent1
328: weapon_muzzle_flash_huntingrifle_main_fallback
329: weapon_muzzle_flash_smg_backup
330: weapon_muzzle_flash_huntingrifle
331: weapon_muzzle_flash_autoshotgun
332: weapon_muzzle_flash_assaultrifle
333: weapon_muzzle_flash_pistol
334: weapon_muzzle_flash_shotgun
335: weapon_muzzle_smoke_long
336: weapon_muzzle_smoke_b
337: weapon_muzzle_smoke_b Version #2
338: weapon_muzzle_flash_assaultrifle_main_sub1
339: weapon_muzzle_flash_assaultrifle_main_sub3
340: weapon_muzzle_flash_assaultrifle_main_sub2
341: weapon_muzzle_flash_autoshotgun_main2
342: weapon_muzzle_flash_smg_glow3
343: weapon_muzzle_flash_assaultrifle_FP
344: weapon_muzzle_flash_assaultrifle_vent_FP
345: weapon_molotov_fp_fire
346: weapon_molotov_fp_fire2
347: weapon_molotov_fp_fire3
348: weapon_molotov_fp_fire3c
349: weapon_molotov_fp_fire3b
350: weapon_muzzle_flash_minigun_tracers
351: weapon_muzzle_flash_minigun
352: weapon_muzzle_flash_minigun_smoke
353: weapon_muzzle_flash_minigund
354: weapon_muzzle_flash_minigun_glow
355: minigun_overheat_smoke
356: weapon_pipebomb_shrapnel_fire_child
357: weapon_pipebomb_shrapnel_smoke_child
358: weapon_pipebomb_generic_smokestreak_parent
359: weapon_pipebomb_generic_smokestreak_child
360: weapon_pipebomb_child_sparks2
361: weapon_pipebomb_child_firesmoke
362: weapon_pipebomb_child_explosion
363: weapon_pipebomb_child_sparks
364: weapon_pipebomb_child_flash_mod
365: weapon_pipebomb_child_flash_screen
366: weapon_pipebomb_child_fire
367: weapon_pipebomb_child_smokering
368: weapon_pipebomb_water_child_rings
369: weapon_pipebomb_water_child_water
370: weapon_pipebomb_water_child_water2
371: weapon_pipebomb_water_child_water3
372: weapon_pipebomb_water_child_water4
373: weapon_pipebomb_child_smokering2
374: weapon_pipebomb_child_dirt
375: weapon_pipebomb_water_child_fire
376: weapon_pipebomb_water_child_flash
377: weapon_pipebomb_water_child_shrapnel
378: weapon_pipebomb_water_child_smoke
379: weapon_pipebomb_fuse_glow_3
380: weapon_pipebomb_dirt_child_05
381: weapon_pipebomb_dirt_child_02
382: weapon_pipebomb_dirt_child_03
383: weapon_pipebomb_dirt_child_01
384: weapon_pipebomb_dirt_child_04
385: weapon_pipebomb_water_child_ripples
386: weapon_muzzle_flash_smg_FP
387: weapon_molotov_fp_glow
388: weapon_pipebomb_fuse_glow_3_fp
389: weapon_muzzleflash_illumination_add
390: weapon_muzzle_flash_autoshotgun_FP
391: weapon_muzzle_flash_huntingrifle_FP
392: weapon_muzzle_flash_pistol_FP
393: weapon_muzzle_flash_shotgun_FP
394: weapon_muzzle_flash_shotgun_glow2
395: weapon_muzzle_flash_assaultrifle_vent_FP_cheap
396: weapon_muzzle_flash_autoshotgun_FP_cheap
397: weapon_muzzle_flash_huntingrifle_FP_cheap
398: weapon_muzzle_flash_pistol_FP_cheap
399: weapon_muzzle_flash_shotgun_FP_cheap
400: weapon_muzzle_flash_smg_FP_cheap
401: weapon_laser_sight
402: weapon_laser_sight_dot
403: weapon_laser_sight_FP
404: weapon_laser_sight_dot_FP
405: weapon_pipebomb_blinking_light_b
406: weapon_pipebomb_blinking_light_c
407: weapon_muzzle_flash_smg
408: weapon_muzzle_flash_smg_parent
409: weapon_shell_casing_shotgun
410: weapon_shell_casing_9mm
411: weapon_shell_casing_rifle
412: weapon_shell_casing_minigun
413: weapon_shell_casing_9mm_fp
414: weapon_muzzle_flash_smg_fallback
415: weapon_muzzle_flash_pistol_fallback
416: weapon_muzzle_flash_pistol_fallback2
417: weapon_muzzle_flash_assaultrifle_fallback
418: weapon_shell_casing_9mm_fallback
419: weapon_shell_casing_rifle_fallback
420: weapon_shell_casing_shotgun_fallback
421: weapon_shell_casing_minigun_fallback
422: weapon_shell_casing_9mm_fp_fallback
423: glow_survivor_through_wall_c
424: glow_survivor_use_target_c
425: glow_survivor_use_target_d
426: glow_survivor_through_wall_b
427: glow_survivor_pouncing_hunter
428: glow_survivor_hanging_from_tongue
429: glow_survivor_pounced_b
430: glow_survivor_hanging_from_ledge
431: glow_survivor_incapacitated
432: glow_survivor_it
433: glow_survivor_pounced
434: spawn_sphere
435: spawn_sphere_b
436: spawn_sphere_c
437: gas_explosion_pump
438: fire_pipe
439: pipe_drips_h
440: pipe_drips_v
441: steam_long
442: Flies
443: roaches_few
444: roaches_many
445: roaches_lot
446: steam_manhole
447: fire_barrel_big
448: gas_explosion_main
449: gas_explosion_debris_trails
450: rain_sheet
451: rain_spot
452: rain_puddle_ripples_small
453: rain_puddle_ripples_large
454: rain_puddle_ripples
455: policecar_tail_strobe2
456: policecar_tail_strobe
457: fog_volume_1024_512



All times are GMT -4. The time now is 18:11.

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