mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Remove RVMAT for ammo model
This commit is contained in:
parent
538c8c3d33
commit
1c4397d42e
@ -5,6 +5,6 @@ class Extended_PreStart_EventHandlers {
|
||||
};
|
||||
class Extended_PreInit_EventHandlers {
|
||||
class ADDON {
|
||||
init = QUOTE( call COMPILE_SCRIPT(XEH_preInit) );
|
||||
init = QUOTE(call COMPILE_SCRIPT(XEH_preInit));
|
||||
};
|
||||
};
|
||||
|
@ -15,14 +15,15 @@
|
||||
* Public: No
|
||||
*/
|
||||
|
||||
params ["_unit", "_weapon", "_muzzle", "_mode", "_ammo", "_magazine", "_projectile", "_gunner"];
|
||||
TRACE_8("ammoFired",_unit,_weapon,_muzzle,_mode,_ammo,_magazine,_projectile,_gunner);
|
||||
params ["_unit", "", "", "", "_ammo", "", "_projectile", "_gunner"];
|
||||
TRACE_4("ammoFired",_unit,_ammo,_projectile,_gunner);
|
||||
|
||||
if (!local _gunner) exitWith {};
|
||||
if (isNull _projectile) exitWith {};
|
||||
|
||||
// Get MissileGuidance args now
|
||||
private _firedEH = +_this;
|
||||
// Inject the submuntion ammo into guidance args
|
||||
_firedEH set [4, getText (configFile >> "CfgAmmo" >> _ammo >> "submunitionAmmo")];
|
||||
private _guidanceArgs = _firedEH call EFUNC(missileguidance,onFiredDeffered);
|
||||
_projectile setVariable [QGVAR(guidanceArgs), _guidanceArgs];
|
||||
@ -34,6 +35,7 @@ _projectile addEventHandler ["SubmunitionCreated", {
|
||||
|
||||
private _guidanceArgs = _projectile getVariable [QGVAR(guidanceArgs), []];
|
||||
if (_guidanceArgs isEqualTo []) exitWith { ERROR_1("bad args %1",_projectile); };
|
||||
// Inject the submuntion projectile and time into guidance args
|
||||
_guidanceArgs params ["_firedEH", "", "", "", "_stateParams"];
|
||||
_firedEH set [6, _submunitionProjectile]; // _firedEH params ["","","","","","","_projectile"];
|
||||
_stateParams set [0, diag_tickTime]; // _stateParams params ["_lastRunTime"]
|
||||
@ -48,6 +50,7 @@ _projectile addEventHandler ["SubmunitionCreated", {
|
||||
params ["_time", "_projectile"];
|
||||
if (isNull _projectile) exitWith {true};
|
||||
systemChat format ["%1 - %2", CBA_missionTime - _time, vectorMagnitude velocity _projectile];
|
||||
false
|
||||
}, {}, [CBA_missionTime, _submunitionProjectile]] call CBA_fnc_waitUntilAndExecute;
|
||||
#endif
|
||||
}];
|
||||
|
Binary file not shown.
@ -1,76 +0,0 @@
|
||||
class StageTI {
|
||||
texture = "a3\data_f\default_glass_ti_ca.paa";
|
||||
};
|
||||
ambient[] = {1,1,1,1};
|
||||
diffuse[] = {1,1,1,1};
|
||||
forcedDiffuse[] = {0,0,0,1};
|
||||
emmisive[] = {0,0,0,0};
|
||||
specular[] = {0.2,0.2,0.2,1};
|
||||
specularPower = 500;
|
||||
PixelShaderID = "Super";
|
||||
VertexShaderID = "Super";
|
||||
class Stage1 {
|
||||
texture="#(argb,8,8,3)color(0.5,0.5,0.5,1)";
|
||||
uvSource = "tex";
|
||||
class uvTransform {
|
||||
aside[] = {1,0,0};
|
||||
up[] = {0,1,0};
|
||||
dir[] = {0,0,1};
|
||||
pos[] = {0,0,0};
|
||||
};
|
||||
};
|
||||
class Stage2 {
|
||||
texture = "#(argb,8,8,3)color(0.5,0.5,0.5,0.5,DT)";
|
||||
uvSource = "tex";
|
||||
class uvTransform {
|
||||
aside[] = {1,0,0};
|
||||
up[] = {0,1,0};
|
||||
dir[] = {0,0,1};
|
||||
pos[] = {0,0,0};
|
||||
};
|
||||
};
|
||||
class Stage3 {
|
||||
texture = "#(argb,8,8,3)color(0,0,0,0,MC)";
|
||||
uvSource = "tex";
|
||||
class uvTransform {
|
||||
aside[] = {1,0,0};
|
||||
up[] = {0,1,0};
|
||||
dir[] = {0,0,1};
|
||||
pos[] = {0,0,0};
|
||||
};
|
||||
};
|
||||
class Stage4 {
|
||||
texture = "#(argb,8,8,3)color(1,1,1,1,AS)";
|
||||
uvSource = "tex";
|
||||
class uvTransform {
|
||||
aside[] = {1,0,0};
|
||||
up[] = {0,1,0};
|
||||
dir[] = {0,0,1};
|
||||
pos[] = {0,0,0};
|
||||
};
|
||||
};
|
||||
class Stage5 {
|
||||
texture = "#(argb,8,8,3)color(0,0.6,1,1,SMDI)";
|
||||
uvSource = "tex";
|
||||
class uvTransform {
|
||||
aside[] = {1,0,0};
|
||||
up[] = {0,1,0};
|
||||
dir[] = {0,0,1};
|
||||
pos[] = {0,0,0};
|
||||
};
|
||||
};
|
||||
class Stage6 {
|
||||
texture = "#(ai,32,128,1)fresnel(1.6,1.4)";
|
||||
uvSource="none";
|
||||
};
|
||||
class Stage7 {
|
||||
useWorldEnvMap = "true";
|
||||
texture = "a3\data_f\env_interier_car_ca.paa";
|
||||
uvSource = "tex";
|
||||
class uvTransform {
|
||||
aside[] = {1,0,0};
|
||||
up[] = {0,1,0};
|
||||
dir[] = {0,0,1};
|
||||
pos[] = {0,0,0};
|
||||
};
|
||||
};
|
Loading…
Reference in New Issue
Block a user