Left 4 Dead 2

Left 4 Dead 2

Not enough ratings
Customizable Hitmark (Vscript)
   
Award
Favorite
Favorited
Unfavorite
Game Content: Scripts, Miscellaneous
Game Modes: Single Player, Co-op
File Size
Posted
13.555 KB
4 Feb @ 8:42pm
1 Change Note ( view )

Subscribe to download
Customizable Hitmark (Vscript)

In 1 collection by kurochama
Useful "Side-Dish" Mods (Especially for Bots)
47 items
Description
This one was inspired from my previous mod, "Stumble Shot". I made a custom hitmark by coincidence there when I simply just wanted to add effect on the "Stumble Shot" when hit. As it may look cool as a standalone mod, so I made this one.

This mod allows you to freely set your own hitmark effect. About how to set the hitmark correctly, we'll talk about that later on mechanisms below.


List of features available on "customizable hitmark.txt" cfg file:
  1. custom_hitmark_user: Which type of survivor can use custom hitmark (bots/ players/ all).

  2. custom_hitmark_effect: What effect will be triggered. The default effect is "sline_sparks" (sparks when a bullet successfully hits a zombie). The setting of this one is in string/ text.


Mechanisms of how it works & some guides:
  • The custom hitmark is triggered the moment a bullet/ pellet (shotgun) hits a zombie.

  • The custom hitmark effect can be freely set based on a particle name. List of particle names can be seen here: https://developer.valvesoftware.com/wiki/Talk:List_of_L4D2_Particles.

  • The particle name must be correct. Otherwise, it won't work. Examples:
    custom_hitmark_effect = gas_explosion_initialburst_blast <- correct
    custom_hitmark_effect = "gas_explosion_initialburst_blast" <- incorrect
    custom_hitmark_effect = gas_explosion <- incorrect, incomplete particle name

  • Not all particle effects on the link can work, as some of them requires different conditions & longer duration (on this mod I set the safest duration in 0.05 second so it will keep the map clean from leftover particle effects. It's faster than smg fire rate). So, you can test the effects one by one. Some effects that have been checked & can work:
    • boomer_explode
    • charger_wall_impact
    • charger_wall_impact_b
    • charger_wall_impact_debris
    • electrical_arc_01
    • fire_large_01
    • fire_medium_01
    • fire_small_01
    • fire_jet_01
    • firework_crate_explosion_01
    • firework_crate_shower_01b
    • fireworks_01
    • fireworks_sparkshower_01
    • gas_explosion_initialburst_blast
    • gas_explosion_main_fallback
    • gen_rockblast_posZ
    • ibeam_break
    • missile_hit1 (this effect is too crazy. It's not recommended to use this)
    • molotov_explosion_child_glow
    • sline_sparks
    • sparks_generic_random
    • st_elmos_fire
    • tank_rock_throw_impact
    • weapon_grenadelauncher_backup


So, this mod becomes one of proofs that adding hitmarks on L4D2 is actually possible. Hopefully this will inspire other modders to create more hitmark mods.


NOTES:
  • A video preview will be added later.
1 Comments
Unsants 5 Feb @ 10:46am 
:steamthumbsup: