Author
|
Message
|
Senior Member
Join Date: Oct 2020
Location: Orlando, FL
|
12-09-2020
, 13:09
[L4D2] How to determine if Grenade Launcher has special ammo?
|
#1
|
Using SDKHook_OnTakeDamage, I have already determined that the inflictor is "grenade_launcher_projectile". What I want to do next is determine if the grenade_launcher_projectile is using special ammo, like incendiary or explosive. With regular weapons I can do this using...
GetEntProp(weapon, Prop_Send, "m_upgradeBitVec")
Of course, with the grenade launcher, the weapon is -1, so the above command will not work. If I try the same command above but use inflictor (the projectile) instead of weapon...
GetEntProp(inflictor, Prop_Send, "m_upgradeBitVec")
...it fails with...
Property "m_upgradeBitVec" not found (entity 148/grenade_launcher_projectile)
How do I determine whether the damage from grenade_launcher_projectile includes incendiary/explosive special ammo?
|
|
|
|