Skip to content

Commit

Permalink
Changed SetEffects to AddEffects
Browse files Browse the repository at this point in the history
  • Loading branch information
ampreeT committed Sep 21, 2024
1 parent efef7b0 commit f18fb1a
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion scripting/include/srccoop/entitypatch.inc
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ void InitTrigger(CBaseEntity pTrigger)
static char szBuffer[PLATFORM_MAX_PATH];
pTrigger.GetModelName(szBuffer, sizeof(szBuffer));
pTrigger.SetModel(szBuffer); // initialize the model from name
pTrigger.SetEffects(pTrigger.GetEffects() | EF_NODRAW);
pTrigger.AddEffects(EF_NODRAW);
}

//------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion scripting/include/srccoop/levellump.inc
Original file line number Diff line number Diff line change
Expand Up @@ -1533,7 +1533,7 @@ public void FixupBrushModelsPost(DataPack pack)
pThis.Teleport(vecOrigin);
pThis.SetCollisionBounds(vecMins, vecMaxs);
pThis.SetSolidType(SOLID_BBOX);
pThis.SetEffects(pThis.GetEffects() | EF_NODRAW);
pThis.AddEffects(EF_NODRAW);
}
delete pack;
}
Expand Down
2 changes: 1 addition & 1 deletion scripting/include/srccoop/manager_survival.inc
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ methodmap SurvivalManager {
pPlayer.SetObserverMode(OBS_MODE_CHASE);
pPlayer.SetMoveType(MOVETYPE_OBSERVER);
pPlayer.SetSolidFlags(pPlayer.GetSolidFlags() | FSOLID_NOT_SOLID);
pPlayer.SetEffects(pPlayer.GetEffects() | EF_NODRAW);
pPlayer.AddEffects(EF_NODRAW);

// Show spectate gui
ShowVGUIPanel(client, "specgui", null);
Expand Down
2 changes: 1 addition & 1 deletion scripting/include/srccoop/playerpatch.inc
Original file line number Diff line number Diff line change
Expand Up @@ -823,7 +823,7 @@ void PackPlayerItems(CBasePlayer pPlayer)
pPlayer.RemoveWeapon(pWeapon);
pWeapon.SetModelIndex(pWeapon.GetWeaponModelIndex(.bViewModel = false));
pWeapon.SetSpawnFlags(pWeapon.GetSpawnFlags() | SF_ITEM_NORESPAWN);
pWeapon.SetEffects(pWeapon.GetEffects() | EF_NODRAW | EF_NOSHADOW);
pWeapon.AddEffects(EF_NODRAW | EF_NOSHADOW);
}
pPlayer.RemoveAllItems();
}
Expand Down
2 changes: 1 addition & 1 deletion scripting/srccoop_addon_revive.sp
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ public Action Timer_SetRagdollEffects(Handle timer, CBasePlayer pPlayer)
if (pRagdoll.IsValid())
{
if (g_pConVarRagdollBlink.BoolValue)
pRagdoll.SetEffects(pRagdoll.GetEffects() | EF_ITEM_BLINK);
pRagdoll.AddEffects(EF_ITEM_BLINK);

if (g_pConVarRagdollParticle.BoolValue && Conf.RAGDOLL_PARTICLE[0] != EOS)
{
Expand Down

0 comments on commit f18fb1a

Please sign in to comment.