diff --git a/@epochhive/addons/Ignatz_FastSwim.pbo b/@epochhive/addons/Ignatz_FastSwim.pbo new file mode 100644 index 0000000..f9c8f5c Binary files /dev/null and b/@epochhive/addons/Ignatz_FastSwim.pbo differ diff --git a/@epochhive/addons/Ignatz_FastSwim/$PREFIX$ b/@epochhive/addons/Ignatz_FastSwim/$PREFIX$ new file mode 100644 index 0000000..4d3750d --- /dev/null +++ b/@epochhive/addons/Ignatz_FastSwim/$PREFIX$ @@ -0,0 +1 @@ +Ignatz_FastSwim \ No newline at end of file diff --git a/@epochhive/addons/Ignatz_FastSwim/config.cpp b/@epochhive/addons/Ignatz_FastSwim/config.cpp new file mode 100644 index 0000000..710961d --- /dev/null +++ b/@epochhive/addons/Ignatz_FastSwim/config.cpp @@ -0,0 +1,20 @@ +class CfgPatches { + class Ignatz_FastSwim { + units[] = {}; + weapons[] = {}; + version = 0.1; + requiredVersion = 1.76; + requiredAddons[] = {}; + }; +}; +class CfgFunctions { + class Ignatz_FastSwim + { + class main { + file = "Ignatz_FastSwim"; + class postInit { + postInit = 1; + }; + }; + }; +}; \ No newline at end of file diff --git a/@epochhive/addons/Ignatz_FastSwim/fn_postInit.sqf b/@epochhive/addons/Ignatz_FastSwim/fn_postInit.sqf new file mode 100644 index 0000000..fa95c8b --- /dev/null +++ b/@epochhive/addons/Ignatz_FastSwim/fn_postInit.sqf @@ -0,0 +1,43 @@ +_code = { + Ignatz_PlayerIsSwimming = false; + waituntil {typeof player in ['Epoch_Male_F','Epoch_Female_F']}; + waituntil {!isNil 'Epoch_my_GroupUID'}; + waituntil {uisleep 2; alive player}; + _eh = { + player addEventHandler ["AnimChanged", { + params ["_unit", "_anim"]; + if (_anim in [ + "asswpercmstpsnonwnondnon", + "asswpercmstpsnonwnondnon_asswpercmrunsnonwnondf", + "asswpercmrunsnonwnondf", + "aswmpercmrunsnonwnondf", + "aswmpercmsprsnonwnondf", + "abswpercmrunsnonwnondf", + "abswpercmsprsnonwnondf", + "asswpercmrunsnonwnondr", + "aswmpercmrunsnonwnondr", + "abswpercmrunsnonwnondr", + "abswpercmrunsnonwnondl", + "abswpercmstpsnonwnondnon", + "aswmpercmstpsnonwnondnon", + "asswpercmrunsnonwnondb", + "abswpercmrunsnonwnondb", + "aswmpercmrunsnonwnondb", + "abswpercmrunsnonwnondfr", + "abswpercmstpsnonwnondnon_abswpercmrunsnonwnondf", + "asswpercmsprsnonwnondf" + ]) then { + player setAnimSpeedCoef 2.5; + } + else { + player setAnimSpeedCoef 1; + }; + }]; + }; + call _eh; + waituntil {uisleep 2; !alive player}; + waituntil {uisleep 2; alive player}; + call _eh; +}; +_code remoteExec ["BIS_fnc_spawn", -2, "IG_FastSwim"]; +diag_log "Ignatz_Debug: Fast Swim added"; \ No newline at end of file diff --git a/README.md b/README.md index eac8487..e585d52 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,7 @@ - Autorestart - Autmatic Door Opener - Craftable Bicycles +- Fast Swim - Install: - copy the files from epoch.mission into your mission file (if init.sqf already exist, paste the code into this file) - Add the lines from CfgActionMenu_self.hpp into this file: "epoch.mission\epoch_config\Configs\CfgActionMenu\CfgActionMenu_self.hpp" @@ -12,6 +13,10 @@ - All other Settings are in Epoch.Mission\ignatz_config.hpp +Changelog: +- 2019-10-06 + - Added fast Swim + Changelog: - 2019-09-04 - Tweaked RemoveTrees Scripts (better performance)