Greetings modding community,
I've been searching the forums for a way to customize the M16 rifle to have a virtual scope, but I can't find anything. So, I'm wondering if it's possible to use some code for the Hunting rifle to achieve the zoom-in function with its scope?
While there is an upgrade perk plugin by Marcus101RR [
link here] that can attach a scope to all the weapons, I'm specifically interested in attaching one to the M16 alone.
Here's a snippet of code from the perks/upgrades plugin showing the indices for the scopes for all weapons, not that I think it's going to necessarily help:
Code:
UpgradeIndex[24] = 16777216;
UpgradeTitle[24] = "\x03Sniper Scope \x01(\x04Sniper Zoom Attachment\x01)";
UpgradeShort[24] = "\x03Sniper Scope\x01";
UpgradeEnabled[24] = CreateConVar("survivor_upgrade_scope_enable", "1", "Enable/Disable Sniper Scope", CVAR_FLAGS, true, 0.0, true, 1.0);
PerkTitle[24] = "Sniper Scope";
UpgradeIndex[25] = 33554432;
UpgradeTitle[25] = "\x03Sniper Scope Accuracy \x01(\x04Increased Zoom Accuracy\x01)";
UpgradeShort[25] = "\x03Sniper Scope Accuracy\x01";
UpgradeEnabled[25] = CreateConVar("survivor_upgrade_scope_accuracy_enable", "1", "Enable/Disable Sniper Scope Accuracy", CVAR_FLAGS, true, 0.0, true, 1.0);
PerkTitle[25] = "Sniper Scope Accuracy";
My question is, can Sourcemod be used to achieve this kind of customization? Does anyone know if this is even feasible?
Cheers,
Sunyata