View Single Post
The 5th Survivor
Senior Member
Join Date: Mar 2012
Old 06-23-2012 , 11:39   Re: [L4D & L4D2] Health Vending Machines (1.0) [28-Feb-2012]
Reply With Quote #26

Quote:
Originally Posted by Dont Fear The Reaper View Post
Nice idea

Just one thing, could you add an option to replace all already existing vending machines with ones that can heal, so you don't have to create extra spawns?
Would be nice because there are already vending machines on many places in the maps which are suitable.
&

Quote:
Originally Posted by alexip121093 View Post
It is impossible to do that because those existing vending machines are prop_static

I was also thinking using existing vendors would be an ideal idea. Mostly because users on my server are confused as to why some vendors work and some don't despite that I keep telling them that only SOME vendors work. For L4D1, I went through all 6 campaigns and made a list of how many existing non-useable vendors there are in each map.

No Mercy
1st Map: 3 vendors
2nd Map: 8 vendors
3rd Map: 7 vendors
4th Map: 5 vendors
5th Map: 0 vendors

Crash Course
1st Map: 2 vendors
2nd Map: 0 vendors

Death Toll
1st Map: 0 vendors
2nd Map: 1 vendor
3rd Map: 0 vendors
4th Map: 9 vendors
5th Map: 2 vendors

Dead Air
1st Map: 3 vendors
2nd Map: 16 vendors
3rd Map: 1 vendor
4th Map: 11 vendors
5th Map: 0 vendors

Blood Harvest
1st Map: 1 vendor
2nd Map: 4 vendors
3rd Map: 0 vendors
4th Map: 2 vendors
5th Map: 0 vendors

The Sacrifice
1st Map: 0 vendors
2nd Map: 7 vendors
3rd Map: 4 vendors

As you can see some maps have a lot of existing vendors while other maps have none at all (mostly the finales). So I spoke to Silvers to see if it would it be possible to just save coordinates/angles at ANY point on a map where you can trigger the "vending effect" by standing next to that "point" and holding "use" and NOT spawn a vending machine.

I thought of creating another vendor in the same exact location as an existing non-useable vendor and it works for the most part. But two things. One, depending on which vendor your trying to create, you may not be able to get the perfect angle because you'll need to rotate some less than 0.5 and the plugin doesn't allow rotations of less than that. And two, here's how they work when you add an additional vendor in the same spot where there's a non-usable vendor:

1) Water Coolers work fine.
2) Water Fountain works fine. (Note 1)
3) Small Drink vendors work fine.
4) Soda vending machines work fine.
5) Snack vending machines work. (Note 2)
6) Coffee machines work fine.

Note 1:
I only found a single water fountain in L4D1 (Dead Air third map). Where else do they appear?

Note 2:
Placing another Snack vendor where there's an existing snack vendor does work, but there's an issue with some. If an existing Snack vendor is standing upright and is against a wall, and you create another vendor in that exact same spot and save it, the next time you load that map, the Snack vendor can only be used if you're standing behind it (which you need to use noclip to do that).



So if you want the existing vendors to be usable, do what I did and create another of it's type in the same spot but keep in mind everything I mentioned above.

Last edited by The 5th Survivor; 06-23-2012 at 13:37.
The 5th Survivor is offline