Sniper only damage and custom weapons
-
Can I get some help adding custom snipers and making only snipers do damage
-
LE4N to add custom snipers https://github.com/Resxt/Plutonium-IW5-Scripts/tree/main/replace_weapon_on_spawn
To allow only sniper damage you can modify this script and adapt it to accept only the sniper weapon type
https://github.com/Resxt/Plutonium-IW5-Scripts/tree/main/disable_self_explosive_damage
This can be done by checking sWeapon value
Then iirc there is a function to check the weapon type but I don't remember what it is