Cannot detect Darwin Danger Shield?
Code: http://pastebin.com/Mbrf7aZi
Any bIsWeapon which I forgot from the code above. PHP Code:
What's wrong and how can I fix it? Here's what I suspect: 1. My way of checking if they have a shield is broken 2. My way of detecting headshots is broken 3. TF wearables suck and are broken and it only acts if I have the actual index randomly Removing the TF2_IsPlayerInCondition(attacker, TFCond_Zoomed) check changed nothing. Unless reloading the plugin removes the OnTakeDamage hook, which it shouldn't considering it's added in OnPluginStart. Edit: Added a check for body shots too, it's not running any code at all after GetIndexOfWeaponSlot Also for some reason, after map change, it seems to have completely broken instead of only sometimes detecting it. Wat. Also, using FindEntityByClassname and checking if the owner of the shield was the victim, had just about the same issue. |
Re: Cannot detect Darwin Danger Shield?
GetPlayerWeaponSlot doesn't work on wearable weapons. The rest of your code seems fine, though...are you sure you tried FindEntityByClassname correctly?
PHP Code:
|
Re: Cannot detect Darwin Danger Shield?
I switched back to it and it seems to be working again. I moved off it before because it broke though...
Edit: PHP Code:
The server is sniper only due to class restrictions. It seems I'm able to one shot some people using it, another person is complaining he can't one shot anyone using it. Edit: As it's a sniper only server... PHP Code:
Edit: Wat, that doesn't work either. At least now I know something else must be wrong. Edit 2: Updated my OP with the full OnTakeDamage check. Things I'm sure of: The bitwise checks aren't the problem. The bodyshot nerf always works. The melee nerf always works. |
All times are GMT -4. The time now is 18:03. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.