Fast Swim

This commit is contained in:
He-Man 2019-10-06 02:52:02 +02:00
parent 874ad80dc8
commit 4cc64adadc
5 changed files with 69 additions and 0 deletions

Binary file not shown.

View File

@ -0,0 +1 @@
Ignatz_FastSwim

View File

@ -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;
};
};
};
};

View File

@ -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";

View File

@ -3,6 +3,7 @@
- Autorestart - Autorestart
- Autmatic Door Opener - Autmatic Door Opener
- Craftable Bicycles - Craftable Bicycles
- Fast Swim
- Install: - Install:
- copy the files from epoch.mission into your mission file (if init.sqf already exist, paste the code into this file) - 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" - 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 - All other Settings are in Epoch.Mission\ignatz_config.hpp
Changelog:
- 2019-10-06
- Added fast Swim
Changelog: Changelog:
- 2019-09-04 - 2019-09-04
- Tweaked RemoveTrees Scripts (better performance) - Tweaked RemoveTrees Scripts (better performance)