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

[TF2] Engineer's Workshop


owner_2019
 Udostępnij

Rekomendowane odpowiedzi

[TF2] Engineer's Workshop
v1.0.1 BETA
Description:
Combines the functionality of several plugins specifically for the engineer's buildings. Giving you the ability to:
  • Resize Buildings
  • Damage Scaling for Resized Buildings
  • Set Outlines
  • Set Color
  • Toggle Friendly Sentry Mode
  • Toggle Infinite Ammo
  • Toggle No-Sap
  • Toggle Godmode
  • Teleport Buildings to Crosshair


The plugin has Overrides to limit access to all Main Menu items, and each Abilities Menu item.
As well as a CVar to set non-admin limits for resizing buildings.

If you want, you can also customise the list of colors. Located in engieshop_colors.cfg
It comes with a default list of 16 colors, and supports 32 in total. This can be changed if you edit “#define MENU_MAXCOLORS 32” in the source code and recompile.



Installation:
Install engineersworkshop.smx into /addons/sourcemod/plugins/
–
If you instead click “Get Plugin” on the source file, you will not have Updater support!
Install engieshop_colors.cfg into /addons/sourcemod/configs/
Install engineersworkshop.phrases.txt into /addons/sourcemod/translations/



Command List:
sm_engieshop (Default Flag: b or GENERIC)
Command to open the Engineer's Workshop Main Menu. The below commands are all available on here.
sm_rb (Default Flag: b or GENERIC)
Command to open the Resize Building Menu.
Allows Access to Main Menu Option too.
sm_friendlysentry (Default Flag: b or GENERIC)
Command to toggle Friendly Sentry Mode.
Allows Access to Main Menu Option too.
sm_buildingoutline (Default Flag: b or GENERIC)
Command to open the Building Outline Menu.
Allows Access to Main Menu Option too.


Override List:
sm_engieshop_scale_admin
Allow full selection of sizes on the Resize Building Menu.
sm_engieshop_damage_admin
Buildings will scale damage upwards when Resized.
sm_engieshop_abilities
Allow access to Abilities Option on Main Menu
sm_engieshop_ability_ammo
Allow access to Infinite Ammo Ability.
sm_engieshop_ability_nosap
Allow access to No-Sap Ability.
sm_engieshop_ability_god
Allow access to Godmode Ability.
sm_engieshop_ability_tele
Allow access to Teleport to Crosshair Ability.
Cvar List:
dig_engieshop_version
Plugin Version – Do NOT Touch.
sm_engieshop_scale_admin (Default Flag: d or BAN)
Override to be considered an admin to plugin. Gives full range of pitch,
and access to the command when sm_voicepitch_enabled is 2.
Additionally grants access to targeting with
sm_voice.

sm_engieshop_enabled (Default Value: 1)
0 – Disabled
1 – Enabled
sm_engieshop_scale_bounds (Default Value: “0.25;1.25”)
Lower and Upper Resize limits for Non-Admins.
sm_engieshop_scale_bounds (Default Value: “0.25;1.25”)
Lower and Upper Resize limits for Non-Admins.
sm_engieshop_collision(Default Value: 1)How Resized buildings collide with Players.
0 – Disabled.
1 – Ignore Other Players.
2 – Ignore Other Players, Except for Teleporters.
sm_engieshop_autoupdate (Default Value: 1)Update this plugin Automatically (Requires Updater)
0 – Disabled.
1 – Enabled.
sm_engieshop_cooldown (Default Value: 0.2)Cooldown Time for Most Menu-Based Functions in fractions of a second.
sm_engieshop_color_file (Default Value: “engieshop_colors”)
Config File for list of Building Colors.



Changelog:


Code:

* v1.0b - Initial Release.
* v1.0.1b – Changed Version Number Format. Fixed Minor Typos. Updated Color List.
* v1.0.2b – Patched Numerous Bugs. Fixed Overrides.



Known 'Bugs':
  • Resized Buildings: When set to default, the hitbox wont revert. This can cause teammates to get stuck in teleporters, and enemies to get stuck in dispensers sentries.
    Please let me know if anything else is broken. I haven’t had a chance to test everything yet.


Disclaimer:
I've never attempted to do a project this large before, there's almost certainly bugs. Especially considering this is a beta version. I recommend having the Updater plugin so you can receive patches for any that are found.

Attached Files
File Type: sp Get Plugin or Get Source (engineerworkshop.sp - 71.3 KB)
File Type: smx engineerworkshop.smx (27.2 KB)
File Type: txt engineerworkshop.phrases.txt (4.6 KB)
File Type: cfg engieshop_colors.cfg (910 Bytes)

Wyświetl pełny artykuł

Odnośnik do komentarza
Udostępnij na innych stronach

Jeśli chcesz dodać odpowiedź, zaloguj się lub zarejestruj nowe konto

Jedynie zarejestrowani użytkownicy mogą komentować zawartość tej strony.

Zarejestruj nowe konto

Załóż nowe konto. To bardzo proste!

Zarejestruj się

Zaloguj się

Posiadasz już konto? Zaloguj się poniżej.

Zaloguj się
 Udostępnij

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

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