|
Senior Member
Join Date: Nov 2015
Location: Russia
|
11-25-2019
, 12:04
Re: [CS:GO] Thanos day for JailBreak
|
#8
|
I wasn't working on this since I posted image
So this is just demo code:
It have many bugs/problems
Spoiler
Code:
stock CreateParticleThanos(client)
{
new Float:position[3];
TeleportEntity(client, NULL_VECTOR, position, NULL_VECTOR);
for(int b = 1;b <=6;b++)
{
new particle = CreateEntityByName("info_particle_system");
if (IsValidEdict(particle))
{
if(b == 1)DispatchKeyValue(particle, "effect_name", "thanospurple");
else if(b == 2)DispatchKeyValue(particle, "effect_name", "thanosblue");
else if(b == 3)DispatchKeyValue(particle, "effect_name", "thanosred");
else if(b == 4)DispatchKeyValue(particle, "effect_name", "thanosorange");
else if(b == 5)DispatchKeyValue(particle, "effect_name", "thanosyellow");
else DispatchKeyValue(particle, "effect_name", "thanosgreen");
SetVariantString("!activator");
AcceptEntityInput(particle, "SetParent", client);
SetVariantString("weapon_hand_R");
AcceptEntityInput(particle, "SetParentAttachment", client);
DispatchSpawn(particle);
position[0] = 1.0;
if(b == 1)
{
position[1] = -2.0;
position[2] = 1.5;
}
else if(b == 2)
{
position[1] = -2.5;
position[2] = 0.5;
}
else if(b == 3)
{
position[1] = -2.5;
position[2] = -0.5;
}
else if(b == 4)
{
position[1] = -2.0;
position[2] = -1.5;
}
else if(b == 5)
{
position[0] = -0.5;
position[1] = -2.5;
position[2] = 0.0;
}
else if(b == 6)
{
position[1] = 2.0;
position[2] = 3.0;
}
TeleportEntity(particle, position, NULL_VECTOR, NULL_VECTOR);
ActivateEntity(particle);
AcceptEntityInput(particle, "start");
ZParticle[particle] = client;
ZParticleref[particle] = EntIndexToEntRef(particle);
new String:buf[64];
Format(buf, sizeof(buf), "OnUser1 !self:kill::%f:1", 2000.0);
SetVariantString(buf);
AcceptEntityInput(particle, "AddOutput");
AcceptEntityInput(particle, "FireUser1");
}
}
}
EDIT:Added pcf
Last edited by Indarello; 11-28-2019 at 00:10.
|
|
|
|