Skip to content

Commit 16dff85

Browse files
committed
fixed color bs
1 parent 2316feb commit 16dff85

File tree

11 files changed

+104
-47
lines changed

11 files changed

+104
-47
lines changed
-9 Bytes
Binary file not shown.
-9 Bytes
Binary file not shown.
-6 Bytes
Binary file not shown.
278 Bytes
Binary file not shown.
1.93 KB
Binary file not shown.
-9 Bytes
Binary file not shown.
-7 Bytes
Binary file not shown.
-10 Bytes
Binary file not shown.

addons/sourcemod/plugins/celmod.smx

-4 Bytes
Binary file not shown.

addons/sourcemod/scripting/celmod-effects.sp

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public int Native_GetEffectAttachment(Handle hPlugin, int iNumParams)
105105
{
106106
int iEffect = GetNativeCell(1);
107107

108-
return EntRefToEntIndex(g_iEffectEntity[iEffect]);
108+
return g_iEffectEntity[iEffect];
109109
}
110110

111111
public int Native_GetEffectType(Handle hPlugin, int iNumParams)
@@ -136,9 +136,9 @@ public int Native_GetEffectTypeFromName(Handle hPlugin, int iNumParams)
136136
} else if (StrContains("smokestack", sEffectName, false) != -1)
137137
{
138138
return view_as<int>(EFFECT_SMOKESTACK);
139-
/*} else if (StrContains("spotlight", sEffectName, false) != -1)
139+
} else if (StrContains("spotlight", sEffectName, false) != -1)
140140
{
141-
return view_as<int>(EFFECT_SPOTLIGHT);*/
141+
return view_as<int>(EFFECT_SPOTLIGHT);
142142
} else if (StrContains("steam", sEffectName, false) != -1)
143143
{
144144
return view_as<int>(EFFECT_STEAM);
@@ -175,10 +175,10 @@ public int Native_GetEffectTypeName(Handle hPlugin, int iNumParams)
175175
{
176176
Format(sEffectName, sizeof(sEffectName), "smokestack");
177177
}
178-
/*case EFFECT_SPOTLIGHT:
178+
case EFFECT_SPOTLIGHT:
179179
{
180180
Format(sEffectName, sizeof(sEffectName), "spotlight");
181-
}*/
181+
}
182182
case EFFECT_STEAM:
183183
{
184184
Format(sEffectName, sizeof(sEffectName), "steam");
@@ -215,7 +215,7 @@ public int Native_SetEffectAttachment(Handle hPlugin, int iNumParams)
215215
{
216216
int iAttachment = GetNativeCell(2), iEffect = GetNativeCell(1);
217217

218-
g_iEffectEntity[iEffect] = EntIndexToEntRef(iAttachment);
218+
g_iEffectEntity[iEffect] = iAttachment;
219219

220220
return true;
221221
}
@@ -475,7 +475,7 @@ public int Native_SpawnEffect(Handle hPlugin, int iNumParams)
475475

476476
return iBase;
477477
}
478-
/*case EFFECT_SPOTLIGHT:
478+
case EFFECT_SPOTLIGHT:
479479
{
480480
iEffect = CreateEntityByName("point_spotlight");
481481

@@ -499,10 +499,7 @@ public int Native_SpawnEffect(Handle hPlugin, int iNumParams)
499499

500500
Cel_SetEffectAttachment(iBase, iEffect);
501501

502-
Cel_SetColor(Cel_GetEffectAttachment(iBase), iColor[0], iColor[1], iColor[2], iColor[3]);
503-
504-
Cel_SetRainbow(Cel_GetEffectAttachment(iBase), false);
505-
Cel_SetColorFade(Cel_GetEffectAttachment(iBase), false, 0, 0, 0, 0, 0, 0);
502+
Cel_SetColor(iEffect, iColor[0], iColor[1], iColor[2], iColor[3]);
506503

507504
Cel_SetOwner(iClient, Cel_GetEffectAttachment(iBase));
508505

@@ -515,7 +512,7 @@ public int Native_SpawnEffect(Handle hPlugin, int iNumParams)
515512
AcceptEntityInput(Cel_GetEffectAttachment(iBase), Cel_IsEffectActive(iBase) ? "LightOff" : "LightOn");
516513

517514
return iBase;
518-
}*/
515+
}
519516
case EFFECT_STEAM:
520517
{
521518
iEffect = CreateEntityByName("env_steam");

0 commit comments

Comments
 (0)