Left 4 Dead 2

Left 4 Dead 2

Not enough ratings
Gnome Ammo Dealer (Vscript)
   
Award
Favorite
Favorited
Unfavorite
Game Content: Scripts
Game Modes: Single Player, Co-op
Items: Other
File Size
Posted
Updated
14.126 KB
18 Jan @ 8:40am
19 Jan @ 9:48am
3 Change Notes ( view )

Subscribe to download
Gnome Ammo Dealer (Vscript)

In 1 collection by kurochama
Useful "Side-Dish" Mods (Especially for Bots)
47 items
Description
This gnome's first debut was on my Break Objects = Get Rewards mod, & he just made a short appearance there as he immediately left after giving ammo to one survivor. His next appearance was on the latest update of my Item Drop Bonus mod as he showed up only in short time when a tank or witch was killed. & now, as the Lil Gnome Warriors finally showed to fight alongside survivors against zombies, the timid "Gnome Ammo Dealer", along with his family, has decided to gather their courage to show up & give supports to "Gnome Warriors" & survivors.

Well, enough for the background story, this mod was originally one of features on "Gnome Warriors" (so if you use that mod, there's no need to use this). I found it necessary to make this as a standalone mod when I remembered about how players often complained about the lack of ammo piles in certain custom campaigns. Now that this gnome has come, at least in any maps that have at least one medical cabinet, you'll find a special gnome standing there. The medical cabinet is converted to this gnome.


Q: "Are the healing items inside the medical cabinet gone with this mod enabled?"
A: "No. The healing items are still there. Only the medical cabinet is gone, replaced with a gnome."


This "Gnome Ammo Dealer" has special traits, like:
  • This gnome will regularly plays fireworks. So, if you see some fireworks somewhere, there's this gnome camping nearby.

  • This gnome will move in place randomly when he detects a survivor approaching him.

  • Aside from giving ammo, this gnome gives these buffs:
    - Laser sight when there's primary gun.
    - Laser sight when there's pistol (secret feature on L4D2).
    - Incendiary ammo when there's primary gun.

  • Unlike his other appearances on other mods, this gnome won't disappear when a survivor presses E (survivors can use ammo piles infinitely). However, other mods will affect this mod. For example, if you use this together with either "Lil Gnome Warrior" or "Break Objects = Get Rewards", this gnome will become only one-time-use & he'll disappear after a survivor presses E.

List of simple features available on "gnome ammo dealer.txt" cfg file:
  1. Gnome Reaction: This controls whether gnome will move in place & turn around randomly when there's a survivor nearby, or he'll look at the survivor (just like what a npc usually does).

  2. Remove Medical Cabinet: This controls whether the medical cabinet is removed or not when gnome shows up. Set this to 0 if you don't want medical cabinet to be removed.

Bonus features:
  • Special only on this "Gnome Ammo Dealer", T3 weapons like M60 & Grenade Launcher can refill ammo, but this is only when survivors refill ammo using "Gnome Ammo Dealer", not the normal ammo piles. The ammo for GL is the default reserve ammo based on GL ammo on cvar, while for M60, you get 300 reserve ammo.

  • M60 Anti-Drop System: When using this mod, M60 won't drop, because this safety system will immediately force the player to switch to secondary when M60 ammo clips is only 2 ammo left.


Yeah, this gnome is combination of ammo piles laser sight, & incendiary ammo upgrade. That's why he's called "Ammo Dealer". So, with this gnome & his family taking part in "Gnome's Total War", survivors & "Gnome Warriors" has finally got one of the best support units during battles against zombie army under Tank Demon Lord's regime... At least this is in another parallel world of L4D2... :D .


NOTES:
  • This mod is compatible with mods I mentioned above, but with the cost of the gnome becoming only one-time-use ammo piles.
  • When "Gnome Reaction" is set to 1 & there's more than one survivor nearby, sometimes he'll look at somewhere else instead of the survivors.
  • Normally the firework particle effect won't cause a problem. But if it does, let me know, & I'll make a cfg file to add a feature to disable it.
15 Comments
Unsants 1 Feb @ 4:27pm 
Ok
kurochama  [author] 1 Feb @ 4:24pm 
@Unst , I'm not sure about gnome looking at someone. But if it's about animated gnome that moves like a living being, I think there could be some mods out there.
Unsants 1 Feb @ 12:59pm 
@kurochama Do you know if there are any mods that make the gnome look at you or move his eyes?
kurochama  [author] 19 Jan @ 2:57am 
@Miku , after watching your video, I noticed that making gnome look at the survivor is also good idea. Probably I can add a feature later so people can choose gnome's reaction, whether he's just turning around randomly or looking at the survivor approaching him.
kurochama  [author] 19 Jan @ 2:26am 
@Miku , I'll try to check the video soon. Actually, the original idea on "Convert To Gnome" feature on "Lil Gnome Warrior" was like that, the gnome showing up without removing the medical cabinet. But then I thought that it might add more entities the more medical cabinets are found in a map (example, if there are 2 medical cabinets in a map, a gnome will spawn on each of those medical cabinets). So, I had to remove the medical cabinet instead, so there wouldn't be more entities added no matter how many medical cabinets are in a map (one gnome added, one medical cabinet removed). For the aesthetics, I agree that spawning only the gnome without removing the medical cabinet would be the better choice.
I mean put the gnome on the ground near medical cabinet,First-aid-kit stick on the wall without a cabinet looks quite strange ^^
I think you should let the gnome rotate based on the player eye angle near the gnome, or you can adjust it manually, like I do in this video, hope you check it out
https://youtu.be/zgL8yHogYNM
kurochama  [author] 18 Jan @ 2:59pm 
@Miku , did you mean sticking the gnome to the wall instead? That's actually also possible. The ammo in gnome skin here has spawnflags that apply gravity, so that's why it's on the ground instead of sticking to the wall. But if the gnome is on the wall, rotating it will make it slightly strange as there's a chance that some parts of the body will go through wall when it's rotating to certain angles. Actually I originally wanted the gnome to look at the survivor coming to him, by rotating the angles based on where the survivor is. But somehow the random rotation made gnome look funny too, just like a lively kid that keeps moving, so I used the random rotation instead.
Unsants 18 Jan @ 2:39pm 
:steamthumbsup:
great idea,kurochama.i have a suggestion,can you put it right where the medical cabinet is?
making the cabinet disappear looks pretty strange ^^
kurochama  [author] 18 Jan @ 1:56pm 
@Gumbs , if the evil gnome, custom AI for enemy's side is usually unfair, & there's still no effective way to "nerf" the 100% accuracy of the custom enemy AI. Imagine a gnome turret that immediately turns & aim at you only in milisecond, & once you're on sight, the shot accuracy is 100%. Actually there are some ideas, but I'm not sure if those ideas could solve. They're the netprops that controls recoil/ shake on camera. They could be used to lower the accuracy.

As for gnome that throws grenades, probably we can wait other modders first. Normally it's possible to make too.