Comments
bilibili✈桐风谷早苗 13 Nov, 2025 @ 3:23am 
ayaya:balloonfish:
.d1234 8 Nov, 2025 @ 4:12am 
Yes, thank you. Problem in my windows 10. Just downloaded older version of s2viewer
Rectus 8 Nov, 2025 @ 3:15am 
I think it was updated to .NET 9 or 10. You might need to download the runtimes for those, or update Windows.
.d1234 8 Nov, 2025 @ 1:31am 
I have the same problem as you solved here https://v1.steam.hlxgame.cc/app/250820/discussions/7/4362373511164069561/ but open Source2Viewer.exe by cmd is also not working. Can you help me to find a solution?
NET Desktop Runtime 8.0.3 is installed
gni.794 30 Oct, 2025 @ 10:02am 
🐰
Meem Crates 16 May, 2025 @ 8:45pm 
:aya:
KASHI 7 May, 2025 @ 7:03am 
ayaya
Rectus 16 Apr, 2025 @ 3:14pm 
You would have to iterate though the players. I haven't used VSLib in a long time, so I can't remember exactly how it's used. It might be better to ask about it on the L4D2 discussion forums.
golf prime enjoyer 16 Apr, 2025 @ 3:09pm 
sorry, i'm not good at programming, i need to do this or what ?
if(Player("!nick").isBot())
{
Rectus 16 Apr, 2025 @ 7:42am 
VSLib has a Player.IsBot() method.
golf prime enjoyer 16 Apr, 2025 @ 5:57am 
I tried to add: if (Player("!player").GetCharacterName != "Nick") but unfortunately this is wrong:steamthumbsdown:
golf prime enjoyer 16 Apr, 2025 @ 5:53am 
Rectus, u need help(( please :steamsad::steamsad::steamsad:

I have a script that deletes the inventory of a survivor, but I need to get rid of weapons exclusively from bots, i use VSLIB

( for example, if the player chose Nick as a survivor )

local inventory = Player("!nick").GetHeldItems();
if ( inventory )
{
foreach (wep in inventory)
wep.KillEntity();
}
golf prime enjoyer 14 Apr, 2025 @ 1:09pm 
its good,
thank you very much:steamthumbsup::steamthumbsup::steamthis:
Rectus 14 Apr, 2025 @ 11:12am 
You'll need to run it on the spawned players. Try adding a trigger_multiple filtered for survivors, and add the output for !activator.
golf prime enjoyer 14 Apr, 2025 @ 11:03am 
thank you very much, I'm trying to do something but apparently I'm doing it wrong
https://prnt.sc/NCyWkwf2wmCE
Rectus 14 Apr, 2025 @ 10:38am 
That function sets the "effects" property of the player entity to 4 or 0. You could do it directly with map I/O using an "addoutput effects 0" output to each player.
golf prime enjoyer 14 Apr, 2025 @ 10:21am 
I'm creating a map, survivors in l4d2 spawn with a flashlight on, I would like to turn off the flashlights.
I also found a command that turns them off, but my knowledge is zero
VSLib.Player.SetFlashlight ( bool turnFlashOn )
Rectus 14 Apr, 2025 @ 9:53am 
Depends on what the issue is.
golf prime enjoyer 14 Apr, 2025 @ 8:22am 
Hello Rectus, сan you please a little bit help with the script:lunar2019piginablanket:
Rectus 13 Apr, 2025 @ 7:03am 
Nope.
Mohsen! 13 Apr, 2025 @ 4:21am 
can you fix homemade turret for bots to place it?
Mohsen! 13 Apr, 2025 @ 4:20am 
but isnt buggy custom weapons working as well bots cant place sentry homemade turret they use as melee and working already lol :biohazard_demon:
Mohsen! 13 Apr, 2025 @ 4:19am 
high physical damage and can move unfreezed props like cars and trash bins
Mohsen! 13 Apr, 2025 @ 4:18am 
! i know but 7% times m72 killin my self
Rectus 13 Apr, 2025 @ 4:17am 
It's because the rocket is a physics object, and there is no way of making ignore collision with the shooter. Hits are calculated on the server as well, so any lag or other issues can make it hit the shooter sometimes when firing.
Mohsen! 13 Apr, 2025 @ 4:02am 
Why M72 explode on my self? must stand on ground and stop moving to shoot m72 law?
Mohsen! 13 Apr, 2025 @ 4:01am 
Rectus why pipe shotgun and m72 LAW in custom wea l4d2 means anti tank and anti witch?
Rectus 9 Mar, 2025 @ 5:42am 
Nope.
Mohsen! 9 Mar, 2025 @ 5:06am 
can you make more custom weapons l4d2? :phoenixheart:
Rectus 26 Feb, 2025 @ 11:23pm 
You're welcome!
Salveei 26 Feb, 2025 @ 10:07pm 
i just wanted to thank you for the amazing addons you have done for the l4d2 community!! they're great
have a good year :zomv:
Ritsu 11 Feb, 2025 @ 12:38am 

𝒽𝒶𝓋𝑒
𝒶
𝓁𝑜𝓋𝑒𝓁𝓎
𝒹𝒶𝓎
Rectus 4 Jan, 2025 @ 3:24am 
You too!
Puffy 4 Jan, 2025 @ 12:48am 
You're a gem Rectus, have a splendid 2025.
Allen Scott 25 Dec, 2024 @ 10:36am 
Hey, adding to ask a quick question about the L4D2 Vscripting.
Rectus 14 Nov, 2024 @ 12:01am 
Yeah, unfortunately it's very limited in waht you can do with custom weapons.
Pringles™ 13 Nov, 2024 @ 5:51pm 
@Rectus I checked your guide and apparently its not possible to have custom stats for a gun without clients downloading the gun files, even if one uses vanilla skins like the TLS update variants. On that basis it wouldnt be of any use for our public play :(
Mohsen! 13 Nov, 2024 @ 10:14am 
ok wont dorry i just say thanks for nice ♥♥♥♥♥ bro
Rectus 13 Nov, 2024 @ 9:53am 
I'm not able to work on L4D2 mods. What kind of example file do you need?
Pringles™ 13 Nov, 2024 @ 9:35am 
Hi rectus, friending you to see if we can make a TLS alternative "new" weapon mod based on your Custom Weapon Base mod together. I essentially just need an example file. I can pay with steam game purchase or € payment if youre in the EU :demoticon: just slightly altered versions of vanilla guns using the TLS skins instead of normal.
Mohsen! 4 Oct, 2024 @ 1:16am 
WONDERFUL small l4d2 helper realism :missing:acks!
lot of my fun moment thanks path men terms!
Woodwo 22 Sep, 2024 @ 10:42pm 
how did you get an achievmient thats 0.1 precent of players got
Rectus 26 Jul, 2024 @ 11:35am 
I'm glad you like it!
Dekaloss 26 Jul, 2024 @ 10:56am 
gnome guardians is soo gooddd
devlos 25 May, 2024 @ 11:53am 
thanks! :)
Rectus 25 May, 2024 @ 8:06am 
Great work!
devlos 25 May, 2024 @ 7:28am 
Kinda , i do manipulate some but i still had to code all the weapon logic myself just like you did for the custom weapon base. :d
Rectus 25 May, 2024 @ 6:01am 
Oh, that's really neat. I'm guessing it works by manipulating the netprops of the regular weapon entities. I never thought of doing it that way.
devlos 25 May, 2024 @ 5:37am 
Well i just released this , it's the mod. You can now add custom primary weapons without requiring melee_scripts , still a work in progress but it's based off your work rectus!
https://v1.steam.hlxgame.cc/sharedfiles/filedetails/?id=3254000850
Jhoshua Wolfox 31 Mar, 2024 @ 9:33am 
Ouch, that impossibility to reload would kill any weapons idea. It was worth a shot, you have been amazing at explaining, i just wish Left 4 Dead 2 would be more open ended on the weapons aspect of the game. Thank you for your time, i still remember how crazy it was back in the day when your mod was posted!