Advertisement
MrDarkblue

MW3 1.24 C# Binding Tags "Zombie eyes"

Sep 28th, 2017
391
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 7.20 KB | None
  1. MW3 1.24 Binding Tags "Zombie eyes".
  2. Credits to my buddy xCSBKx
  3. ------------------------------------------------------------------------------
  4. Whats's a Tag? A tag is a "dynamic" reference point.
  5. The tags are used for binding Models, Sound and FX.
  6. For example: the gun you hold in your hand is binded to "tag_weapon_right",
  7. when you shoot your gun the muzzle fx is binded to "tag_flash" and so on.
  8. ------------------------------------------------------------------------------
  9. //// C# Main Function FX tag binding:
  10. public static void PlayFXOnTag(uint Entity, string FX, string Tag)
  11.        {//0x001C0C64 - void G_AddEvent(gentity_s *ent, int event, unsigned int eventParm)
  12.            RPC.Call(0x001C0C64, Entity, 87, (uint)G_FindConfigstringIndex(G_EfffectIndex(FX).ToString("000") + Tag));
  13.        }
  14. public static void StopFXOnTag(uint Entity, string FX, string Tag)
  15.        {//0x001C0C64 - void G_AddEvent(gentity_s *ent, int event, unsigned int eventParm)
  16.            RPC.Call(0x001C0C64, Entity, 88, G_FindConfigstringIndex(G_EfffectIndex(FX).ToString("000") + Tag));
  17.        }
  18. public static int  G_FindConfigstringIndex(string Name)
  19.         {//0x001BE550 - int  G_FindConfigstringIndex(const char name, ConfigString start, const unsigned int max, const int create,        
  20.            const char errormsg)
  21.            return RPC.Call(0x001BE550, Name, 0xAA4, 0x100, 1, 0);
  22.        }
  23. public static uint G_EfffectIndex(string Name)
  24.        {//0x001BEB6C - int  G_EffectIndex(char const *name)
  25.            return (uint)RPC.Call(0x001BEB6C, Name);
  26.        }
  27.  
  28. ////  How to call Function PlayFXOnTag on Player
  29. //  Example 1: Zombie Eyes
  30. public static void Zombie_Eyes(int client, bool State = true)
  31. {
  32.    if (State)
  33.    {
  34.      PlayFXONTag(client, "misc/aircraft_light_wingtip_red", "j_eyeball_ri");
  35.      PlayFXONTag(client, "misc/aircraft_light_wingtip_red", "j_eyeball_le");
  36.    }
  37.    else
  38.    {
  39.      StopFXONTag(client, "misc/aircraft_light_wingtip_red", "j_eyeball_ri");
  40.      StopFXONTag(client, "misc/aircraft_light_wingtip_red", "j_eyeball_le");
  41.    }
  42. }
  43.  
  44. //  Example 2: Rocket_Boots
  45. public static void Rocket_Boots(int client, bool State = true)
  46. {
  47.    if (State)
  48.    {
  49.      PlayFXONTag(client, "smoke/smoke_geotrail_rpg", "j_ankle_le");
  50.      PlayFXONTag(client, "smoke/smoke_geotrail_rpg", "j_ankle_ri");
  51.    }
  52.    else
  53.    {
  54.      StopFXONTag(client, "smoke/smoke_geotrail_rpg", "j_ankle_le");
  55.      StopFXONTag(client, "smoke/smoke_geotrail_rpg", "j_ankle_ri");
  56.    }
  57. }
  58.  
  59. //  Example 3: Human Torch
  60. public static void Human_Torch(int client, bool State = true)
  61. {
  62.    if (State)
  63.    {
  64.      PlayFXONTag(client, "fire/firelp_med_pm_nodistort", "j_mainroot");
  65.    }
  66.    else
  67.    {
  68.      StopFXONTag(client, "fire/firelp_med_pm_nodistort", "j_mainroot");
  69.    }
  70. }
  71.  
  72. List of all tags:
  73. active
  74. j_spine4
  75. j_helmet
  76. j_head
  77. all
  78. allies
  79. angles
  80. auto_ai
  81. auto_nonai
  82. axis
  83. back
  84. bad_guys
  85. bad_path
  86. begin_firing
  87. begin_firing_left
  88. cancel_location
  89. chest
  90. confirm_location
  91. crouch
  92. current
  93. damage
  94. dead
  95. death
  96. deathshield
  97. detonate
  98. direct
  99. dlight
  100. done
  101. empty
  102. empty_offhand
  103. offhand_end
  104. end_firing
  105. end_firing_left
  106. entity
  107. explode
  108. failed
  109. first_person
  110. forward
  111. fraction
  112. free
  113. goal
  114. goal_changed
  115. goal_yaw
  116. grenade
  117. grenade danger
  118. grenade_fire
  119. glass_destroyed
  120. missile_fire
  121. grenade_pullback
  122. missile_stuck
  123. info_notnull
  124. invisible
  125. key1
  126. key2
  127. killanimscript
  128. left
  129. light
  130. manual
  131. manual_ai
  132. movedone
  133. none
  134. normal
  135. origin
  136. other
  137. player
  138. physics_finished
  139. position
  140. projectile_impact
  141. predicted_projectile_impact
  142. prone
  143. right
  144. reload
  145. reload_start
  146. result
  147. reverse
  148. rocket
  149. rotatedone
  150. script_brushmodel
  151. script_model
  152. script_origin
  153. sentry
  154. sentry_offline
  155. snd_enveffectsprio_level
  156. snd_enveffectsprio_shellshock
  157. snd_channelvolprio_holdbreath
  158. snd_channelvolprio_pain
  159. snd_channelvolprio_shellshock
  160. spawned
  161. stand
  162. suppression
  163. suppression_end
  164. surfacetype
  165. tag_aim
  166. tag_aim_animated
  167. tag_aim_pivot
  168. tag_brass
  169. tag_butt
  170. tag_clip
  171. tag_eye
  172. tag_flash
  173. tag_flash_silenced
  174. tag_flash_11
  175. tag_flash_2
  176. tag_flash_22
  177. tag_flash_3
  178. tag_fx
  179. tag_inhand
  180. tag_knife_fx
  181. tag_laser
  182. tag_origin
  183. tag_weapon
  184. tag_player
  185. tag_camera
  186. tag_weapon_chest
  187. tag_weapon_left
  188. tag_weapon_right
  189. tag_stowed_back
  190. tag_shield_back
  191. tag_stowed_hip_rear
  192. tag_gasmask
  193. tag_gasmask2
  194. tag_sync
  195. tag_screen_tl
  196. tag_screen_bl
  197. tag_screen_br
  198. tag_motion_tracker_fx
  199. tag_reticle_acog
  200. tag_reticle_red_dot
  201. tag_reticle_tavor_scope
  202. tag_reticle_thermal_scope
  203. tag_eotech_reticle
  204. tag_magnifier_eotech_reticle
  205. target_script_trigger
  206. third_person
  207. top
  208. touch
  209. trigger
  210. trigger_use
  211. trigger_use_touch
  212. trigger_damage
  213. truck_cam
  214. weapon_change
  215. weapon_fired
  216. weapon_switch_started
  217. weapon_taken
  218. weapon_dropped
  219. worldspawn
  220. flashbang
  221. flash
  222. smoke
  223. frag
  224. throwingknife
  225. night_vision_on
  226. night_vision_off
  227. MOD_UNKNOWN
  228. MOD_PISTOL_BULLET
  229. MOD_RIFLE_BULLET
  230. MOD_EXPLOSIVE_BULLET
  231. MOD_GRENADE
  232. MOD_GRENADE_SPLASH
  233. MOD_PROJECTILE
  234. MOD_PROJECTILE_SPLASH
  235. MOD_MELEE
  236. MOD_HEAD_SHOT
  237. MOD_CRUSH
  238. MOD_FALLING
  239. MOD_SUICIDE
  240. MOD_TRIGGER_HURT
  241. MOD_EXPLOSIVE
  242. MOD_IMPACT
  243. script_vehicle
  244. script_vehicle_collision
  245. script_vehicle_collmap
  246. script_vehicle_corpse
  247. turret_deactivate
  248. turret_fire
  249. turret_no_vis
  250. turret_not_on_target
  251. turret_on_target
  252. turret_on_vistarget
  253. turret_pitch_clamped
  254. turret_rotate_stopped
  255. turret_yaw_clamped
  256. turretstatechange
  257. turretownerchange
  258. reached_end_node
  259. reached_wait_node
  260. reached_wait_speed
  261. near_goal
  262. tag_wheel_front_left
  263. tag_wheel_front_right
  264. tag_wheel_back_left
  265. tag_wheel_back_right
  266. tag_wheel_middle_left
  267. tag_wheel_middle_right
  268. tag_detach
  269. tag_popout
  270. tag_body
  271. tag_turret
  272. tag_turret_base
  273. tag_barrel
  274. front_left
  275. front_right
  276. back_left
  277. back_right
  278. middle_left
  279. middle_right
  280. veh_boatbounce
  281. veh_collision
  282. veh_predictedcollision
  283. veh_leftground
  284. veh_landed
  285. veh_jolt
  286. vehicle_mount
  287. vehicle_dismount
  288. constrained
  289. follow
  290. j_head
  291. j_neck
  292. thermal
  293. primary
  294. offhand
  295. item
  296. altmode
  297. exclusive
  298. scavenger
  299. primaryoffhand
  300. secondaryoffhand
  301. actionslot1
  302. actionslot2
  303. actionslot3
  304. actionslot4
  305. actionslot5
  306. actionslot6
  307. actionslot7
  308. back_low
  309. back_mid
  310. back_up
  311. pelvis
  312. count
  313. auto_change
  314. begin
  315. call_vote
  316. freelook
  317. intermission
  318. j_mainroot
  319. manual_change
  320. menuresponse
  321. pistol
  322. plane_waypoint
  323. playing
  324. spectator
  325. spectating_cycle
  326. vote
  327. sprint_begin
  328. sprint_end
  329. normal_radar
  330. fast_radar
  331. tag_engine_left
  332. tag_engine_right
  333. slowmo_active
  334. slowmo_passive
  335. riotshield_damaged
  336. tag_sight_on
  337. tag_sight_off
  338. tag_rail
  339. tag_foregrip
  340. tag_bipods
  341. tag_tip
  342. tag_reticle_hamr
  343. tag_reticle_on
  344. tag_reticle_reflex
  345. color_blind_toggled
  346. name
  347. headicon
  348. headiconteam
  349. maxhealth
  350. sessionteam
  351. sessionstate
  352. score
  353. deaths
  354. statusicon
  355. kills
  356. assists
  357. hasradar
  358. isradarblocked
  359. radarstrength
  360. radarshowenemydirection
  361. radarmode
  362. forcespectatorclient
  363. killcamentity
  364. killcamentitylookat
  365. archivetime
  366. psoffsettime
  367. pers
  368. x
  369. y
  370. z
  371. fontscale
  372. font
  373. alignx
  374. aligny
  375. horzalign
  376. vertalign
  377. color
  378. alpha
  379. label
  380. sort
  381. foreground
  382. lowresbackground
  383. hidewhendead
  384. hidewheninmenu
  385. splatter
  386. glowcolor
  387. glowalpha
  388. archived
  389. hidein3rdperson
  390. hidewhenindemo
  391. code_classname
  392. classname
  393. model
  394. spawnflags
  395. target
  396. targetname
  397. health
  398. dmg
  399. birthtime
  400. script_linkname
  401. slidevelocity
  402. script_noteworthy
  403. speed
  404. lookahead
  405. veh_speed
  406. veh_pathspeed
  407. veh_transmission
  408. veh_pathdir
  409. veh_pathtype
  410. veh_topspeed
  411. veh_brake
  412. veh_throttle
Advertisement
RAW Paste Data Copied
Advertisement