-
Posts
60 -
Joined
-
Last visited
Content Type
Profiles
Forums
Articles
Posts posted by WAE
-
-
Scrap that, I was being really blind and didn't see that I put
class UZ1_SD_EP1 {
instead of
class UZI_SD_EP1 {
I switched pistols and tried again, it worked :)
-
Done all of this, I don't get anything pop up when I right click on the pistol.
-
I will help, but I won't be available much as we are currently in the process of creating our own server too. Probably also won't be available any time soon to come on Teamspeak because we're very busy ourselves.
-
Have got it working just like that.. Check your extra_rc and look if you have not missed a closing bracket or so....
Have definitely included the closing bracket at the end.
-
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.
-
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.
-
-
well you are correct, but most players who are kamikazing don't really think and tend to fly as fast as they can since that will destroy more in their mindset. so yes if you go slower than the script defines then it's not kamikaze in script terms. but agin the script was build based on the mindset of a "kamikazer"
Good point. Never the less, a great script!
-
Awesome script + idea. Just looking at this, wouldn't people just be able to get to a speed of say 50 or something which is underneath the variable and kamikaze still. If you set the variable too low, the landing thing wouldn't work, because it'd be impossible to land near a base. This is because if you put the variable at 50, you'd find it hard to land because you'd be stalling out if you were going under 50 depending on what type of angle you were trying to land at. If you set the variable too high, you'd have people going under the set speed to kamikaze. That's the only "kink" I've found in it, but overall, great script. I haven't actually tested this out yet, so if I am wrong, please don't kill me :P
[Question] Right Click Options on Secondary Weapons [Using Maca's Script]
in Scripting
Posted
Problem solved. Turns out I was using the Sa61 and forgot that I hadn't added its classname to the list :) Switched pistols and it worked. Appreciate the help.