Jump to content
  • 0

Headshot Suicide Script


kane

Question

The script is working fine for me but, How do i get it so i can select it by right clicking the allowed weapons or even something safer, because at the moment it is on the scroll-wheel option.

 

Even though the action can be cancelled people will constantly misclicking and have to go through the suicide animation, anyone know? im assuming its simple. thanks.

Link to comment
Share on other sites

14 answers to this question

Recommended Posts

  • 0

http://epochmod.com/forum/index.php?/topic/4834-add-right-click-options-to-items/

Just take what you have out of fn_selfactions.sqf that runs the script and put the following into the extra_rc.hpp

class ExtraRc {
class glock17_EP1 {
class CommitSuicide {
text = "Commit Suicide";
script = "execVM ""custom\suicide.sqf"";";
};
};
class M9 {
class CommitSuicide {
text = "Commit Suicide";
script = "execVM ""custom\suicide.sqf"";";
};
};    
class M9SD {
class CommitSuicide {
text = "Commit Suicide";
script = "execVM ""custom\suicide.sqf"";";
};
};    
class Makarov {
class CommitSuicide {
text = "Commit Suicide";
script = "execVM ""custom\suicide.sqf"";";
};
};
class revolver_EP1 {
class CommitSuicide {
text = "Commit Suicide";
script = "execVM ""custom\suicide.sqf"";";
};
};    
class UZI_EP1 {
class CommitSuicide {
text = "Commit Suicide";
script = "execVM ""custom\suicide.sqf"";";
};
};    
class Sa61_EP1 {
class CommitSuicide {
text = "Commit Suicide";
script = "execVM ""custom\suicide.sqf"";";
};
};    
class Colt1911 {
class CommitSuicide {
text = "Commit Suicide";
script = "execVM ""custom\suicide.sqf"";";
};
};        
class UZI_SD_EP1 {
class CommitSuicide {
text = "Commit Suicide";
script = "execVM ""custom\suicide.sqf"";";
};
};
class revolver_gold_EP1 {
class CommitSuicide {
text = "Commit Suicide";
script = "execVM ""custom\suicide.sqf"";";
};
};    
class MakarovSD {
class CommitSuicide {
text = "Commit Suicide";
script = "execVM ""custom\suicide.sqf"";";
};
};
};
Link to comment
Share on other sites

  • 0

class ExtraRc {
    class glock17_EP1 {
        class CommitSuicide {
            text = "Commit Suicide";
            script = "execVM ""custom\suicide.sqf"";";
        };
    };
    class M9 {
        class CommitSuicide {
            text = "Commit Suicide";
            script = "execVM ""custom\suicide.sqf"";";
        };
    };	
    class M9SD {
        class CommitSuicide {
            text = "Commit Suicide";
            script = "execVM ""custom\suicide.sqf"";";
        };
    };	
    class Makarov {
        class CommitSuicide {
            text = "Commit Suicide";
            script = "execVM ""custom\suicide.sqf"";";
        };
    };
    class revolver_EP1 {
        class CommitSuicide {
            text = "Commit Suicide";
            script = "execVM ""custom\suicide.sqf"";";
        };
    };	
    class UZI_EP1 {
        class CommitSuicide {
            text = "Commit Suicide";
            script = "execVM ""custom\suicide.sqf"";";
        };
    };	
    class Sa61_EP1 {
        class CommitSuicide {
            text = "Commit Suicide";
            script = "execVM ""custom\suicide.sqf"";";
        };
    };	
    class Colt1911 {
        class CommitSuicide {
            text = "Commit Suicide";
            script = "execVM ""custom\suicide.sqf"";";
        };
    };		
    class UZI_SD_EP1 {
        class CommitSuicide {
            text = "Commit Suicide";
            script = "execVM ""custom\suicide.sqf"";";
        };
    };
    class revolver_gold_EP1 {
        class CommitSuicide {
            text = "Commit Suicide";
            script = "execVM ""custom\suicide.sqf"";";
        };
    };	
    class MakarovSD {
        class CommitSuicide {
            text = "Commit Suicide";
            script = "execVM ""custom\suicide.sqf"";";
        };
    };
};

This is mine..All pistols are included in this.

Put this inside of a file called 'extra_rc.hpp' in a folder called custom

In your file called description.ext add this at the bottom

#include "custom\extra_rc.hpp"

Lastly, make a file called 'suicide.sqf' and add this into it

 

private ["_Secondary"];
canAbort = true;
_Secondary = currentWeapon player;
player addEventHandler ["fired", {if (alive player) then { player SetDamage 1.1;};}];
cutText [format["CHANGE ME MESSAGE"], "PLAIN DOWN"];
sleep 4;
cutText [format["CHANGE ME MESSAGE"], "PLAIN DOWN"];
sleep 4;
cutText [format["CHANGE ME MESSAGE"], "PLAIN DOWN"];
sleep 2;
cutText [format["CHANGE ME MESSAGE"], "PLAIN DOWN"];
canAbort = false;
player playmove "ActsPercMstpSnonWpstDnon_suicide1B";
sleep 8.4;
player fire _Secondary;

After you've done all that and repacked the files you should be good. You can edit the messages by the way^^

 

you should now be able to right click on any of your pistols and then select commit suicide

Link to comment
Share on other sites

  • 0

 Please do it like this, OCD xD.

class ExtraRc {
    class M9 {
        text = "Commit Suicide";
        script = "execVM 'custom\suicide.sqf';";
    };

    class M9SD: M9;
    class glock17_EP1: M9;
    class Makarov: M9;
    class revolver_EP1: M9;
    class UZI_EP1: M9;
    class Sa61_EP1: M9;
    class Colt1911: M9;
    class UZI_SD_EP1: M9;
    class revolver_gold_EP1: M9;
    class MakarovSD: M9;
};
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...