public static void PlayFXOnTag(uint Entity, string FX, string Tag)
{//0x001C0C64 - void G_AddEvent(gentity_s *ent, int event, unsigned int eventParm)
RPC.Call(0x001C0C64, Entity, 87, (uint)G_FindConfigstringIndex(G_EfffectIndex(FX).ToString("000") + Tag));
}
public static void StopFXOnTag(uint Entity, string FX, string Tag)
{//0x001C0C64 - void G_AddEvent(gentity_s *ent, int event, unsigned int eventParm)
RPC.Call(0x001C0C64, Entity, 88, G_FindConfigstringIndex(G_EfffectIndex(FX).ToString("000") + Tag));
}
public static int G_FindConfigstringIndex(string Name)
{//0x001BE550 - int G_FindConfigstringIndex(const char name, ConfigString start, const unsigned int max, const int create,
const char errormsg)
return RPC.Call(0x001BE550, Name, 0xAA4, 0x100, 1, 0);
}
public static uint G_EfffectIndex(string Name)
{//0x001BEB6C - int G_EffectIndex(char const *name)
return (uint)RPC.Call(0x001BEB6C, Name);
}
public static void Zombie_Eyes(uint Entity, bool State = true)
{
if (State)
{
PlayFXONTag(Entity, "misc/aircraft_light_wingtip_red", "j_eyeball_ri");
PlayFXONTag(Entity, "misc/aircraft_light_wingtip_red", "j_eyeball_le");
}
else
{
StopFXONTag(Entity, "misc/aircraft_light_wingtip_red", "j_eyeball_ri");
StopFXONTag(Entity, "misc/aircraft_light_wingtip_red", "j_eyeball_le");
}
}
public static void Rocket_Boots(uint Entity, bool State = true)
{
if (State)
{
PlayFXONTag(Entity, "smoke/smoke_geotrail_rpg", "j_ankle_le");
PlayFXONTag(Entity, "smoke/smoke_geotrail_rpg", "j_ankle_ri");
}
else
{
StopFXONTag(Entity, "smoke/smoke_geotrail_rpg", "j_ankle_le");
StopFXONTag(Entity, "smoke/smoke_geotrail_rpg", "j_ankle_ri");
}
}
public static void Human_Torch(uint Entity, bool State = true)
{
if (State)
{
PlayFXONTag(Entity, "fire/firelp_med_pm_nodistort", "j_mainroot");
}
else
{
StopFXONTag(Entity, "fire/firelp_med_pm_nodistort", "j_mainroot");
}
}
public static void LittleBird_FX(uint Entity, bool State = true)
{
if (State)
{
PlayFXOnTag(Entity, "misc/aircraft_light_wingtip_red", "tag_light_nose");
PlayFXOnTag(Entity, "misc/aircraft_light_white_blink", "tag_light_tail2");
PlayFXOnTag(Entity, "misc/aircraft_light_red_blink", "tag_light_belly");
PlayFXOnTag(Entity, "misc/aircraft_light_white_blink", "tag_light_tail1");
}
else
{
StopFXOnTag(Entity, "misc/aircraft_light_wingtip_red", "tag_light_nose");
StopFXOnTag(Entity, "misc/aircraft_light_white_blink", "tag_light_tail2");
StopFXOnTag(Entity, "misc/aircraft_light_red_blink", "tag_light_belly");
StopFXOnTag(Entity, "misc/aircraft_light_white_blink", "tag_light_tail1");
}
}
public static void Harrier_FX(uint Entity, bool State = true)
{
if (State)
{
PlayFXOnTag(Entity, "fire/jet_afterburner", "tag_engine_right");
PlayFXOnTag(Entity, "fire/jet_afterburner", "tag_engine_left");
PlayFXOnTag(Entity, "fire/jet_afterburner", "tag_engine_right2");
PlayFXOnTag(Entity, "fire/jet_afterburner", "tag_engine_left2");
PlayFXOnTag(Entity, "misc/aircraft_light_wingtip_red", "tag_left_wingtip");
PlayFXOnTag(Entity, "misc/aircraft_light_wingtip_green", "tag_right_wingtip");
PlayFXOnTag(Entity, "misc/aircraft_light_red_blink", "tag_light_belly");
PlayFXOnTag(Entity, "misc/aircraft_light_white_blink", "tag_light_tail");
PlayFXOnTag(Entity, "smoke/jet_contrail", "tag_right_wingtip");
PlayFXOnTag(Entity, "smoke/jet_contrail", "tag_left_wingtip");
}
else
{
StopFXOnTag(Entity, "fire/jet_afterburner", "tag_engine_right");
StopFXOnTag(Entity, "fire/jet_afterburner", "tag_engine_left");
StopFXOnTag(Entity, "fire/jet_afterburner", "tag_engine_right2");
StopFXOnTag(Entity, "fire/jet_afterburner", "tag_engine_left2");
StopFXOnTag(Entity, "misc/aircraft_light_red", "tag_left_wingtip");
StopFXOnTag(Entity, "misc/aircraft_light_green", "tag_right_wingtip");
StopFXOnTag(Entity, "misc/aircraft_light_red_blink", "tag_light_belly");
StopFXOnTag(Entity, "misc/aircraft_light_white_blink", "tag_light_tail");
StopFXOnTag(Entity, "smoke/jet_contrail", "tag_right_wingtip");
StopFXOnTag(Entity, "smoke/jet_contrail", "tag_left_wingtip");
}
}
public static void PlayFXOnTag(uint Entity, string FX, string Tag)
{//0x001C0C64 - void G_AddEvent(gentity_s *ent, int event, unsigned int eventParm)
RPC.Call(0x001C0C64, Entity, 87, (uint)G_FindConfigstringIndex(G_EfffectIndex(FX).ToString("000") + Tag));
}
public static void StopFXOnTag(uint Entity, string FX, string Tag)
{//0x001C0C64 - void G_AddEvent(gentity_s *ent, int event, unsigned int eventParm)
RPC.Call(0x001C0C64, Entity, 88, G_FindConfigstringIndex(G_EfffectIndex(FX).ToString("000") + Tag));
}
public static int G_FindConfigstringIndex(string Name)
{//0x001BE550 - int G_FindConfigstringIndex(const char name, ConfigString start, const unsigned int max, const int create,
const char errormsg)
return RPC.Call(0x001BE550, Name, 0xAA4, 0x100, 1, 0);
}
public static uint G_EfffectIndex(string Name)
{//0x001BEB6C - int G_EffectIndex(char const *name)
return (uint)RPC.Call(0x001BEB6C, Name);
}
public static void Zombie_Eyes(int client, bool State = true)
{
if (State)
{
PlayFXONTag(client, "misc/aircraft_light_wingtip_red", "j_eyeball_ri");
PlayFXONTag(client, "misc/aircraft_light_wingtip_red", "j_eyeball_le");
}
else
{
StopFXONTag(client, "misc/aircraft_light_wingtip_red", "j_eyeball_ri");
StopFXONTag(client, "misc/aircraft_light_wingtip_red", "j_eyeball_le");
}
}
public static void Rocket_Boots(int client, bool State = true)
{
if (State)
{
PlayFXONTag(client, "smoke/smoke_geotrail_rpg", "j_ankle_le");
PlayFXONTag(client, "smoke/smoke_geotrail_rpg", "j_ankle_ri");
}
else
{
StopFXONTag(client, "smoke/smoke_geotrail_rpg", "j_ankle_le");
StopFXONTag(client, "smoke/smoke_geotrail_rpg", "j_ankle_ri");
}
}
public static void Human_Torch(int client, bool State = true)
{
if (State)
{
PlayFXONTag(client, "fire/firelp_med_pm_nodistort", "j_mainroot");
}
else
{
StopFXONTag(client, "fire/firelp_med_pm_nodistort", "j_mainroot");
}
}
public static void PlayFXOnTag(uint Entity, string FX, string Tag)
{//0x001C0C64 - void G_AddEvent(gentity_s *ent, int event, unsigned int eventParm)
RPC.Call(0x001C0C64, Entity, 87, (uint)G_FindConfigstringIndex(G_EfffectIndex(FX).ToString("000") + Tag));
}
public static void StopFXOnTag(uint Entity, string FX, string Tag)
{//0x001C0C64 - void G_AddEvent(gentity_s *ent, int event, unsigned int eventParm)
RPC.Call(0x001C0C64, Entity, 88, G_FindConfigstringIndex(G_EfffectIndex(FX).ToString("000") + Tag));
}
public static int G_FindConfigstringIndex(string Name)
{//0x001BE550 - int G_FindConfigstringIndex(const char name, ConfigString start, const unsigned int max, const int create,
const char errormsg)
return RPC.Call(0x001BE550, Name, 0xAA4, 0x100, 1, 0);
}
public static uint G_EfffectIndex(string Name)
{//0x001BEB6C - int G_EffectIndex(char const *name)
return (uint)RPC.Call(0x001BEB6C, Name);
}
public static void Zombie_Eyes(int client, bool State = true)
{
if (State)
{
PlayFXONTag(client, "misc/aircraft_light_wingtip_red", "j_eyeball_ri");
PlayFXONTag(client, "misc/aircraft_light_wingtip_red", "j_eyeball_le");
}
else
{
StopFXONTag(client, "misc/aircraft_light_wingtip_red", "j_eyeball_ri");
StopFXONTag(client, "misc/aircraft_light_wingtip_red", "j_eyeball_le");
}
}
public static void Rocket_Boots(int client, bool State = true)
{
if (State)
{
PlayFXONTag(client, "smoke/smoke_geotrail_rpg", "j_ankle_le");
PlayFXONTag(client, "smoke/smoke_geotrail_rpg", "j_ankle_ri");
}
else
{
StopFXONTag(client, "smoke/smoke_geotrail_rpg", "j_ankle_le");
StopFXONTag(client, "smoke/smoke_geotrail_rpg", "j_ankle_ri");
}
}
public static void Human_Torch(int client, bool State = true)
{
if (State)
{
PlayFXONTag(client, "fire/firelp_med_pm_nodistort", "j_mainroot");
}
else
{
StopFXONTag(client, "fire/firelp_med_pm_nodistort", "j_mainroot");
}
}
Copyright © 2025, NextGenUpdate.
All Rights Reserved.