This is based off a function in the Jordan Menu. Once it’s turned on, you can use any weapon (flashlights, fire extinguishers, tasers, and shotguns work best) and aim at the entity to delete it.
Usage /delgun - toggles delete object gun
Aim at the entity.
Installation
Install it as any script you would install in a server.
Integrate dogconfig.cfg into your server.cfg. This can either be done by copying the contents into or adding ensure path/to/file/dogconfig.cfg to the server.cfg file.
Shoutout to TehhGerman for making an installation video
Config setr dog.onAim "true" # change to false if you want to delete object on gunshot rather than on aim
setr dog.useAce "false" # change to true in order to use Ace permissions
add_ace group.admin dog.delgun allow # if using ace perms, allows delgun command for admin group. change as you need
I was just looking for the previous version of this script to install. This version came up in the list with perfect timing.
I have a minor issue (hopefully the only one). For me, at least, the setting to switch between aim and shooting doesn’t make a difference, it seems to be stuck on aim to delete. I have not touched the scripting at all, and only changed the config, both available options.
If it makes any difference, I am using a stun gun, not a standard firearm. (It still deletes entities amazingly well!)
Any help for this?
I mean, regardless of if we can get it fixed or not, I am definitely keeping this resource. Well done!
no matter the setting, it seems that the gun will delete anything its aimed at, additionally trying to set it for use as admins only doesn’t seem to work.
Seems my little issue on the first post didn’t help that poster. Dangit!
While I’m here, I did notice a bit of a problem that isn’t much of a problem… When I was demonstrating for my mod (and having fun trying to delete him with it :D), I found the reliability of the weapon is… less… As in, I have to trigger a vehicle or entity multiple times before it will delete (sometimes, not all the time).
Do you know why? Is it networking? Am I able to fix it so it works with a 100% success rate with other people online and nearby?
(Do note: it does work, it just takes multple triggers before working, I’ve found, whereas alone it’s first time, every time.)