arabiafoki.blogg.se

Tf2 stock icons
Tf2 stock icons







tf2 stock icons

While ((i = FindEntityB圜lassname2(i, "obj_teleporter")) != -1) If (iDest != 1 || !GetCmdArgs()) //If teleport destination is not 1 or unspecified (Spawn) If (IsValidClient(iClient) & IsPlayerAlive(iClient))Ĭhar arg GetCmdArg(1, arg, sizeof(arg)) If (cvarPads.IntValue = EngiPads_Disabled || !cvarPads.BoolValue) Public Action EurekaTeleport(int iClient, const char szCommand, int nArgs) Return Plugin_Handled //I need to block the duplicate sapping sound otherwise it'll loop forever. If (StrEqual(sample, "weapons/sapper_timer.wav") || StrContains(sample, "spy_tape") != -1) If (GetEntPropEnt(entity, Prop_Send, "m_hBuiltOnEntity") = -1) If (StrEqual(className, "obj_attachment_sapper") & TF2_GetObjectType(entity) = TFObject_Sapper & channel = SNDCHAN_STATIC) GetEntit圜lassname(entity, className, sizeof(className)) Int &entity, int &channel, float &volume, int &level, int &pitch, int &flags,Ĭhar soundEntry, int &seed) Public Action HookSound(int clients, int &numClients, char sample, SetEntPropFloat(iSapper, Prop_Send, "m_flModelScale", cvarPads.FloatValue) //Scale down Sapper to match Pad size. Since I set the Tele's matching Tele to itself, Sappers take 2 instances of damage per hit. SetVariantInt(GetEntProp(iSapper, Prop_Send, "m_iMaxHealth") * 2) ĪcceptEntityInput(iSapper, "SetHealth", iSapper) //Double Sapper HP. If (view_as(event.GetInt("object")) != TFObject_Teleporter || !g_iPadType) Int iObj = GetEntPropEnt(iSapper, Prop_Send, "m_hBuiltOnEntity") Public void ObjectSapped(Event event, const char name, bool dontBroadcast) If (!StrEqual(name, "player_carryobject")) Int iObjParti = EntRefToEntIndex(g_iObjectParticle) If ((view_as(event.GetInt("object")) != TFObject_Teleporter & view_as(event.GetInt("objecttype")) != TFObject_Teleporter) || !g_iPadType) Public void ObjectDestroyed(Event event, const char name, bool dontBroadcast) PrintPadTypeNameToClient(g_iPadType, iBuilder) TF2_SetMatchingTeleporter(iObj, -1) //Reset m_hMatchingTeleporter if the buidling is no longer a Pad.ĬonvertTeleporterToPad(iObj, GetPadType(iObj), GetEntProp(iObj, Prop_Send, "m_bCarryDeploy") ? false : true) If (TF2_GetMatchingTeleporter(iObj) = iObj) If (!GetClientPadsEnabled(iBuilder) || cvarPads.IntValue = EngiPads_Disabled || !CheckCommandAccess(iBuilder, "sm_engipads_override", 0)) Int iBuilder = GetClientOfUserId(event.GetInt("userid")) If (view_as(event.GetInt("object")) != TFObject_Teleporter) Public void ObjectBuilt(Event event, const char name, bool dontBroadcast)

tf2 stock icons

If (!iWeapon & IsValidClient(iOwner) & Pad_IsPlayerInCond(iOwner, PadCond_Boost)) //0 means ownerid was airblasted Int iOwner = GetClientOfUserId(event.GetInt("ownerid")) Public void ObjectDeflected(Event event, const char name, bool dontBroadcast) If (StringToFloat(szNewValue) > 0.0 & cvarPads.IntValue > EngiPads_Disabled)Įlse if (StringToFloat(szNewValue) = cvarPads.IntValue) If (RoundToFloor(StringToFloat(szNewValue)) = EngiPads_Disabled & RoundToFloor(StringToFloat(szOldValue)) > EngiPads_Disabled)Įlse if (cvarPads.FloatValue > 0.0 & RoundToFloor(StringToFloat(szOldValue)) = EngiPads_Disabled) If (!StrEqual(szNewValue, PLUGIN_VERSION))ĬvarPads.SetString(PLUGIN_VERSION) //If config version number does not match plugin, plugin will override it. Public void CvarChange(ConVar cvar, const char szOldValue, const char szNewValue) G_hPadTimerAnnounce = CreateTimer(cvarPads.FloatValue, Timer_PadsAnnounce, _, TIMER_FLAG_NO_MAPCHANGE) Just some 'PrintToChatAll's here and there.Įnum PadCond ( EngiPads_Disabled & cvarPads.FloatValue > 0.0) #define DEBUG //Uncomment for "debug" stuff. #define PLUGIN_VERSION MAJOR.".".MINOR.".".PATCH Define version number in a needlessly complex way









Tf2 stock icons