Post: C# MW3 binding tags, zombie eyes, rocketboots, human torch
10-05-2017, 03:58 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); Hi all,
MW3 1.24 Binding Tags "Zombie eyes".
Credits to my buddy xCSBKx


What is a Tag? A tag is a "dynamic" reference point.
The tags are used for binding Models, Sound and FX.
For example: the gun you hold in your hand is binded to "tag_weapon_right",
when you shoot your gun the muzzle fx is binded to "tag_flash" and so on.

Main function fx tag binding:
    
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);
}


How to call Function PlayFXOnTag on Entity Player
Example 1: Zombie Eyes
You must login or register to view this content.
    
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");
}
}

Example 2: Rocket_Boots
    
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");
}
}


Example 3: Human Torch
    
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");
}
}


How to call Function PlayFXOnTag on Entity Vehicle
Example 1: Adding fx to vehicle Littlebird
    
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");
}
}


Example 2: Adding fx to vehicle Harrier
    
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");
}
}

Have fun
Last edited by mrdarkblue ; 10-08-2017 at 08:27 AM. Reason: added credits

The following 7 users say thank you to mrdarkblue for this useful post:

01cedricv2, EnzoMezzomo, Father Luckeyy, Hydrogen, kiwi_modz, lucasaf01, Swaqq
10-06-2017, 01:39 PM #2
01cedricv2
NGU Elite Lifetime Mermber
Originally posted by mrdarkblue View Post
Hi all,
MW3 1.24 Binding Tags "Zombie eyes".
Credits to my buddy xCSBKx


What is a Tag? A tag is a "dynamic" reference point.
The tags are used for binding Models, Sound and FX.
For example: the gun you hold in your hand is binded to "tag_weapon_right",
when you shoot your gun the muzzle fx is binded to "tag_flash" and so on.

Main function fx tag binding:
    
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);
}


How to call Function PlayFXOnTag on Player
Example 1: Zombie Eyes
    
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");
}
}

Example 2: Rocket_Boots
    
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");
}
}

Example 3: Human Torch
    
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");
}
}


Have fun


No way ! Are you back? Gasp

The following user thanked 01cedricv2 for this useful post:

mrdarkblue
10-06-2017, 02:02 PM #3
Father Luckeyy
Retired - Lead Content Manager
Originally posted by mrdarkblue View Post
Hi all,
MW3 1.24 Binding Tags "Zombie eyes".
Credits to my buddy xCSBKx


What is a Tag? A tag is a "dynamic" reference point.
The tags are used for binding Models, Sound and FX.
For example: the gun you hold in your hand is binded to "tag_weapon_right",
when you shoot your gun the muzzle fx is binded to "tag_flash" and so on.

Main function fx tag binding:
    
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);
}


How to call Function PlayFXOnTag on Player
Example 1: Zombie Eyes
    
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");
}
}

Example 2: Rocket_Boots
    
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");
}
}

Example 3: Human Torch
    
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");
}
}


Have fun


Nice posts bud.

The following user thanked Father Luckeyy for this useful post:

mrdarkblue
10-06-2017, 03:27 PM #4
Originally posted by 01cedricv2 View Post
No way ! Are you back? Gasp


Kind of was cleaning my computer and found a lot of unreleased functions. Think it's time to share 🤘🏻

The following user thanked mrdarkblue for this useful post:

01cedricv2

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo