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[L4D] Boatstyle cars (v1.0.1, 2021-11-30)


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
Description

This plugin changes the behavior of tank punchable cars.
Tank punch will have a default chance of 5% to completely smash the car.
Literally the car will get smashed like boats on Sacrafice, car pieces shouldn't hurt players at least not on intention.

Features
Crumbles cars like a cookie
Might crash the server if you set chance to 100% and smash every car you can find in crash course.
But that's no feature you say. Well um. LOOK, MAYBE I DIDN'T SAY EVERY TINY SYLLABLE, NO. BUT BASICALLY I SAID THEM, YEAH.

Cvars

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

PHP Code:

// This file was auto-generated by SourceMod (v1.10.0.6435)
// ConVars for plugin "l4d_boatstyle_cars.smx"


// Percent chance a tank punch can detroy a car. 1-100
// -
// Default: "10"
l4d_boatstyle_cars_DestroyChance "5"

// Delete attached entities (child) from the car.
// 0 = OFF, 1 = ON.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d_boatstyle_cars_delete_childs "1"

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

// Emit a random breaking glass sound on car hit (only once).
// 0 = OFF, 1 = ON.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d_boatstyle_cars_glass_sound "1" 

Public Commands
none

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

Change Log:
1.0.1 (30-November-2021
cvar chance added
vertical movement added
1.0.0 (16-November-2021)
- Initial release.


Notes
Don't use too high chances because I am not cleaning up after the entity mess, I didn't experience any problems with 5-10 percent though
I didn't test it for l4d2, might work or might not. I have no idea.

To Do
I hope Silvers does not find out that I used & StrContains(modelname, "boat", false) == -1, he might get angry and beats me with a stick.
I really hope the plugin will slip through his sight, I am in fear what he will say about the repeating program parts.

Thank you!
Marttt - for suggestions on the original post and the whole programming contruction I stole from your tank car smash plugin. https://forums.alliedmods.net/showthread.php?t=335105
Silvers - for everything in the original post and that you dont beat me with a stick.

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

p.s. I see someone already download the source and I see Silvers online. I really live in fear now.

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