Skip to content

Commit

Permalink
Add Animations Component (#257)
Browse files Browse the repository at this point in the history
* Add Animations Component

* Increase ladder speed
  • Loading branch information
Mike-MF authored Aug 17, 2024
1 parent cf7057d commit 1269d68
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 0 deletions.
1 change: 1 addition & 0 deletions addons/animations/$PBOPREFIX$
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
x\tacgt\addons\animations
65 changes: 65 additions & 0 deletions addons/animations/config.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
#include "script_component.hpp"

class CfgPatches {
class ADDON {
name = COMPONENT_NAME;
units[] = {};
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"tacgt_main"};
skipWhenMissingDependencies = 1;
author = ECSTRING(main,Author);
authors[] = {"Mike"};
url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};

class CfgAnimation {
ladderSpeed = 1; // default: 0.5
};

class CfgMovesBasic;
class CfgMovesMaleSdr: CfgMovesBasic {
class States {
// Handgun switch speedup
class TransAnimBase;
class AmovPercMstpSrasWrflDnon_AmovPercMstpSrasWpstDnon: TransAnimBase {
speed = 1.7; // default: 1.1875
};
class AmovPercMstpSrasWrflDnon_AmovPercMstpSrasWpstDnon_end: AmovPercMstpSrasWrflDnon_AmovPercMstpSrasWpstDnon {
speed = 2.1; // default: 1.52
};

// Swimming Speed
class AswmPercMstpSnonWnonDnon;
class AswmPercMrunSnonWnonDf: AswmPercMstpSnonWnonDnon {
speed = 0.36; // default: 0.23834699
};

class AsswPercMstpSnonWnonDnon;
class AsswPercMrunSnonWnonDf: AsswPercMstpSnonWnonDnon {
speed = 0.36; // default: 0.23834699
};

class AbswPercMstpSnonWnonDnon;
class AbswPercMrunSnonWnonDf: AbswPercMstpSnonWnonDnon {
speed = 0.32; // default: 0.23834699
};

class AdvePercMstpSnonWrflDnon;
class AdvePercMrunSnonWrflDf: AdvePercMstpSnonWrflDnon {
speed = 0.2; // default: 0.122414
};

class AsdvPercMstpSnonWrflDnon;
class AsdvPercMrunSnonWrflDf: AsdvPercMstpSnonWrflDnon {
speed = 0.2; // default: 0.122414
};

class AbdvPercMstpSnonWrflDnon;
class AbdvPercMrunSnonWrflDf: AbdvPercMstpSnonWrflDnon {
speed = 0.2; // default: 0.122414
};
};
};
4 changes: 4 additions & 0 deletions addons/animations/script_component.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#define COMPONENT animations
#define COMPONENT_BEAUTIFIED Animations
#include "\x\tacgt\addons\main\script_mod.hpp"
#include "\x\tacgt\addons\main\script_macros.hpp"

0 comments on commit 1269d68

Please sign in to comment.