@@ -105,7 +105,7 @@ public int Native_GetEffectAttachment(Handle hPlugin, int iNumParams)
105
105
{
106
106
int iEffect = GetNativeCell (1 );
107
107
108
- return EntRefToEntIndex ( g_iEffectEntity [iEffect ]) ;
108
+ return g_iEffectEntity [iEffect ];
109
109
}
110
110
111
111
public int Native_GetEffectType (Handle hPlugin , int iNumParams )
@@ -136,9 +136,9 @@ public int Native_GetEffectTypeFromName(Handle hPlugin, int iNumParams)
136
136
} else if (StrContains (" smokestack" , sEffectName , false ) != - 1 )
137
137
{
138
138
return view_as <int >(EFFECT_SMOKESTACK );
139
- /* } else if (StrContains("spotlight", sEffectName, false) != -1)
139
+ } else if (StrContains (" spotlight" , sEffectName , false ) != - 1 )
140
140
{
141
- return view_as<int>(EFFECT_SPOTLIGHT);*/
141
+ return view_as <int >(EFFECT_SPOTLIGHT );
142
142
} else if (StrContains (" steam" , sEffectName , false ) != - 1 )
143
143
{
144
144
return view_as <int >(EFFECT_STEAM );
@@ -175,10 +175,10 @@ public int Native_GetEffectTypeName(Handle hPlugin, int iNumParams)
175
175
{
176
176
Format (sEffectName , sizeof (sEffectName ), " smokestack" );
177
177
}
178
- /* case EFFECT_SPOTLIGHT:
178
+ case EFFECT_SPOTLIGHT :
179
179
{
180
180
Format (sEffectName , sizeof (sEffectName ), " spotlight" );
181
- }*/
181
+ }
182
182
case EFFECT_STEAM :
183
183
{
184
184
Format (sEffectName , sizeof (sEffectName ), " steam" );
@@ -215,7 +215,7 @@ public int Native_SetEffectAttachment(Handle hPlugin, int iNumParams)
215
215
{
216
216
int iAttachment = GetNativeCell (2 ), iEffect = GetNativeCell (1 );
217
217
218
- g_iEffectEntity [iEffect ] = EntIndexToEntRef ( iAttachment ) ;
218
+ g_iEffectEntity [iEffect ] = iAttachment ;
219
219
220
220
return true ;
221
221
}
@@ -475,7 +475,7 @@ public int Native_SpawnEffect(Handle hPlugin, int iNumParams)
475
475
476
476
return iBase ;
477
477
}
478
- /* case EFFECT_SPOTLIGHT:
478
+ case EFFECT_SPOTLIGHT :
479
479
{
480
480
iEffect = CreateEntityByName (" point_spotlight" );
481
481
@@ -499,10 +499,7 @@ public int Native_SpawnEffect(Handle hPlugin, int iNumParams)
499
499
500
500
Cel_SetEffectAttachment (iBase , iEffect );
501
501
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 ]);
506
503
507
504
Cel_SetOwner (iClient , Cel_GetEffectAttachment (iBase ));
508
505
@@ -515,7 +512,7 @@ public int Native_SpawnEffect(Handle hPlugin, int iNumParams)
515
512
AcceptEntityInput (Cel_GetEffectAttachment (iBase ), Cel_IsEffectActive (iBase ) ? " LightOff" : " LightOn" );
516
513
517
514
return iBase ;
518
- }*/
515
+ }
519
516
case EFFECT_STEAM :
520
517
{
521
518
iEffect = CreateEntityByName (" env_steam" );
0 commit comments