Skocz do zawartości

Nowy szablon forum

mygo.pl

Stworzyliśmy dla Was nowy wygląd forum. Z pewnością znajdziesz rzeczy, które wg Ciebie mogą zostać zmienione - wspomnij o tym w specjalnym wątku.

Czytaj więcej

Jak założyć własną sieć

serwerów CS

Zastanawiasz się nad prowadzeniem własnej sieci serwerów? Przeczytaj podstawowe informacje, na które należy zwrócić uwagę, przy takim projekcie.

Czytaj więcej

Tworzymy spis sieci

dodaj swoją

Dodaj sieć do której należysz, pozwoli to na promocję i budowę ogólnopolskiej bazy sieci CS.

Czytaj więcej

RSS[L4D2] Random guns ammo 1.0 [07-Dec-2022]


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
About
Something I've always wanted, for my hard realism server.

I still couldn't get "m_iExtraPrimaryAmmo" to work, weapon's backup ammo still changes when I actively drop weapon.
After rewriting the plugin several times, I gave up on using it.

So I used a separate thing to hold the backup ammo value.

Feature list
-Randomizes ammo range for weapon clips (when you first pick up a new weapon).
-Randomizes a weapon's reserve ammo amount (when you first pick up a new weapon).
-Drop a weapon with the same equip slot as the target weapon before picking up the weapon.
Prevents weapon ammo from being refreshed(When approaching the weapon_spawn).


Credits
-Psykotik (Crasher_3637)
Ammunition Variation Plugin.
Gave me the idea to write this plugin.

-Machine, dcx2, Electr0 /z, Senip, Shao, Zheldorg
L4D2] Weapon Drop Plugin.
Refer to their code to solve the unexpected "IN_USE" problem.

-NoroHime
[L4D & L4D2] Take Ammo From Previous Weapon Plugin.
Learned from his plugin how to set the reserve ammo value, although mine now uses a separate ammo count.
The most surprising thing is that I now know that the "smlib" library. :)

[L4D & L4D2] HUD Hiddens Plugin.
Learn how to use Forward "OnGameFrame".


ConVar
Spoiler


Changelog
Spoiler



Dependencies

Left 4 DHooks

Default premise of this plugin: Weapons are not infinite.
@Earendil [L4D1 & L4D2] Weapon Amount Modifier

If the weapons in the gun cabinet are infinite, or the shotgun is a problem, try my version.
Make sure "l4d_weapon_amount_modifier.cfg" is configured to only allow a single weapon to spawn.

Here is my configuration:
Spoiler

Recommended Plugins
[L4D2] Weapon Drop
I haven't tested too much, recommend @Zheldorg's version,no problems so far.

[L4D/L4D2] Reserve (Ammo) Control
No problems.

[L4D1/2]]Limited Ammo Piles Remake
and
[L4D & L4D2] Percentage Limited Ammo Pile
The latter I haven't tested yet, but it would be a nice addition. :)


Install

Don't click "Get Plugin", this plugin requires left4dhooks.
1.Download "l4d2_RandomAmmo.smx" and put it in "../addons/sourcemod/plugins/".
2.Download "l4d2_RandomAmmo.cfg" and put it in "../left4dead2/cfg/sourcemod/".

You need to modify the configuration file of the plugin (l4d2_RandomAmmo.cfg),Because the plugin is disabled by default.

Attached Files
File Type: smx l4d2_RandomAmmo.smx (15.8 KB)
File Type: sp Get Plugin or Get Source (l4d2_RandomAmmo.sp - 30.1 KB)
File Type: cfg l4d2_RandomAmmo.cfg (3.9 KB)

Wyświetl pełny artykuł

Odnośnik do komentarza
Udostępnij na innych stronach

Gość
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
 Udostępnij

  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...