Jump to content
  • 0

[Question] Right Click Options on Secondary Weapons [Using Maca's Script]


WAE

Question

I'm currently using Maca's Script: http://epochmod.com/forum/index.php?/topic/4834-add-right-click-options-to-items/ to add right click options on items. I have a suicide script installed and it is currently on the scroll menu. I've found that it's really easy to accidentally press "Commit Suicide" on the scroll wheel when you don't intend to do so in the first place. When I'm unlocking a door, I've found that I accidentally press it quite a lot when again, I don't intend to press it.

 

My server currently features a self bloodbag script that's pretty much identical to a lot of Epoch Servers. I use Maca's script to add a right click option to the class name "ItemBloodbag" and tell it to execute the bloodbag script when I press it.

 

The config file for the script looks like this: (extra_rc.hpp)

class ItemBloodbag {
    class bloodbag_self {
        text = "Bloodbag Self";
        script = "execVM 'custom\selfBB_exec.sqf'";
    };
};

Basically, I want to be able to add the same sort of thing as this to a right click menu on a secondary weapon to make it execute the suicide script. I have tried the following:

class MakarovSD {
    class suicide {
        text = "Commit Suicide";
        script = "execVM 'custom\suicide_exec.sqf'";
    };
};
class Colt1911 {
    class suicide {
        text = "Commit Suicide";
        script = "execVM 'custom\suicide_exec.sqf'";
    };
};
class glock17_EP1 {
    class suicide {
        text = "Commit Suicide";
        script = "execVM 'custom\suicide_exec.sqf'";
    };
};
class M9 {
    class suicide {
        text = "Commit Suicide";
        script = "execVM 'custom\suicide_exec.sqf'";
    };
};
class M9SD {
    class suicide {
        text = "Commit Suicide";
        script = "execVM 'custom\suicide_exec.sqf'";
    };
};
class Makarov {
    class suicide {
        text = "Commit Suicide";
        script = "execVM 'custom\suicide_exec.sqf'";
    };
};
class revolver_EP1 {
    class suicide {
        text = "Commit Suicide";
        script = "execVM 'custom\suicide_exec.sqf'";
    };
};
class revolver_gold_EP1 {
    class suicide {
        text = "Commit Suicide";
        script = "execVM 'custom\suicide_exec.sqf'";
    };
};

I have had no success with this. Just seems like you cannot add a right click option to weapons, but I might be wrong.

 

Any help is appreciated,

Thanks.

Link to comment
Share on other sites

8 answers to this question

Recommended Posts

  • 0

 

Needs to be:

class MakarovSD {
class suicide {
text = "Commit Suicide";
script = "execVM 'custom\suicide_exec.sqf'";
};
class Colt1911 {
class suicide {
text = "Commit Suicide";
script = "execVM 'custom\suicide_exec.sqf'";
};
class glock17_EP1 {
class suicide {
text = "Commit Suicide";
script = "execVM 'custom\suicide_exec.sqf'";
};
class M9 {
class suicide {
text = "Commit Suicide";
script = "execVM 'custom\suicide_exec.sqf'";
};
class M9SD {
class suicide {
text = "Commit Suicide";
script = "execVM 'custom\suicide_exec.sqf'";
};
class Makarov {
class suicide {
text = "Commit Suicide";
script = "execVM 'custom\suicide_exec.sqf'";
};
class revolver_EP1 {
class suicide {
text = "Commit Suicide";
script = "execVM 'custom\suicide_exec.sqf'";
};
class revolver_gold_EP1 {
class suicide {
text = "Commit Suicide";
script = "execVM 'custom\suicide_exec.sqf'";
};
};

Would I overwrite the very last closing bracket and semicolon with this? The way I did it matched the format of the self bloodbag option and that works fine, just that the weapon one doesn't. I'll upload my whole file and you can take a look.

 

https://onedrive.live.com/redir?resid=C126C8216E63E74B!459&authkey=!AAP4yziFq3flndc&ithint=file%2c.hpp (Uploaded to SkyDrive because the uploader wont let me upload files with the .hpp extension.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...