Left 4 Dead 2

Left 4 Dead 2

152 个评价
Share Ammo With Teammates
   
奖励
收藏
已收藏
取消收藏
Game Content: Scripts
Game Modes: Single Player, Co-op
文件大小
发表于
更新日期
11.587 KB
4 月 30 日 上午 1:49
5 月 1 日 下午 2:19
2 项改动说明 ( 查看 )

订阅以下载
Share Ammo With Teammates

描述
This customisable mod lets you share your spare ammunition with a teammate who's been a little too trigger happy.

To share your ammo, equip your primary weapon and shove a teammate while holding reload. Your teammate must be using a primary weapon that uses the same type of ammo. Your clip will be emptied, and your teammate will gain reserve ammo based on how much ammo was in your clip.

By default, any weapon can share its ammo with another weapon that uses the same type of ammo. So the M16 can share its ammo with the AK47, but not an Autoshotgun or Hunting Rifle. However, you can edit the mod by changing the values in "ems/share_ammo/ammo_types.txt", letting you alter which weapons can share ammo with each other. This can be useful if you play with custom weapon scripts that change what ammo type each gun uses, or if you'd just like the script to be a little more lenient, such as by letting auto and pump shotguns share ammo.
43 条留言
Geebanger0  [作者] 5 月 11 日 下午 2:35 
:Eddie:
zuben_elgenubi 5 月 11 日 下午 12:53 
Yes, I want to shoot civilians. I mean zombies. Zombies that run away from you but also resemble humans.
kurochama 5 月 11 日 上午 1:42 
Basically that's like the gunshot attracts horde, but in reverse version then :steamhappy:
Geebanger0  [作者] 5 月 11 日 上午 1:35 
so its just... No Russian but in L4D2?
zuben_elgenubi 5 月 11 日 上午 1:11 
Geebanger0, you are my best best friend in the whole wide world. I have an idea. What if the common infected were scripted to run away from you instead of running at you when provoked? Make all of the common infected act like real people running away from crazed gunmen. If you do this, I will put human textures on all the zombies, and my urges will be put to rest at last. Geebanger0, you know who I am. We're best friends. Do this for me.
Ryan the Womb Raider 5 月 6 日 上午 11:16 
THIS MOTHERFUCKER RELEASES PEAK AFTER PEAK AFTER PEAK
BabaWings 5 月 6 日 上午 10:51 
I was here too
Milcoенг 5 月 5 日 上午 7:12 
8
9
789
789
78
9980
89
0
90
890
890
89089000000
89
08
9089
0
890
890
ШЩЗШ
ЩЗШЩ
ЗШЩЗ
Ш
ЗШ
ЩЗШ
ЩЗ
890
890
890
kurochama 5 月 3 日 下午 11:13 
@Geebanger0 , some few tricks that might help you find some clues to spawn custom ammo piles:
1. On "round_start", spawn a new "weapon_ammo_spawn" to replace the existing ammo by using "FindByClassname" with "RandomInt" check to randomize the results.
2. On the weapon spawn table, add:
model = ".../ammomodel.mdl"
3. Change the model to suit the ammo type (examples: change it to deployed incendiary ammo model)
4. On "player_use", on the entity that player uses, check if the entity is ammo pile, & if the model name matches the custom ammo model you put on the spawn table.
5. If the model matches, trigger an upgrade & at the same time remove it.

I ever used this trick to spawn a custom ammo piles with gnome skin, to make it look funny to see a little guy giving ammo :steamhappy:
kouga 5 月 3 日 下午 9:31 
ill do just that