ACE3/addons/recoil/CfgRecoils.hpp

572 lines
16 KiB
C++
Raw Normal View History

2015-04-15 13:01:07 +00:00
2015-04-25 03:51:44 +00:00
#define KICKBACK 1.4
2015-04-20 14:02:36 +00:00
2015-04-25 05:21:11 +00:00
#define MUZZLETEMP 1.2
2015-04-25 03:51:44 +00:00
#define MUZZLEPERM 0.4
2015-04-20 14:02:36 +00:00
#define MUZZLECLIMB_POS 1
2015-04-25 05:21:11 +00:00
#define MUZZLERIGHT_POS 0.2
2015-04-20 14:02:36 +00:00
#define MUZZLECLIMB_MAG 1
#define MUZZLERIGHT_MAG 1
2015-04-15 13:01:07 +00:00
class CfgRecoils {
class Default {
2015-04-20 14:02:36 +00:00
// doc: http://forums.bistudio.com/showthread.php?188999-Recoil-Overhaul-Feedback&s=dba8590ec07adb5ffa87f72d38dde6fc&p=2886744&viewfull=1#post2886744
// {horizontal axis position, vertical axis position, horizontal magnitude, vertical magnitude}
muzzleOuter[] = {
QUOTE(0*MUZZLERIGHT_POS),
QUOTE(0.4*MUZZLECLIMB_POS),
QUOTE(0.5*MUZZLERIGHT_MAG),
QUOTE(0.6*MUZZLECLIMB_MAG)
};
2015-04-20 14:02:36 +00:00
// restricted area inside the outer ellipse where the recoil cannot end
muzzleInner[] = {0,0.05,0.2,0.2};
// minimum and maximum interval for backward force
kickBack[] = {
QUOTE(0.05*KICKBACK),
QUOTE(0.1*KICKBACK)
};
permanent = QUOTE(0.1*MUZZLEPERM);
temporary = QUOTE(0.01*MUZZLETEMP);
2015-04-15 13:01:07 +00:00
};
class recoil_default: Default {
muzzleOuter[] = {
QUOTE(0.3*MUZZLERIGHT_POS),
QUOTE(1*MUZZLECLIMB_POS),
QUOTE(0.3*MUZZLERIGHT_MAG),
QUOTE(0.2*MUZZLECLIMB_MAG)
};
muzzleInner[] = {0,
0,
0.1,
0.1
};
kickBack[] = {
QUOTE(0.03*KICKBACK),
QUOTE(0.06*KICKBACK)
};
permanent = QUOTE(0.1*MUZZLEPERM);
temporary = QUOTE(0.01*MUZZLETEMP);
2015-04-15 13:01:07 +00:00
};
class recoil_mk20: recoil_default {
muzzleOuter[] = {
QUOTE(0.2*MUZZLERIGHT_POS),
QUOTE(0.6*MUZZLECLIMB_POS),
QUOTE(0.2*MUZZLERIGHT_MAG),
QUOTE(0.2*MUZZLECLIMB_MAG)
};
kickBack[] = {
QUOTE(0.01*KICKBACK),
QUOTE(0.03*KICKBACK)
};
temporary = QUOTE(0.01*MUZZLETEMP);
2015-04-15 13:01:07 +00:00
};
class recoil_mk20c: recoil_default {
muzzleOuter[] = {
QUOTE(0.2*MUZZLERIGHT_POS),
QUOTE(0.8*MUZZLECLIMB_POS),
QUOTE(0.3*MUZZLERIGHT_MAG),
QUOTE(0.2*MUZZLECLIMB_MAG)
};
kickBack[] = {
QUOTE(0.02*KICKBACK),
QUOTE(0.04*KICKBACK)
};
temporary = QUOTE(0.015*MUZZLETEMP);
2015-04-15 13:01:07 +00:00
};
class recoil_trg20: recoil_default {
muzzleOuter[] = {
QUOTE(0.2*MUZZLERIGHT_POS),
QUOTE(1*MUZZLECLIMB_POS),
QUOTE(0.3*MUZZLERIGHT_MAG),
QUOTE(0.3*MUZZLECLIMB_MAG)
};
kickBack[] = {
QUOTE(0.02*KICKBACK),
QUOTE(0.04*KICKBACK)
};
temporary = QUOTE(0.015*MUZZLETEMP);
2015-04-15 13:01:07 +00:00
};
class recoil_trg21: recoil_default {
muzzleOuter[] = {
QUOTE(0.2*MUZZLERIGHT_POS),
QUOTE(0.8*MUZZLECLIMB_POS),
QUOTE(0.3*MUZZLERIGHT_MAG),
QUOTE(0.2*MUZZLECLIMB_MAG)
};
kickBack[] = {
QUOTE(0.01*KICKBACK),
QUOTE(0.03*KICKBACK)
};
temporary = QUOTE(0.01*MUZZLETEMP);
2015-04-15 13:01:07 +00:00
};
class recoil_mx: recoil_default {
muzzleOuter[] = {
QUOTE(0.3*MUZZLERIGHT_POS),
QUOTE(1*MUZZLECLIMB_POS),
QUOTE(0.4*MUZZLERIGHT_MAG),
QUOTE(0.3*MUZZLECLIMB_MAG)
};
kickBack[] = {
QUOTE(0.02*KICKBACK),
QUOTE(0.04*KICKBACK)
};
temporary = QUOTE(0.01*MUZZLETEMP);
2015-04-15 13:01:07 +00:00
};
class recoil_mxc: recoil_default {
muzzleOuter[] = {
QUOTE(0.3*MUZZLERIGHT_POS),
QUOTE(1.2*MUZZLECLIMB_POS),
QUOTE(0.4*MUZZLERIGHT_MAG),
QUOTE(0.3*MUZZLECLIMB_MAG)
};
kickBack[] = {
QUOTE(0.03*KICKBACK),
QUOTE(0.06*KICKBACK)
};
temporary = QUOTE(0.015*MUZZLETEMP);
2015-04-15 13:01:07 +00:00
};
class recoil_sw: recoil_default {
muzzleOuter[] = {
QUOTE(0.3*MUZZLERIGHT_POS),
QUOTE(0.8*MUZZLECLIMB_POS),
QUOTE(0.5*MUZZLERIGHT_MAG),
QUOTE(0.2*MUZZLECLIMB_MAG)
};
kickBack[] = {
QUOTE(0.02*KICKBACK),
QUOTE(0.04*KICKBACK)
};
temporary = QUOTE(0.01*MUZZLETEMP); //0.005*MUZZLETEMP;
2015-04-15 13:01:07 +00:00
};
class recoil_mxm: recoil_default {
muzzleOuter[] = {
QUOTE(0.3*MUZZLERIGHT_POS),
QUOTE(0.8*MUZZLECLIMB_POS),
QUOTE(0.4*MUZZLERIGHT_MAG),
QUOTE(0.3*MUZZLECLIMB_MAG)
};
kickBack[] = {
QUOTE(0.02*KICKBACK),
QUOTE(0.04*KICKBACK)
};
temporary = QUOTE(0.01*MUZZLETEMP);
2015-04-15 13:01:07 +00:00
};
class recoil_ktb: recoil_default {
muzzleOuter[] = {
QUOTE(0.3*MUZZLERIGHT_POS),
QUOTE(1*MUZZLECLIMB_POS),
QUOTE(0.3*MUZZLERIGHT_MAG),
QUOTE(0.3*MUZZLECLIMB_MAG)
};
kickBack[] = {
QUOTE(0.02*KICKBACK),
QUOTE(0.04*KICKBACK)
};
temporary = QUOTE(0.01*MUZZLETEMP);
2015-04-15 13:01:07 +00:00
};
class recoil_ktbc: recoil_default {
muzzleOuter[] = {
QUOTE(0.3*MUZZLERIGHT_POS),
QUOTE(1.2*MUZZLECLIMB_POS),
QUOTE(0.3*MUZZLERIGHT_MAG),
QUOTE(0.3*MUZZLECLIMB_MAG)
};
kickBack[] = {
QUOTE(0.03*KICKBACK),
QUOTE(0.06*KICKBACK)
};
temporary = QUOTE(0.015*MUZZLETEMP);
2015-04-15 13:01:07 +00:00
};
class recoil_smg_01: recoil_default {
muzzleOuter[] = {
QUOTE(0.1*MUZZLERIGHT_POS),
QUOTE(0.8*MUZZLECLIMB_POS),
QUOTE(0.3*MUZZLERIGHT_MAG),
QUOTE(0.2*MUZZLECLIMB_MAG)
};
kickBack[] = {
QUOTE(0.01*KICKBACK),
QUOTE(0.03*KICKBACK)
};
temporary = QUOTE(0.015*MUZZLETEMP);
2015-04-15 13:01:07 +00:00
};
class recoil_smg_02: recoil_default {
muzzleOuter[] = {
QUOTE(0.1*MUZZLERIGHT_POS),
QUOTE(0.6*MUZZLECLIMB_POS),
QUOTE(0.2*MUZZLERIGHT_MAG),
QUOTE(0.2*MUZZLECLIMB_MAG)
};
kickBack[] = {
QUOTE(0.01*KICKBACK),
QUOTE(0.02*KICKBACK)
};
temporary = QUOTE(0.01*MUZZLETEMP);
2015-04-15 13:01:07 +00:00
};
class recoil_pdw: recoil_default {
muzzleOuter[] = {
QUOTE(0.2*MUZZLERIGHT_POS),
QUOTE(1*MUZZLECLIMB_POS),
QUOTE(0.3*MUZZLERIGHT_MAG),
QUOTE(0.3*MUZZLECLIMB_MAG)
};
kickBack[] = {
QUOTE(0.02*KICKBACK),
QUOTE(0.04*KICKBACK)
};
temporary = QUOTE(0.02*MUZZLETEMP);
2015-04-15 13:01:07 +00:00
};
class recoil_sdar: recoil_default {
muzzleOuter[] = {
QUOTE(0.2*MUZZLERIGHT_POS),
QUOTE(1*MUZZLECLIMB_POS),
QUOTE(0.3*MUZZLERIGHT_MAG),
QUOTE(0.3*MUZZLECLIMB_MAG)
};
kickBack[] = {
QUOTE(0.02*KICKBACK),
QUOTE(0.04*KICKBACK)
};
temporary = QUOTE(0.01*MUZZLETEMP);
2015-04-15 13:01:07 +00:00
};
class recoil_pistol_p07: recoil_default {
muzzleOuter[] = {
QUOTE(0.2*MUZZLERIGHT_POS),
QUOTE(1*MUZZLECLIMB_POS),
QUOTE(0.2*MUZZLERIGHT_MAG),
QUOTE(0.3*MUZZLECLIMB_MAG)
};
kickBack[] = {
QUOTE(0.03*KICKBACK),
QUOTE(0.06*KICKBACK)
};
temporary = QUOTE(0.03*MUZZLETEMP);
2015-04-15 13:01:07 +00:00
};
class recoil_pistol_rook40: recoil_default {
muzzleOuter[] = {
QUOTE(0.2*MUZZLERIGHT_POS),
QUOTE(1*MUZZLECLIMB_POS),
QUOTE(0.2*MUZZLERIGHT_MAG),
QUOTE(0.3*MUZZLECLIMB_MAG)
};
kickBack[] = {
QUOTE(0.03*KICKBACK),
QUOTE(0.06*KICKBACK)
};
temporary = QUOTE(0.02*MUZZLETEMP);
2015-04-15 13:01:07 +00:00
};
class recoil_pistol_acpc2: recoil_default {
muzzleOuter[] = {
QUOTE(0.2*MUZZLERIGHT_POS),
QUOTE(1.5*MUZZLECLIMB_POS),
QUOTE(0.2*MUZZLERIGHT_MAG),
QUOTE(0.3*MUZZLECLIMB_MAG)
};
kickBack[] = {
QUOTE(0.04*KICKBACK),
QUOTE(0.08*KICKBACK)
};
temporary = QUOTE(0.04*MUZZLETEMP);
2015-04-15 13:01:07 +00:00
};
class recoil_pistol_4five: recoil_default {
muzzleOuter[] = {
QUOTE(0.2*MUZZLERIGHT_POS),
QUOTE(1.5*MUZZLECLIMB_POS),
QUOTE(0.2*MUZZLERIGHT_MAG),
QUOTE(0.3*MUZZLECLIMB_MAG)
};
kickBack[] = {
QUOTE(0.04*KICKBACK),
QUOTE(0.08*KICKBACK)
};
temporary = QUOTE(0.06*MUZZLETEMP);
2015-04-15 13:01:07 +00:00
};
class recoil_pistol_zubr: recoil_default {
muzzleOuter[] = {
QUOTE(0.2*MUZZLERIGHT_POS),
QUOTE(1.5*MUZZLECLIMB_POS),
QUOTE(0.2*MUZZLERIGHT_MAG),
QUOTE(0.3*MUZZLECLIMB_MAG)
};
kickBack[] = {
QUOTE(0.04*KICKBACK),
QUOTE(0.08*KICKBACK)
};
temporary = QUOTE(0.08*MUZZLETEMP);
2015-04-15 13:01:07 +00:00
};
class recoil_pistol_signal: recoil_default {
muzzleOuter[] = {
QUOTE(0.2*MUZZLERIGHT_POS),
QUOTE(1.5*MUZZLECLIMB_POS),
QUOTE(0.2*MUZZLERIGHT_MAG),
QUOTE(0.3*MUZZLECLIMB_MAG)
};
kickBack[] = {
QUOTE(0.02*KICKBACK),
QUOTE(0.04*KICKBACK)
};
temporary = QUOTE(0.02*MUZZLETEMP);
2015-04-15 13:01:07 +00:00
};
class recoil_rpg: recoil_default {
muzzleOuter[] = {
QUOTE(2*MUZZLERIGHT_POS),
QUOTE(3*MUZZLECLIMB_POS),
QUOTE(1*MUZZLERIGHT_MAG),
QUOTE(0.5*MUZZLECLIMB_MAG)
};
kickBack[] = {
QUOTE(0.08*KICKBACK),
QUOTE(0.1*KICKBACK)
};
temporary = QUOTE(0.1*MUZZLETEMP);
2015-04-15 13:01:07 +00:00
};
class recoil_nlaw: recoil_default {
muzzleOuter[] = {
QUOTE(2*MUZZLERIGHT_POS),
QUOTE(3*MUZZLECLIMB_POS),
QUOTE(1*MUZZLERIGHT_MAG),
QUOTE(0.5*MUZZLECLIMB_MAG)
};
kickBack[] = {
QUOTE(0.06*KICKBACK),
QUOTE(0.08*KICKBACK)
};
temporary = QUOTE(0.08*MUZZLETEMP);
2015-04-15 13:01:07 +00:00
};
class recoil_titan_long: recoil_default {
muzzleOuter[] = {
QUOTE(2*MUZZLERIGHT_POS),
QUOTE(3*MUZZLECLIMB_POS),
QUOTE(1*MUZZLERIGHT_MAG),
QUOTE(0.5*MUZZLECLIMB_MAG)
};
kickBack[] = {
QUOTE(0.1*KICKBACK),
QUOTE(0.12*KICKBACK)
};
temporary = QUOTE(0.15*MUZZLETEMP);
2015-04-15 13:01:07 +00:00
};
class recoil_titan_short: recoil_default {
muzzleOuter[] = {
QUOTE(2*MUZZLERIGHT_POS),
QUOTE(3*MUZZLECLIMB_POS),
QUOTE(1*MUZZLERIGHT_MAG),
QUOTE(0.5*MUZZLECLIMB_MAG)
};
kickBack[] = {
QUOTE(0.1*KICKBACK),
QUOTE(0.12*KICKBACK)
};
temporary = QUOTE(0.12*MUZZLETEMP);
2015-04-15 13:01:07 +00:00
};
class recoil_mk200: recoil_default {
muzzleOuter[] = {
QUOTE(0.4*MUZZLERIGHT_POS),
QUOTE(0.6*MUZZLECLIMB_POS),
QUOTE(0.6*MUZZLERIGHT_MAG),
QUOTE(0.2*MUZZLECLIMB_MAG)
};
kickBack[] = {
QUOTE(0.03*KICKBACK),
QUOTE(0.06*KICKBACK)
};
temporary = QUOTE(0.01*MUZZLETEMP); //0.005*MUZZLETEMP;
2015-04-15 13:01:07 +00:00
};
class recoil_zafir: recoil_default {
muzzleOuter[] = {
QUOTE(0.5*MUZZLERIGHT_POS),
QUOTE(1*MUZZLECLIMB_POS),
QUOTE(0.7*MUZZLERIGHT_MAG),
QUOTE(0.3*MUZZLECLIMB_MAG)
};
kickBack[] = {
QUOTE(0.02*KICKBACK),
QUOTE(0.08*KICKBACK)
};
temporary = QUOTE(0.01*MUZZLETEMP); //0.005*MUZZLETEMP;
2015-04-15 13:01:07 +00:00
};
class recoil_m320: recoil_default {
muzzleOuter[] = {
QUOTE(1*MUZZLERIGHT_POS),
QUOTE(3*MUZZLECLIMB_POS),
QUOTE(0.5*MUZZLERIGHT_MAG),
QUOTE(0.6*MUZZLECLIMB_MAG)
};
kickBack[] = {
QUOTE(0.08*KICKBACK),
QUOTE(0.1*KICKBACK)
};
temporary = QUOTE(0.02*MUZZLETEMP);
2015-04-15 13:01:07 +00:00
};
class recoil_gm6: recoil_default {
muzzleOuter[] = {
QUOTE(1.4*MUZZLERIGHT_POS),
QUOTE(3.5*MUZZLECLIMB_POS),
QUOTE(0.7*MUZZLERIGHT_MAG),
QUOTE(0.8*MUZZLECLIMB_MAG)
};
kickBack[] = {
QUOTE(0.1*KICKBACK),
QUOTE(0.12*KICKBACK)
};
temporary = QUOTE(0.025*MUZZLETEMP);
2015-04-15 13:01:07 +00:00
};
class recoil_ebr: recoil_default {
muzzleOuter[] = {
QUOTE(0.4*MUZZLERIGHT_POS),
QUOTE(1.5*MUZZLECLIMB_POS),
QUOTE(0.6*MUZZLERIGHT_MAG),
QUOTE(0.4*MUZZLECLIMB_MAG)
};
kickBack[] = {
QUOTE(0.04*KICKBACK),
QUOTE(0.07*KICKBACK)
};
temporary = QUOTE(0.01*MUZZLETEMP);
2015-04-15 13:01:07 +00:00
};
class recoil_dmr_01: recoil_default {
muzzleOuter[] = {
QUOTE(0.5*MUZZLERIGHT_POS),
QUOTE(2*MUZZLECLIMB_POS),
QUOTE(0.5*MUZZLERIGHT_MAG),
QUOTE(0.5*MUZZLECLIMB_MAG)
};
kickBack[] = {
QUOTE(0.03*KICKBACK),
QUOTE(0.08*KICKBACK)
};
temporary = QUOTE(0.015*MUZZLETEMP);
2015-04-15 13:01:07 +00:00
};
class recoil_dmr_02: recoil_default {
muzzleOuter[] = {
QUOTE(0.5*MUZZLERIGHT_POS),
QUOTE(2.5*MUZZLECLIMB_POS),
QUOTE(0.6*MUZZLERIGHT_MAG),
QUOTE(0.5*MUZZLECLIMB_MAG)
};
kickBack[] = {
QUOTE(0.06*KICKBACK),
QUOTE(0.08*KICKBACK)
};
temporary = QUOTE(0.01*MUZZLETEMP);
2015-04-15 13:01:07 +00:00
};
class recoil_dmr_03: recoil_default {
muzzleOuter[] = {
QUOTE(0.3*MUZZLERIGHT_POS),
QUOTE(1.5*MUZZLECLIMB_POS),
QUOTE(0.5*MUZZLERIGHT_MAG),
QUOTE(0.4*MUZZLECLIMB_MAG)
};
kickBack[] = {
QUOTE(0.03*KICKBACK),
QUOTE(0.06*KICKBACK)
};
temporary = QUOTE(0.005*MUZZLETEMP);
2015-04-15 13:01:07 +00:00
};
class recoil_dmr_04: recoil_default {
muzzleOuter[] = {
QUOTE(0.4*MUZZLERIGHT_POS),
QUOTE(1.5*MUZZLECLIMB_POS),
QUOTE(0.5*MUZZLERIGHT_MAG),
QUOTE(0.4*MUZZLECLIMB_MAG)
};
kickBack[] = {
QUOTE(0.02*KICKBACK),
QUOTE(0.04*KICKBACK)
};
temporary = QUOTE(0.015*MUZZLETEMP);
2015-04-15 13:01:07 +00:00
};
class recoil_dmr_05: recoil_default {
muzzleOuter[] = {
QUOTE(0.5*MUZZLERIGHT_POS),
QUOTE(2.5*MUZZLECLIMB_POS),
QUOTE(0.8*MUZZLERIGHT_MAG),
QUOTE(0.6*MUZZLECLIMB_MAG)
};
kickBack[] = {
QUOTE(0.08*KICKBACK),
QUOTE(0.1*KICKBACK)
};
temporary = QUOTE(0.01*MUZZLETEMP);
2015-04-15 13:01:07 +00:00
};
class recoil_dmr_06: recoil_default {
muzzleOuter[] = {
QUOTE(0.5*MUZZLERIGHT_POS),
QUOTE(2*MUZZLECLIMB_POS),
QUOTE(0.7*MUZZLERIGHT_MAG),
QUOTE(0.5*MUZZLECLIMB_MAG)
};
kickBack[] = {
QUOTE(0.05*KICKBACK),
QUOTE(0.1*KICKBACK)
};
temporary = QUOTE(0.01*MUZZLETEMP);
2015-04-15 13:01:07 +00:00
};
class recoil_mmg_01: recoil_default {
muzzleOuter[] = {
QUOTE(0.6*MUZZLERIGHT_POS),
QUOTE(1.5*MUZZLECLIMB_POS),
QUOTE(0.8*MUZZLERIGHT_MAG),
QUOTE(0.3*MUZZLECLIMB_MAG)
};
kickBack[] = {
QUOTE(0.02*KICKBACK),
QUOTE(0.08*KICKBACK)
};
temporary = QUOTE(0.01*MUZZLETEMP); //0.005*MUZZLETEMP;
2015-04-15 13:01:07 +00:00
};
class recoil_mmg_02: recoil_default {
muzzleOuter[] = {
QUOTE(0.5*MUZZLERIGHT_POS),
QUOTE(1.5*MUZZLECLIMB_POS),
QUOTE(0.6*MUZZLERIGHT_MAG),
QUOTE(0.4*MUZZLECLIMB_MAG)
};
kickBack[] = {
QUOTE(0.04*KICKBACK),
QUOTE(0.08*KICKBACK)
};
temporary = QUOTE(0.01*MUZZLETEMP); //0.005*MUZZLETEMP;
2015-04-15 13:01:07 +00:00
};
};