Left 4 Dead 2

Left 4 Dead 2

Bots 4 Survival
GS Mod In Play 23. apr. 2022 kl. 6:29
Infected counter
I see in the video demo that there is a counter of infected eliminated, please tell me how I do to have this mod that I'm looking for so much.
< >
Viser 1-2 af 2 kommentarer
3mst1  [udvikler] 24. apr. 2022 kl. 3:14 
Hi!

The HUD element was made with vscripting and it's part of this mutation, not a separate mod. Vscripts are fine as long as you are working on mutations or maps because they can have dedicated script files. However, if you modify the default script files you are going to have conflicts with all other mods using the same method (don't do it!).

L4D2 scripting language is Squirrel. Learning that is a rocky road if you don't have prior experience of other languages. If you do then it should be quite easy to pick up. Here are the steps if you really want to go for it:

1. Create the HUD element:
https://developer.valvesoftware.com/wiki/L4D2_EMS/Appendix:_HUD

2. Create table where to store kill counts:
https://developer.valvesoftware.com/wiki/Squirrel#Tables

3. Update the data table and HUD every time an infected is killed. This one should be connected to "OnGameEvent_zombie_death" event function. Basically you just validate that zombie death was caused by a survivor, increment the value in the data table and call a function which updates the HUD.
GS Mod In Play 24. apr. 2022 kl. 5:44 
An infected counter mod for normal campaign and realism game modes would be very nice and with all players status on screen, something like this does and encourages players to improve their performances, if possible do so because the community appreciates it.
< >
Viser 1-2 af 2 kommentarer
Per side: 1530 50