Author Topic: Cei-Rigotti automatic rifle: would definitely be banned in California : {FIXED}  (Read 2157 times)

Getting a few errors in the server.cs for getImageAmmo and getMountedImage.

fixed it with a simple object check
Code: [Select]

Not sure if its the base code or if other guns are conflicting it, im running it on randomizer with over 300 other guns so it really could be anything.

I replaced that function when I made this update:
Made a small fix to the Cei-Rigotti so it doesn't cause a useless error message in the console when anything dies.

Your fix works too, though. I think it happens because ServerCmdUnUseTool is called when something dies, and it should normally start with an isObject check when my packaged function did not.