-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEmitter.cs
68 lines (62 loc) · 1.68 KB
/
Emitter.cs
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
//emote_confusion.cs
function emitTeleBall(%client)
{
if(isObject(%client.player))
%client.player.emote(TeleBallImage);
}
datablock ParticleData(TeleBallParticle)
{
dragCoefficient = 6.0;
gravityCoefficient = 0.0;
inheritedVelFactor = 0.0;
constantAcceleration = 0.0;
lifetimeMS = 1000;
lifetimeVarianceMS = 500;
useInvAlpha = true;
textureName = "./teleball";
colors[0] = "1.0 1.0 1.0 1.0";
colors[1] = "1.0 1.0 1.0 5.0";
colors[2] = "1.0 1.0 1.0 0.0";
sizes[0] = 4;
sizes[1] = 2;
sizes[2] = 0.8;
times[0] = 0.0;
times[1] = 0.2;
times[2] = 1.0;
};
datablock ParticleEmitterData(TeleBallEmitter)
{
ejectionPeriodMS = 60;
periodVarianceMS = 0;
ejectionVelocity = 0.5;
ejectionOffset = 0.5;
velocityVariance = 0.50;
thetaMin = 0;
thetaMax = 120;
phiReferenceVel = 0;
phiVariance = 360;
overrideAdvance = false;
particles = "TeleBallParticle";
uiName = "Player Teleport C";
};
datablock ShapeBaseImageData(TeleBallImage)
{
shapeFile = "base/data/shapes/empty.dts";
emap = false;
mountPoint = 2;
stateName[0] = "Ready";
stateTransitionOnTimeout[0] = "FireA";
stateTimeoutValue[0] = 0.01;
stateName[1] = "FireA";
stateTransitionOnTimeout[1] = "Done";
stateWaitForTimeout[1] = True;
stateTimeoutValue[1] = 0.350;
stateEmitter[1] = TeleBallEmitter;
stateEmitterTime[1] = 0.350;
stateName[2] = "Done";
stateScript[2] = "onDone";
};
function TeleBallImage::onDone(%this,%obj,%slot)
{
%obj.unMountImage(%slot);
}