/
fn_particleEffectsOther.sqf
119 lines (116 loc) · 4.15 KB
/
fn_particleEffectsOther.sqf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
/*
functions for other visual FX of add-on goko ballistic impact mod
Author: Gokmen
website: github.com/the0utsider
*/
gokoBI_particleFX_brokenGlassParticles =
{
if (!hasInterface) exitWith {};
_object = _this;
_pArray = [];
for "_i" from 0 to random 12 do
{
_parca = "#particlesource" createVehicleLocal (getposATL _object);
_parca setParticleClass "goko_goggleparts";
_parca setParticleParams
[
["\A3\data_f\ParticleEffects\Universal\GlassParts_03", 1, 0, 1], //shape name
"", //animation name
"SpaceObject", //type
1, 7, //timer period & life time
[0, 0, 0], //position
[1+random -2, 0, random 2], //moveVeocity
2, 1, 0.1, 0.2, //rotation velocity, weight, volume, rubbing
[0.05], //size
[[1,1,1,1]], //color
[0.1], //animationPhase (animation speed in config)
0.00, //randomdirection period
0.0, //random direction intensity
"", //onTimer
"", //before destroy
"", //object
0, //angle
false, //on surface
0 //bounce on surface
];
_parca setParticleRandom [0, [0.1, 0.1, 0.0], [1.35, 1.35, 1.0], 0, 0.1, [0, 0, 0, 0], 0, 0];
_parca setDropInterval 6000;
_parca attachTo [_object,[0,0.08,0.17],"head"];
_pArray pushBack _parca;
};
};
gokoBI_particleFX_blackSmoke =
{
if (!hasInterface) exitWith {};
_object = _this;
_bArray = [];
_breath = "#particlesource" createVehicleLocal (getposATL _object);
_breath setParticleClass "goko_helmetparts";
_breath setParticleParams
[
["\a3\Data_f\ParticleEffects\Universal\universal", 16, 12, 12,0], //shape name
"", //anim name
"Billboard",
0.5, 2.2, //timer period & life time
[0, 0, 0], //pos
[0,0.0,0.5+ random -0.8], //moveVel
1,1.275,1,0.2, //rotation vel, weight, volume, rubbing
[0,0.35,0], //size transform
[[0.01,0.01,0.01,0.12], [0.000,0,0,0.09], [0.10,0.10,0.10,0]],
[1000], //animationPhase (speed in config)
1, //randomdirection period
0.04, //random direction intensity
"", //onTimer
"", //before destroy
"", //object
0, //angle
false, //on surface
0.0 //bounce on surface
];
_breath setParticleRandom [0.5, [0, 0, 0], [0.25, 0.25, 0.25], 0, 0.5, [0, 0, 0, 0.1], 0, 0, 10];
_breath setDropInterval 0.01;
_breath attachTo [_object,[0,0.11,0.2], "head"];
_bArray pushback _breath;
_bArray spawn
{
_bArray = _this;
sleep (1 + random 2);
{ deleteVehicle _x } foreach _bArray;
};
};
gokoBI_particleFX_smallHelmetParts =
{
if (!hasInterface) exitWith {};
_object = _this;
_pArray = [];
for "_i" from 0 to random 10 do
{
_parca = "#particlesource" createVehicleLocal (getposATL _object);
_parca setParticleClass "goko_goggleparts";
_parca setParticleParams
[
["\A3\data_f\ParticleEffects\shard\shard", 1, 0, 1], //shape name
"", //animation name
"SpaceObject", //type
1, 2, //timer period & life time
[0, 0, 0], //position
[6 - random 12, 0, random 6], //moveVeocity
1, 1, 0.1, 1, //rotation velocity, weight, volume, rubbing
[0.08, 0], //size
[[1,1,1,1]], //color
[0.1], //animationPhase (animation speed in config)
0, //randomdirection period
0, //random direction intensity
"", //onTimer
"", //before destroy
"", //object
360, //angle
false, //on surface
0 //bounce on surface
];
_parca setParticleRandom [0, [0.1, 0.1, 0.1], [1, 1, 1], 0, 0.1, [0, 0, 0, 0], 0, 0];
_parca setDropInterval 1000;
_parca attachTo [_object,[0,0,0.18],"head"];
_pArray pushBack _parca;
};
};