Thread: tfcx bug
View Single Post
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 04-30-2014 , 16:55   Re: tfcx bug
Reply With Quote #8

Tested tfc_getweaponammo and it works fine, but it's expected, it just sets some offset. All you need to provide is a weapon index. That's not something you will get from inflictor in TakeDamage, generally such index is the weapon projectile.

Also, get_user_weapon doesn't return the weapon index, but the identifier TFC_WPN_* .
__________________

Last edited by Arkshine; 04-30-2014 at 16:57.
Arkshine is offline