Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma semicolon 1
- #pragma newdecls required
- #include <sourcemod>
- #include <sdktools>
- #include <sdkhooks>
- #define SOUND_PASS1 "animation/c130_flyby.wav"
- #define PARTICLE_FLARE "flare_burning"
- #define PARTICLE_FUSE "weapon_pipebomb_fuse"
- #define SOUND_CRACKLE "ambient/fire/fire_small_loop2.wav"
- #define MODEL_FLARE "models/props_lighting/light_flares.mdl"
- #define MAXLIST 26
- char sMap[56];
- int gIndexCrate[2048+1], g_iFlares[2048+1][5];
- ConVar cTankChance, cDropType, cCountItems, cCountAirdrops, cTimeOpen, cUseString, cColorFlare, cFlare, cFlareLenght, cFlareAplha, cWeaponList;
- bool IsLeft4Dead2;
- public Plugin myinfo =
- {
- name = "[L4D2] Airdrop",
- author = "BHaType",
- description = "Admin can call airdrop.",
- version = "0.4",
- url = "https://www.sourcemod.net/plugins.php?cat=0&mod=-1&title=&author=BHaType&description=&search=1"
- }
- static const char gModeList[4][] =
- {
- "models/props_vehicles/c130.mdl",
- "models/props_crates/supply_crate02.mdl",
- "models/props_crates/supply_crate02_gib1.mdl",
- "models/props_junk/wood_crate001a.mdl"
- };
- static const char gItemsListL4D1[MAXLIST - 18][] =
- {
- "weapon_autoshotgun",
- "weapon_first_aid_kit",
- "weapon_pipe_bomb",
- "weapon_molotov",
- "weapon_rifle",
- "weapon_hunting_rifle",
- "weapon_pain_pills",
- "weapon_pistol"
- };
- static const char gItemsList[MAXLIST][] =
- {
- "weapon_autoshotgun", //0
- "weapon_first_aid_kit",//1
- "weapon_pipe_bomb",//2
- "weapon_molotov",//3
- "weapon_rifle",//4
- "weapon_hunting_rifle",//5
- "weapon_pain_pills",//6
- "weapon_pistol",//7
- "weapon_adrenaline",//8
- "weapon_smg_mp5",//9
- "weapon_smg",//10
- "weapon_smg_silenced",//11
- "weapon_pumpshotgun",//12
- "weapon_shotgun_chrome",//13
- "weapon_rifle_m60",//14
- "weapon_shotgun_spas",//15
- "weapon_sniper_military",//16
- "weapon_rifle_ak47",//17
- "weapon_rifle_desert",//18
- "weapon_sniper_awp",//19
- "weapon_rifle_sg552",//20
- "weapon_sniper_scout",//21
- "weapon_grenade_launcher",//22
- "weapon_pistol_magnum",//23
- "weapon_vomitjar",//24
- "weapon_defibrillator"//25
- };
- static const char gModelsItemsList[MAXLIST][] =
- {
- "models/w_models/weapons/w_autoshot_m4super.mdl", //0
- "models/w_models/weapons/w_eq_Medkit.mdl", //1
- "models/w_models/weapons/w_eq_pipebomb.mdl", //2
- "models/w_models/weapons/w_eq_molotov.mdl", //3
- "models/w_models/weapons/w_rifle_m16a2.mdl", //4
- "models/w_models/weapons/w_sniper_mini14.mdl", //5
- "models/w_models/weapons/w_eq_painpills.mdl", //6
- "models/w_models/weapons/w_pistol_a.mdl", //7
- "models/w_models/weapons/w_eq_adrenaline.mdl", //8
- "models/w_models/weapons/w_smg_mp5.mdl", //9
- "models/w_models/weapons/w_smg_uzi.mdl", //10
- "models/w_models/weapons/w_smg_a.mdl", //11
- "models/w_models/weapons/w_shotgun.mdl", //12
- "models/w_models/weapons/w_pumpshotgun_a.mdl", //13
- "models/w_models/weapons/w_m60.mdl", //14
- "models/w_models/weapons/w_shotgun_spas.mdl", //15
- "models/w_models/weapons/w_sniper_military.mdl", //16
- "models/w_models/weapons/w_rifle_ak47.mdl", //17
- "models/w_models/weapons/w_desert_rifle.mdl", //18
- "models/w_models/weapons/w_sniper_awp.mdl", //19
- "models/w_models/weapons/w_rifle_sg552.mdl", //20
- "models/w_models/weapons/w_sniper_scout.mdl", //21
- "models/w_models/weapons/w_grenade_launcher.mdl", //22
- "models/w_models/weapons/w_desert_eagle.mdl", //23
- "models/w_models/weapons/w_eq_bile_flask.mdl", //24
- "models/w_models/weapons/w_eq_defibrillator.mdl" //25
- };
- static int gAmmoList[MAXLIST] =
- {
- 90,
- -1,
- -1,
- -1,
- 360,
- 150,
- -1,
- -1,
- -1,
- 650,
- 650,
- 650,
- 56,
- 56,
- -1,
- 90,
- 180,
- 360,
- 360,
- 180,
- 360,
- 180,
- 30,
- -1,
- -1,
- -1
- };
- public void OnPluginStart()
- {
- char sEngine[24];
- GetGameFolderName(sEngine, sizeof(sEngine));
- if (StrEqual(sEngine, "left4dead2", false))
- IsLeft4Dead2 = true;
- RegAdminCmd("sm_ac130", CallAirdrop, ADMFLAG_ROOT);
- //HookEvent("tank_spawn", EventTank);
- HookEvent("tank_killed", EventTank);
- cWeaponList = CreateConVar("airdrop_weapons_list", "weapon_rifle;weapon_autoshotgun;weapon_hunting_rifle;weapon_smg;weapon_pumpshotgun;weapon_pistol;weapon_molotov;weapon_pipe_bomb;weapon_first_aid_kit;weapon_pain_pills;weapon_shotgun_chrome;weapon_rifle_desert;weapon_grenade_launcher;weapon_rifle_m60;weapon_rifle_ak47;weapon_rifle_sg552;weapon_shotgun_spas;weapon_smg_silenced;weapon_smg_mp5;weapon_sniper_awp;weapon_sniper_military;weapon_sniper_scout;weapon_chainsaw;weapon_pistol_magnum;weapon_vomitjar;weapon_defibrillator;weapon_upgradepack_explosive;weapon_upgradepack_incendiary;weapon_adrenaline", "Будет ли рядом флаер с коробкой", FCVAR_NONE);
- cFlare = CreateConVar("airdrop_flare", "1", "Будет ли рядом флаер с коробкой", FCVAR_NONE);
- cColorFlare = CreateConVar("airdrop_flare_color", "25 25 255", "Цвет флаера", FCVAR_NONE);
- cFlareLenght = CreateConVar("airdrop_flare_lenght", "275", "Длина дыма флаера", FCVAR_NONE);
- cFlareAplha = CreateConVar("airdrop_flare_aplha", "255", "Прозрачность дыма", FCVAR_NONE);
- cUseString = CreateConVar("airdrop_open_string", "Hehe boi", "Что будет написано при открытии ящика", FCVAR_NONE);
- cTimeOpen = CreateConVar("airdrop_open_time", "2.5", "Время открытия", FCVAR_NONE);
- cCountAirdrops = CreateConVar("airdrop_count_airdrops", "3", "Кол-во ящиков", FCVAR_NONE);
- cCountItems = CreateConVar("airdrop_count_items", "6", "Кол-во предметов из ящиков", FCVAR_NONE);
- cDropType = CreateConVar("airdrop_type_drop", "1", "Разные предметы будут выпадать либо нет(Ставить 1, только если квар \"airdrop count items\" > 1)", FCVAR_NONE);
- cTankChance = CreateConVar("airdrop_tank_chance", "50", "Шанс аирдропа при смерти танка", FCVAR_NONE);
- AutoExecConfig(true, "Airdrop");
- }
- public Action EventTank(Event event, const char[] name, bool dontbroadcast)
- {
- if(GetRandomInt(0, 100) <= GetConVarInt(cTankChance))
- {
- int client = GetClientOfUserId(event.GetInt("userid"));
- AirPlane(client);
- }
- }
- public void OnMapStart()
- {
- GetCurrentMap(sMap, sizeof sMap);
- PrecacheModel(MODEL_FLARE, true);
- PrecacheSound(SOUND_CRACKLE, true);
- PrecacheParticle(PARTICLE_FLARE);
- PrecacheParticle(PARTICLE_FUSE);
- PrecacheSound(SOUND_PASS1, true);
- for (int i = 0; i < 3; i++)
- PrecacheModel(gModeList[i], true);
- for (int i = 0; i < MAXLIST - 1; i++)
- PrecacheModel(gModelsItemsList[i], true);
- }
- public Action CallAirdrop(int client, int args)
- {
- AirPlane(client);
- PrintToChatAll("\x04[Air] \x03%N \x04вызвал аирдроп", client);
- }
- stock void AirPlane(int client)
- {
- float vPos[3], vAng[3], direction;
- GetEntPropVector(client, Prop_Send, "m_vecOrigin", vPos);
- vPos[2] += 64;
- GetEntPropVector(client, Prop_Send, "m_angRotation", vAng);
- direction = vAng[1];
- float vSkybox[3];
- vAng[0] = 0.0;
- vAng[1] = direction;
- vAng[2] = 0.0;
- GetEntPropVector(0, Prop_Data, "m_WorldMaxs", vSkybox);
- int entity = CreateEntityByName("prop_dynamic_override");
- DispatchKeyValue(entity, "targetname", "ac130");
- DispatchKeyValue(entity, "disableshadows", "1");
- DispatchKeyValue(entity, "model", gModeList[0]);
- DispatchSpawn(entity);
- float height = vPos[2] + 1150.0;
- if( height > vSkybox[2] - 200 )
- vPos[2] = vSkybox[2] - 200;
- else
- vPos[2] = height;
- TeleportEntity(entity, vPos, vAng, NULL_VECTOR);
- EmitSoundToAll(SOUND_PASS1, entity, SNDCHAN_AUTO, SNDLEVEL_HELICOPTER);
- SetVariantString("airport_intro_flyby");
- AcceptEntityInput(entity, "SetAnimation");
- AcceptEntityInput(entity, "Enable");
- SetVariantString("OnUser1 !self:Kill::20.19:1");
- AcceptEntityInput(entity, "AddOutput");
- AcceptEntityInput(entity, "FireUser1");
- CreateTimer(6.3, TimerDropAirDrop, EntIndexToEntRef(entity));
- }
- public Action TimerDropAirDrop(Handle timer, any entity)
- {
- entity = EntRefToEntIndex(entity);
- if(entity != INVALID_ENT_REFERENCE)
- {
- float vPos[3];
- GetEntPropVector(entity, Prop_Send, "m_vecOrigin", vPos);
- CreateCrates(vPos);
- }
- }
- void CreateCrates(float vPos[3])
- {
- char sUseString[16], sTimeOpen[16];
- int entity, iTrigger;
- Handle hTrace;
- float vAng[3], vEndPos[3], vDistance, fTime;
- vAng[0] = 89.0; vAng[1] = 0.0; vAng[2] = 0.0;
- GetConVarString(cUseString, sUseString, sizeof sUseString);
- GetConVarString(cTimeOpen, sTimeOpen, sizeof sTimeOpen);
- if(strcmp(sMap, "c5m1_waterfront") == 0)
- vPos[2] -= 475.0;
- for(int i = 0; i < GetConVarInt(cCountAirdrops); i++)
- {
- vPos[1] += GetRandomInt(-150, 150);
- vPos[0] += GetRandomInt(-150, 150);
- entity = CreateEntityByName("prop_physics_override");
- DispatchKeyValue(entity, "targetname", "SupplyDrop");
- DispatchKeyValueVector(entity, "origin", vPos);
- if(IsLeft4Dead2)
- SetEntityModel(entity, gModeList[1]);
- else
- {
- DispatchKeyValue(entity, "StartGlowing", "1");
- DispatchKeyValue(entity, "model", gModeList[3]);
- }
- DispatchSpawn(entity);
- if(GetConVarInt(cFlare))
- {
- vPos[2] -= 50;
- hTrace = TR_TraceRayFilterEx(vPos, vAng, MASK_SHOT, RayType_Infinite, TraceDontHitSelf, entity);
- GetEntPropVector(entity, Prop_Send, "m_vecOrigin", vPos);
- if(TR_DidHit(hTrace))
- {
- TR_GetEndPosition(vEndPos, hTrace);
- vDistance = GetVectorDistance(vPos, vEndPos);
- fTime = vDistance / 315.0;
- CreateTimer(fTime, tToDelete, EntIndexToEntRef(entity));
- }
- else
- LogError("Trace did not hit anything! WTF");
- }
- if(IsLeft4Dead2)
- {
- iTrigger = CreateEntityByName("func_button_timed");
- DispatchKeyValueVector(iTrigger, "origin", vPos);
- DispatchKeyValue(iTrigger, "use_string", sUseString);
- DispatchKeyValue(iTrigger, "use_time", sTimeOpen);
- DispatchKeyValue(iTrigger, "auto_disable", "1");
- DispatchSpawn(iTrigger);
- ActivateEntity(iTrigger);
- SetEntPropVector(iTrigger, Prop_Send, "m_vecMins", view_as<float>({-225.0, -225.0, -225.0}));
- SetEntPropVector(iTrigger, Prop_Send, "m_vecMaxs", view_as<float>({225.0, 225.0, 225.0}));
- HookSingleEntityOutput(iTrigger, "OnTimeUp", OnTimeUp);
- SetEntityModel(iTrigger, gModeList[2]);
- SetEntityRenderMode(iTrigger, RENDER_NONE);
- vPos[2] += 25;
- TeleportEntity(iTrigger, vPos, NULL_VECTOR, NULL_VECTOR);
- SetVariantString("!activator");
- AcceptEntityInput(iTrigger, "SetParent", entity);
- char sColor[16];
- Format(sColor, sizeof sColor, "255 255 255");
- SetEntProp(entity, Prop_Send, "m_nGlowRange", 500);
- SetEntProp(entity, Prop_Send, "m_iGlowType", 3);
- SetEntProp(entity, Prop_Send, "m_glowColorOverride", GetColor(sColor));
- SetEntProp(iTrigger, Prop_Data, "m_takedamage", 0, 1);
- SetEntProp(entity, Prop_Data, "m_takedamage", 0, 1);
- gIndexCrate[iTrigger] = EntIndexToEntRef(entity);
- }
- else SDKHook(entity, SDKHook_OnTakeDamage, OnTakeDamage);
- }
- //SDKHook(entity, SDKHook_OnTakeDamage, OnTakeDamage);
- PrintToChatAll("\x04[Air] \x03Аирдроп(ы) \x04упал(и) в примерных координатах \x05%.2f %.2f %.2f", vPos[0], vPos[1], vPos[2]);
- }
- public Action tToDelete(Handle timer, any entity)
- {
- entity = EntRefToEntIndex(entity);
- if(entity != INVALID_ENT_REFERENCE)
- {
- float vPos[3], vAng[3];
- char sColor[12];
- GetEntPropVector(entity, Prop_Send, "m_vecOrigin", vPos);
- GetConVarString(cColorFlare, sColor, sizeof sColor);
- vPos[0] += 20.0;
- vPos[2] -= 6.0;
- MakeFlare(entity, vAng, vPos, sColor, sColor);
- }
- }
- public bool TraceDontHitSelf(int entity, int mask, any data)
- {
- if(entity == data)
- {
- return false;
- }
- return true;
- }
- public void OnTimeUp(const char[] output, int caller, int activator, float delay)
- {
- if (activator > 0 && activator <= MaxClients && IsClientInGame(activator))
- {
- char sWeaponList[90], sWeaponAllowed[36][36];
- GetConVarString(cWeaponList, sWeaponList, sizeof sWeaponList);
- ExplodeString(sWeaponList, ";", sWeaponAllowed, sizeof(sWeaponAllowed), sizeof(sWeaponAllowed[]));
- PrintToChatAll("%s", sWeaponAllowed[1][sizeof(sWeaponAllowed[]) - 1]);
- int entity = gIndexCrate[caller];
- if((entity = EntRefToEntIndex(entity)) != INVALID_ENT_REFERENCE)
- {
- int SupplyItem;
- float vPos[3], vAng[3];
- AcceptEntityInput(caller, "kill");
- GetEntPropVector(entity, Prop_Send, "m_vecOrigin", vPos);
- GetEntPropVector(entity, Prop_Send, "m_angRotation", vAng);
- int OpenedCrate = CreateEntityByName("prop_physics_override");
- DispatchKeyValueVector(OpenedCrate, "origin", vPos);
- DispatchKeyValueVector(OpenedCrate, "angles", vAng);
- SetEntityModel(OpenedCrate, gModeList[2]);
- DispatchSpawn(OpenedCrate);
- int RandomIntType = GetRandomInt(0, 24);
- AcceptEntityInput(entity, "kill");
- for(int i = 0; i <= GetConVarInt(cCountItems); i++)
- {
- if(GetConVarInt(cDropType) != 1) SupplyItem = CreateEntityByName(gItemsList[RandomIntType]);
- else
- {
- if(IsLeft4Dead2) RandomIntType = GetRandomInt(0, 24);
- else RandomIntType = GetRandomInt(0, 8);
- SupplyItem = CreateEntityByName(gItemsList[RandomIntType]);
- }
- if(IsValidEntity(SupplyItem))
- {
- for(int v = 0; v < 36; v++)
- {
- PrintToChatAll("%s", sWeaponAllowed[v][sizeof(sWeaponAllowed[]) - 1]);
- if(strcmp(gItemsList[i], sWeaponAllowed[v][sizeof(sWeaponAllowed[]) - 1]) == 0)
- {
- DispatchSpawn(SupplyItem);
- SetEntityModel(SupplyItem, gModelsItemsList[RandomIntType]);
- vPos[2] += 2.5;
- vAng[0] = 0.0;
- vAng[1] = 90.0;
- vAng[2] = 0.0;
- TeleportEntity(SupplyItem, vPos, vAng, NULL_VECTOR);
- if(gAmmoList[RandomIntType] != -1)
- SetEntProp(SupplyItem, Prop_Send, "m_iExtraPrimaryAmmo", gAmmoList[RandomIntType], 4);
- }
- }
- }
- }
- for(int i = 0; i <= 4; i++)
- AcceptEntityInput(g_iFlares[entity][i], "kill");
- PrintToChatAll("\x04[Air] \x03%N \x04открыл аирдроп", activator);
- }
- }
- }
- public Action OnTakeDamage(int victim, int &attacker, int &inflictor, float &damage, int &damagetype)
- {
- if(IsValidEntity(victim) && attacker > 0 && GetClientTeam(attacker) == 2)
- {
- float vPos[3];
- char sModel[126];
- int SupplyItem;
- GetEntPropString(victim, Prop_Data, "m_ModelName", sModel, sizeof(sModel));
- if(strcmp(sModel, gModeList[3]) == 0)
- {
- AcceptEntityInput(victim, "break");
- GetEntPropVector(victim, Prop_Send, "m_vecOrigin", vPos);
- for(int v = 0; v < GetConVarInt(cCountItems); v++)
- {
- int iInt = GetRandomInt(0, 7);
- if(GetConVarInt(cDropType) == 1) SupplyItem = CreateEntityByName(gItemsListL4D1[GetRandomInt(0, 7)]);
- else CreateEntityByName(gItemsListL4D1[iInt]);
- DispatchSpawn(SupplyItem);
- vPos[2] += 5.0;
- TeleportEntity(SupplyItem, vPos, NULL_VECTOR, NULL_VECTOR);
- }
- PrintToChatAll("\x04[Air] \x03%N \x04вскрыл аирдроп", attacker);
- }
- }
- }
- int GetColor(char[] sTemp)
- {
- if( StrEqual(sTemp, "") )
- return 0;
- char sColors[3][4];
- int color = ExplodeString(sTemp, " ", sColors, 3, 4);
- if( color != 3 )
- return 0;
- color = StringToInt(sColors[0]);
- color += 256 * StringToInt(sColors[1]);
- color += 65536 * StringToInt(sColors[2]);
- return color;
- }
- //Thanks to Silvers...
- int MakeFlare(int client, float vAngles[3], float vOrigin[3], const char[] sColorL, const char[] sColorS)
- {
- int entity;
- entity = CreateEntityByName("prop_dynamic");
- SetEntityModel(entity, MODEL_FLARE);
- DispatchSpawn(entity);
- TeleportEntity(entity, vOrigin, vAngles, NULL_VECTOR);
- g_iFlares[client][0] = entity;
- vOrigin[2] += 15.0;
- entity = MakeLightDynamic(vOrigin, view_as<float>({ 90.0, 0.0, 0.0 }), sColorL, 255);
- vOrigin[2] -= 15.0;
- g_iFlares[client][1] = entity;
- // Position particles / smoke
- entity = 0;
- vAngles[1] = GetRandomFloat(1.0, 360.0);
- vAngles[0] = -80.0;
- vOrigin[0] += (1.0 * (Cosine(DegToRad(vAngles[1]))));
- vOrigin[1] += (1.5 * (Sine(DegToRad(vAngles[1]))));
- vOrigin[2] += 1.0;
- // Flare particles
- entity = DisplayParticle(PARTICLE_FLARE, vOrigin, vAngles);
- g_iFlares[client][2] = entity;
- // Fuse particles
- entity = DisplayParticle(PARTICLE_FUSE, vOrigin, vAngles);
- g_iFlares[client][3] = entity;
- // Smoke
- vAngles[0] = -85.0;
- entity = MakeEnvSteam(vOrigin, vAngles, sColorS, GetConVarInt(cFlareAplha), GetConVarInt(cFlareLenght));
- g_iFlares[client][4] = entity;
- PlaySound(g_iFlares[entity][0]);
- }
- //Thanks to Silvers...
- int DisplayParticle(const char[] sParticle, const float vPos[3], const float vAng[3])
- {
- int entity = CreateEntityByName("info_particle_system");
- if( entity != -1 )
- {
- DispatchKeyValue(entity, "effect_name", sParticle);
- DispatchSpawn(entity);
- ActivateEntity(entity);
- AcceptEntityInput(entity, "start");
- TeleportEntity(entity, vPos, vAng, NULL_VECTOR);
- return entity;
- }
- return 0;
- }
- //Thanks to Silvers...
- int MakeEnvSteam(const float vOrigin[3], const float vAngles[3], const char[] sColor, int iAlpha, int iLength)
- {
- int entity = CreateEntityByName("env_steam");
- char sTemp[5];
- DispatchKeyValue(entity, "SpawnFlags", "1");
- DispatchKeyValue(entity, "rendercolor", sColor);
- DispatchKeyValue(entity, "SpreadSpeed", "1");
- DispatchKeyValue(entity, "Speed", "15");
- DispatchKeyValue(entity, "StartSize", "1");
- DispatchKeyValue(entity, "EndSize", "3");
- DispatchKeyValue(entity, "Rate", "10");
- IntToString(iLength, sTemp, sizeof(sTemp));
- DispatchKeyValue(entity, "JetLength", sTemp);
- IntToString(iAlpha, sTemp, sizeof(sTemp));
- DispatchKeyValue(entity, "renderamt", sTemp);
- DispatchKeyValue(entity, "InitialState", "1");
- DispatchSpawn(entity);
- AcceptEntityInput(entity, "TurnOn");
- TeleportEntity(entity, vOrigin, vAngles, NULL_VECTOR);
- return entity;
- }
- void PlaySound(int entity)
- {
- EmitSoundToAll(SOUND_CRACKLE, entity, SNDCHAN_AUTO, SNDLEVEL_DISHWASHER, SND_SHOULDPAUSE, SNDVOL_NORMAL, SNDPITCH_HIGH, -1, NULL_VECTOR, NULL_VECTOR);
- }
- int MakeLightDynamic(const float vOrigin[3], const float vAngles[3], const char[] sColor, int iDist)
- {
- int entity = CreateEntityByName("light_dynamic");
- char sTemp[16];
- Format(sTemp, sizeof(sTemp), "6");
- DispatchKeyValue(entity, "style", sTemp);
- Format(sTemp, sizeof(sTemp), "%s 255", sColor);
- DispatchKeyValue(entity, "_light", sTemp);
- DispatchKeyValue(entity, "brightness", "1");
- DispatchKeyValueFloat(entity, "spotlight_radius", 32.0);
- DispatchKeyValueFloat(entity, "distance", float(iDist));
- DispatchSpawn(entity);
- AcceptEntityInput(entity, "TurnOn");
- TeleportEntity(entity, vOrigin, vAngles, NULL_VECTOR);
- return entity;
- }
- void PrecacheParticle(const char[] ParticleName)
- {
- int entity = CreateEntityByName("info_particle_system");
- DispatchKeyValue(entity, "effect_name", ParticleName);
- DispatchSpawn(entity);
- ActivateEntity(entity);
- AcceptEntityInput(entity, "start");
- SetVariantString("OnUser1 !self:Kill::0.1:-1");
- AcceptEntityInput(entity, "AddOutput");
- AcceptEntityInput(entity, "FireUser1");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement