[L4D2] Detect if special infected die by headshot
I want to detect if special infected die by headshot..How can do that?
|
Re: [L4D2] Detect if infected die by headshot
check the bool "headshot" from the player death event for common infected and witch try infected_death
|
Re: [L4D2] Detect if infected die by headshot
If i use infected_death nothing change...I searched forum but I didn't find any solution
Code:
public OnPluginStart() |
Re: [L4D2] Detect if infected die by headshot
sm_cvar net_showevents 2 output:
Code:
Server event "weapon_fire", Tick 1826:Code:
Server event "player_death", Tick 3935:plugin example PHP Code:
|
Re: [L4D2] Detect if special infected die by headshot
Code:
switch(m_zombieClass) |
Re: [L4D2] Detect if special infected die by headshot
...show your whole plugin.
|
Re: [L4D2] Detect if special infected die by headshot
Is your plugin example.. only I added case smoker case hunter ....
|
Re: [L4D2] Detect if special infected die by headshot
Please?
|
Re: [L4D2] Detect if special infected die by headshot
Code:
#include sourcemod |
Re: [L4D2] Detect if special infected die by headshot
I can't find problem and can't produce that problem.
I can test with bots only and work fine, even L4D2 head shots are inaccurate mostly (client see head exploding -> server not always register that as head shot). You could try remove entity prop "m_zombieClass" part out from code, replace it with string check. Compare event strings "victimname" with infected name. But I doubt it make any differences. |
| All times are GMT -4. The time now is 04:53. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.