[TUTORIAL] Remove/Change Trading Animations (for faster trading)

gr8_boi52

Well-Known Member
This Tutorial will teach you how to alter/change or remove trader animations for faster trading​



Requirements:

* Basic knowledge of unpacking pbo's

* Custom compiles

* Common sense

* Text Editor (notepad++)



Installation



(If you already have a compiles file, Skip to #4 please)



1) Open your dayz_mission.pbo and open init.sqf

Find:
Code:
call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\compiles.sqf";//Compile regular functions
Replace it with:
Code:
call compile preprocessFileLineNumbers "fixes\compiles.sqf";//Compile regular functions
2) Now make a folder called fixes

3) copy this file into the fixes folder
Code:
..\Steam\SteamApps\common\Arma 2OperationArrowhead\@DayZ_Epoch\addonsdayz_code.pbo\init\compiles.sqf


(if you already have a custom compiles.sqf, start here)
4) Open fixes/compiles.sqf

Find:
Code:
call compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_traderMenuHive.sqf";

Replace it with:
Code:
call compile preprocessFileLineNumbers "fixes\player_traderMenuHive.sqf";

5) Copy this file into your fixes folder
Code:
..\Steam\SteamApps\common\Arma 2OperationArrowhead\@DayZ_Epoch\addonsdayz_code.pbo\compile\player_traderMenuHive.sqf

6) Open fixes/player_traderMenuHive.sqf
Find:

Code:
_File="\z\addons\dayz_code\actions\" + _afile + ".sqf";
Replace it with:

Code:
_File="fixes\trade\" + _afile + ".sqf";

7) Make a folder called trade inside the fixes folder

8) Download these files and extract them inside the traders folder

9) Repack and you're done
smile.png



Configuration

If you leave the way you installed it, it will be ready to go on the server. On my version of code, instead of the medic animation, it will do a pickup or lean animation which is way quicker than the medic animation.

however if you want to modify it to your likings, you may do so very easily.


To Change the animation of trading

Open every file inside the fixes/trade folder

Find:

Code:
player playActionNow "PutDown";
and replace "PutDown" with any other animation you like. Check this link for almost all the arma animation

To Remove the animation of trading

Open every file inside the fixes/trade folder

Find:

Code:
player playActionNow "PutDown";
Remove the line whole line, to simple get rid of the animation.




Sorry if code is not right becuase its my very first tutorial
Credits: Zupa
 
Back
Top