PDA

View Full Version : [TF2] Crit visual efect?


karq
02-16-2012, 17:58
How to get crit visual efect on weapon?

Tylerst
02-16-2012, 18:30
If you mean without actually giving crits, you would need to use Particles via TempEnts (http://forums.alliedmods.net/showthread.php?t=75102)
Not exactly sure of the proper particle fx, but they're probably probably critgun_weaponmodel_blu and critgun_weaponmodel_red

karq
02-16-2012, 19:43
Show me how attach particle to weapon :c

Dr. McKay
02-16-2012, 23:11
TF2_AddCondition(client, TFCond_Kritzkrieged, 10.0);

That'll give a player crits (with the crit boost visual effect) for 10 seconds.

karq
02-17-2012, 03:21
I know about the condition, but I just want a visual effects without crits.

Tylerst
02-17-2012, 04:44
Show me how attach particle to weapon :c
I'm not sure, to be honest, I haven't worked with particle systems much.

It may have to do with using an info_particle_system (https://developer.valvesoftware.com/wiki/Info_particle_system), possibly parenting it to a weapon, but as I said, I'm not sure.

Though I'm fairly certain that
critgun_weaponmodel_blu
critgun_weaponmodel_blu_glow
and
critgun_weaponmodel_red
critgun_weaponmodel_red_glow

are the proper particles to use.

bl4nk
02-17-2012, 10:57
Try giving them the condition and then using the TF2_CalcIsAttackCritical forward to block them from actually getting crits.

karq
02-18-2012, 17:21
Try giving them the condition and then using the TF2_CalcIsAttackCritical forward to block them from actually getting crits.

But then players will never be able to have random crits :(