mirror of
https://github.com/Ignatz-HeMan/Ignatz_Tools.git
synced 2024-08-30 16:12:11 +00:00
Fast Swim
This commit is contained in:
parent
874ad80dc8
commit
4cc64adadc
BIN
@epochhive/addons/Ignatz_FastSwim.pbo
Normal file
BIN
@epochhive/addons/Ignatz_FastSwim.pbo
Normal file
Binary file not shown.
1
@epochhive/addons/Ignatz_FastSwim/$PREFIX$
Normal file
1
@epochhive/addons/Ignatz_FastSwim/$PREFIX$
Normal file
@ -0,0 +1 @@
|
||||
Ignatz_FastSwim
|
20
@epochhive/addons/Ignatz_FastSwim/config.cpp
Normal file
20
@epochhive/addons/Ignatz_FastSwim/config.cpp
Normal 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;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
43
@epochhive/addons/Ignatz_FastSwim/fn_postInit.sqf
Normal file
43
@epochhive/addons/Ignatz_FastSwim/fn_postInit.sqf
Normal 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";
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user