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[L4D1 & L4D2] Weapon Prop Fix [v1.0.0 | 03-March-2021]


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
Description

Based on [L4D & L4D2] Physics fix by disawar1 and basically does the same thing.

This plugin fixes the following props:
  • Propane Canister [give propanetank]
  • Oxygen Tank [give oxygentank]
  • Fireworks Crate (L4D2 only) [give fireworkcrate]
  • Gascan (L4D1 only) [give gascan]

When one of the props above are given to a client through the "give" command, if the client is already holding the same item, the new prop will spawn and drop with the incorrect classname (weapon_<propname>), becoming unable to break/ignite/explode.

The correct classname should be prop_physics (Except for weapon_gascan on L4D2).

A lot of plugins use the "give" command, so this plugin fixes both. (console and third party plugins)

Features
  • Allow configuring which prop should be affected by the plugin.

Differences between the original - disawar1 version
  • Support Listen Servers.
  • Apply gascan fix only to L4D1. (weapon_gascan on L4D2 already works without plugins by default)
  • Apply fireworks crate fix only to L4D2. (L4D1 don't have fireworks crate)
  • Apply the fix on SpawnPost+RequestFrame instead using a timer.
  • Doesn't apply a fix for wheelbarrow. (Custom Map Warcelona modifies wheelbarrow to act like a propane canister, this is not a bug, is how it is supposed to work on that map)
  • Do late load on cvar change.
  • New syntax (SM1.10)

Cvars

A configuration file named "l4d_weapon_prop_fix.cfg" will automatically be created for you upon the first run in the "\cfg\sourcemod\" folder.

PHP Code:

// Enable/Disable the plugin.
// 0 = Disable, 1 = Enable.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d_weapon_prop_fix_enable "1"

// Spawn weapon_fireworkcrate as prop_physics.
// L4D2 only.
// 0 = OFF, 1 = ON.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d_weapon_prop_fix_fireworkscrate "1"

// Spawn weapon_gascan as prop_physics.
// L4D1 only.
// 0 = OFF, 1 = ON.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d_weapon_prop_fix_gascan "1"

// Spawn weapon_oxygentank as prop_physics.
// 0 = OFF, 1 = ON.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d_weapon_prop_fix_oxygentank "1"

// Spawn weapon_propanetank as prop_physics.
// 0 = OFF, 1 = ON.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d_weapon_prop_fix_propanecanister "1" 

Admin Commands
  • sm_print_cvars_l4d_weapon_prop_fix => Print the plugin related cvars and their respective values to the console. (z flag required)

Change Log

Spoiler


Notes
  • I do SpawnPost+RequestFrame because some plugins do TeleportEntity after DispatchSpawn, making it required to wait until the next frame.
  • Fireworks Crate fix only applies to L4D2, because L4D1 doesn't have it.
  • Gascan fix only applies to L4D1, because on L4D2 works fine when a weapon is spawned as weapon_gascan.

Thank you!

Related Plugins

Post Reply
  • Any feedback, bug reports, fixes, improvements, translations or suggestions for the plugin are welcome.

Installation
  • Put the "l4d_weapon_prop_fix.smx" file (click Get Plugin) in your "\addons\sourcemod\plugins\" folder.

Attached Files
File Type: sp Get Plugin or Get Source (l4d_weapon_prop_fix.sp - 15.5 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ę...