William Rogers

Cannibalism Script to work with JohnO's Hunting Script (Works with ExileZ Zombies)

17 posts in this topic

This script adds cannibalism to the game (you can also eat zombies too)

To install put these 2 files in your main mission directory https://github.com/rbuddy101/Custom-Scripts

Pack your PBO and done!

Any Questions just ask!

V1.2 Uses "Toast" Messages looks nicer (Thanks @jungleNZ )

V1.1 Updated - Fixed the option to gut Human while looking at an animal and only uses 1 player addAction now

 

 

Most of the credit goes goes to JohnO but I have made some modifications.

Working off the previous Hunting script added by JohnO which can be found here REQUIRED!

 

Edited by William Rogers
  • Like 2

Share this post


Link to post
Share on other sites
Advertisement

You could change text title to new toast format:\

//titleText ["Gutting the animal as made you sick..Sit down and you will recover faster","PLAIN"];

would become
            ["ErrorTitleAndText", ["Hunting", "Gutting animal has made you sick..Sit down to recover faster"]] call ExileClient_gui_toaster_addTemplateToast;

or just ["ErrorTitleOnly", ["Gutting animal has made you sick..Sit down to recover faster"]] call ExileClient_gui_toaster_addTemplateToast;

 

lots of things can be added like using empty cans as well, so once had enough feeding it places can or cans on ground to collect.

if (("Exile_Item_Knife" in (magazines player)) && ("Exile_Item_Can_Empty" in (magazines player))) then
{    
   .........................................................
    
    _weaponHolderA = createVehicle ["GroundWeaponHolder", _pos, [], 0, "CAN_COLLIDE"];
    _weaponHolderA addItemCargoGlobal ["Exile_Item_SausageGravy", 2];
    player removeItem "Exile_Item_Can_Empty";

 

Edited by jungleNZ

Share this post


Link to post
Share on other sites
8 minutes ago, jungleNZ said:

You could change text title to new toast format:\

//titleText ["Gutting the animal as made you sick..Sit down and you will recover faster","PLAIN"];

would become
            ["ErrorTitleAndText", ["Hunting", "Gutting animal has made you sick..Sit down to recover faster"]] call ExileClient_gui_toaster_addTemplateToast;

or just ["ErrorTextOnlyt", ["Gutting animal has made you sick..Sit down to recover faster"]] call ExileClient_gui_toaster_addTemplateToast;

 

lots of things can be added like using empty cans as well, so once had enough feeding it places can or cans on ground to collect.

if (("Exile_Item_Knife" in (magazines player)) && ("Exile_Item_Can_Empty" in (magazines player))) then
{    
   .........................................................
    
    _weaponHolderA = createVehicle ["GroundWeaponHolder", _pos, [], 0, "CAN_COLLIDE"];
    _weaponHolderA addItemCargoGlobal ["Exile_Item_SausageGravy", 2];
    player removeItem "Exile_Item_Can_Empty";

 

Hey thanks man I will change it to Toast format tomorrow ive been up all night lol

Share this post


Link to post
Share on other sites
49 minutes ago, William Rogers said:

I would like to make it so that the script won't work on Ryan Zombies and also adds a cool sound effect when using the knife if anyone has any ideas of the best way to do this let me know :)

For the sound effect:

Find/record a sound you would like to use, convert it to .ogg format. Define it in description.ext like so:

class CfgSounds
{
	sounds[] = {0};
	class skinning
	{
		name = "SkinningSound";
		sound[] = {"file\path\skinning.ogg", 1, 1};
		titles[] = {0,""};
	};
};

then simply call it in the script like so:

playSound "skinning";

 

Edited by oSoDirty

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.