ACF icon indicating copy to clipboard operation
ACF copied to clipboard

Error using cutting torch on ragdoll entities

Open Mista-Tea opened this issue 10 years ago • 0 comments

To reproduce: Spawn a ragdoll and left click it using the Cutting Torch weapon.

You should get the following error located at https://github.com/nrlulz/ACF/blob/master/lua/weapons/torch/shared.lua#L130 because the ragdoll doesn't have an ACF table stored on it.

[ERROR] addons/addon_acf/lua/weapons/torch/shared.lua:130: attempt to index field 'ACF' (a nil value)
  1. unknown - addons/addon_acf/lua/weapons/torch/shared.lua:130

If you test this and find that it's not reproducible, there is a slight chance that it might be my prop protection system that I wrote, though it's unlikely.

Otherwise, maybe just default the NWFloats to 0 if it fails the ACF_Valid() check at https://github.com/nrlulz/ACF/blob/master/lua/weapons/torch/shared.lua#L123 ?

Mista-Tea avatar Oct 07 '15 02:10 Mista-Tea