mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
109 lines
2.5 KiB
C++
109 lines
2.5 KiB
C++
#define BASE_DRAG -0.01
|
|
#define HD_MULT 5
|
|
#define BASE_DRAG_HD (BASE_DRAG * HD_MULT)
|
|
#define ACE_FRAG_INIT_CODE _this call FUNC(initRound)
|
|
#define ACE_FRAG_RM_EH class EventHandlers: EventHandlers {\
|
|
class ADDON {\
|
|
delete init;\
|
|
};\
|
|
}
|
|
#define ACE_FRAG_ADD_EH_BASE class EventHandlers {\
|
|
class ADDON {\
|
|
init = QUOTE(ACE_FRAG_INIT_CODE);\
|
|
};\
|
|
}
|
|
#define ACE_FRAG_ADD_EH class EventHandlers: EventHandlers {\
|
|
class ADDON {\
|
|
init = QUOTE(ACE_FRAG_INIT_CODE);\
|
|
};\
|
|
}
|
|
|
|
class CfgAmmo {
|
|
|
|
#include "CfgAmmoBaseEH.hpp"
|
|
|
|
class B_65x39_Caseless: BulletBase {
|
|
class EventHandlers: EventHandlers {};
|
|
};
|
|
class GVAR(base): B_65x39_Caseless {
|
|
ACE_damageType = "grenade"; // compatibility with medical_damage, shrapnel should produce grenade wounds
|
|
timeToLive = 4;
|
|
typicalSpeed = 800;
|
|
maxSpeed = 1500;
|
|
deflecting = 65;
|
|
ACE_FRAG_RM_EH;
|
|
};
|
|
|
|
class GVAR(tiny): GVAR(base) {
|
|
hit = 6;
|
|
airFriction = BASE_DRAG;
|
|
caliber = 0.75;
|
|
};
|
|
|
|
class GVAR(tiny_HD): GVAR(base) {
|
|
hit = 6;
|
|
airFriction = QUOTE(BASE_DRAG_HD);
|
|
caliber = 0.75;
|
|
};
|
|
|
|
class GVAR(small): GVAR(base) {
|
|
hit = 12;
|
|
airFriction = QUOTE(BASE_DRAG*0.9);
|
|
};
|
|
|
|
class GVAR(small_HD): GVAR(base) {
|
|
hit = 12;
|
|
airFriction = QUOTE(BASE_DRAG_HD*0.9);
|
|
};
|
|
|
|
class GVAR(medium): GVAR(base) {
|
|
hit = 14;
|
|
airFriction = QUOTE(BASE_DRAG*0.75);
|
|
caliber = 1.2;
|
|
};
|
|
|
|
class GVAR(medium_HD): GVAR(base) {
|
|
hit = 14;
|
|
airFriction = QUOTE(BASE_DRAG_HD*0.75);
|
|
caliber = 1.2;
|
|
};
|
|
|
|
class GVAR(large): GVAR(base) {
|
|
hit = 28;
|
|
indirectHit = 2;
|
|
indirectHitRange = 0.25;
|
|
airFriction = QUOTE(BASE_DRAG*0.65);
|
|
caliber = 2;
|
|
explosive = 0;
|
|
|
|
};
|
|
|
|
class GVAR(large_HD): GVAR(large) {
|
|
hit = 28;
|
|
indirectHit = 2;
|
|
indirectHitRange = 0.25;
|
|
airFriction = QUOTE(BASE_DRAG_HD*0.65);
|
|
caliber = 2;
|
|
};
|
|
|
|
class GVAR(huge): GVAR(large) {
|
|
hit = 40;
|
|
indirectHit = 4;
|
|
indirectHitRange = 0.5;
|
|
airFriction = QUOTE(BASE_DRAG*0.5);
|
|
caliber = 2.8;
|
|
};
|
|
|
|
class GVAR(huge_HD): GVAR(large) {
|
|
hit = 40;
|
|
indirectHit = 4;
|
|
indirectHitRange = 0.5;
|
|
airFriction = QUOTE(BASE_DRAG_HD*0.5);
|
|
caliber = 2.8;
|
|
};
|
|
|
|
#include "CfgAmmoSpall.hpp"
|
|
#include "CfgAmmoFragSpawner.hpp"
|
|
#include "CfgAmmoFragParameters.hpp"
|
|
};
|