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

[ANY] Neon Beams (1.0) [20-Aug-2019]


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy

68747470733a2f2f692e696d6775722e636f6d2f
(L4D2 particles and beams, presets saved to map test)

68747470733a2f2f692e696d6775722e636f6d2f
(Preset with 100 beams saved 41 times - 4,100 beams. Plugin loaded 5,300 beams in 26 seconds @ 0.1 interval.)
[Client was in windowed mode - this crashes fullscreen clients so max beams/particles must be limited]




Thanks:
  • "Don't Fear The Reaper" for the rotation matrix code
  • "Boikinov" for 3 functions used in rotation.
  • "Dragokas" - Testing and scripting advice
  • "Lux" - Scripting advice
  • "Visual77" - Scripting advice
  • "Mr. Man" - Testing



Features:
  • Maximum Beams:
    - Avoid spawning more than 700 in one visible area (CSGO particles - client crash) or 2,000 (L4D2 - buffer error, see screenshot 2).
    - It's possible to spawn 60,000 beams/particles with clients in windowed mode but the map will start to disappear.
    - CRASH: Fullscreen clients will crash with far fewer beams or particles. This is why I've added cvars to set their max limits.
  • Painting:
    - VIP command to spawn temporary beams every second (controlled by neon_paints cvar) in a line where your crosshair is aiming.
  • Presets:
    - Create presets to save and load multiple beams/particles at once. Forced to be created on a flat wall with specific angles as other surfaces will mis-align.
    - Please create and share custom presets! See post #2 below for various presets and screenshots.
    - All preset names must be unique.
  • Save to Map:
    - Auto spawn individual beams and presets on round start which were saved to the map.
    - The cvar neon_late controls if new clients connecting after round start are individually sent the saved beams.
    - Loads 32 (neon_cfg_max) beams every 0.2 seconds (neon_cfg_time) at round start after (neon_cfg_load) seconds.
  • Custom Beam Colors:
    - You can define your RGB color list used in menus by editing the \addons\sourcemod\data\neon\menu.cfg config.
  • Particles:
    - Games using the custom particles/materials can create 10 particles (L4D2 uses 9 inbuilt particles), with the same features as standard beams. Their color cannot be changed.



Admin Commands:
  • Requires "z" - ADMFLAG_ROOT flag
PHP Code:

sm_neon             // Open the main menu for Neon Beams.
sm_neon_temp        // Menu to spawn temporary Beams at your crosshair.
sm_neon_save        // Menu to spawn and save Beams at your crosshair.
sm_neon_preset      // Create or edit a preset with Beams: sm_neon_preset <config file/preset name>.
sm_neon_preset_temp // Opens the Preset menu list, to spawn temporary presets.
sm_neon_preset_save // Opens the Preset menu list, allowing you to save them to the map.
sm_neon_preset2     // Create or edit a preset with particles (if game supports). Usage: sm_neon_preset2 <config file/preset name>.
sm_neon_save2       // Menu to spawn and save particles (if game supports) at your crosshair.
sm_neon_temp2       // Menu to spawn temporary particles (if game supports) at your crosshair.

sm_neon_delpre      // Remove the last saved beam from the currently selected preset. Or delete a preset config, usage: sm_neon_delpre <preset name>
sm_neon_del         // Remove the last placed preset or beam from the saved map config (regardless of who placed it).
sm_neon_overload    // Overrides the duplicate load prevention, and loads the auto spawn data config for the current map.
sm_neon_load        // Reloads the Preset and current Map configs, used to refresh the plugin after manual changes to the data config file.
sm_neon_stats       // Shows details about how many beams were spawned and how long it took etc. 



VIP Commands:
  • Requires "o" - ADMFLAG_CUSTOM1 flag
  • You can override commands to change user access
PHP Code:

sm_neon_paint       // Menu to start and stop painting (continuous spawning of beams) with color selection.
sm_neon_paint2      // Menu to start and stop painting (continuous spawning of particles) with color selection. 




ConVars:
  • Saved to neon_beams.cfg in your servers \cfg\sourcemod\ folder.
PHP Code:

// 0=Plugin off. 1=Plugin on.
neon_allow "1"

// 0.0=Off. After round start and all connected players have spawned, wait this long before spawning beams and particles saved to map.
neon_cfg_load "5.0"

// Max beams and particles to load in 1 frame. More than 32 cannot be loaded at once due to engine limitations.
neon_cfg_max "32"

// If beams or particles are deleted on round restart you can enable them to load here. 0=None. 1=Load beams on round_start. 2=Load particles on round_start. 3=Both.
neon_cfg_round "2"

// Interval to wait before loading the next set of beams and particles.
neon_cfg_time "0.2"

// Distance from the wall to spawn beams, particles and presets.
neon_distance "1.5"

// 0=Off. 1=Send clients the saved beams map data when joining after round start. 2=Send particles (attempts to hide from others). 3=Both.
neon_late_load "3"

// The sprite halo used for beams.
neon_mat_halo "materials/sprites/glow.vmt"

// The sprite material used for beams.
neon_mat_sprite "materials/sprites/laserbeam.vmt"

// Maximum number of beams allowed on the map.
neon_max_beams "768"

// Maximum number of particles allowed on the map.
neon_max_parts "768"

// Transparency of beams. 0=Invisible. 255=Solid.
neon_opacity "128"

// Interval between each paint.
neon_paints "0.5"

// Width of beams.
neon_size "2" 




Natives for developers:
See post #3 below for details and examples.


Config Paths:
  • Plugin data saved to \addons\sourcemod\data\neon\ folder.

    All comments in the preset/map configs will be lost. Manual changes will be lost if the plugin saves data and the configs were not reloaded via command.

    For manual changes to take affect, you must either:
    A) Use this command sm_neon_load
    B) Reload the plugin.
    C) Change map.



Changes:
Code:

1.0 (20-Aug-2018)
    - Initial release.
    - Originally created on 02-Jan-2012.




Known Issues:
  1. (NoFix) The engine can only load 32 beams in 1 frame. If you really think other plugins are conflicting (eg tracers), and preventing some beams from loading, you may want to consider lowering the neon_cfg_max cvar. You might only need to increase the neon_cfg_time cvar if some saved beams fail to appear when first loading after round_start.
  2. (NoFix) Clients cannot see beams created during the process of alt-tabbing.
  3. (WontFix) Dedicated servers only, I don't support listen servers.
  4. (WontFix) When multiple plugins spawn presets or arrays at the same time they're prevented from loading data while the servers spawning is already progress. HardFix: use an asynchronous method for queuing the data.
  5. (Bug) Creating presets on angled surfaces or walls which are not vertical and aligned at 0,90,180,270 degrees to the map will mis-align. Current fix only allows presets to be created on the required walls. Don't know how to fix. The problem iirc is a small mis-alignment most likely from the position setup and rotation matrix.
  6. (Bug) Some presets spawned on angled surfaces don't align to that surface slope correctly or spawn slightly off 90 degreees from the players view. Don't know how to fix. Possibly using TraceHull or multiple traces to find an average surface angle.
  7. Spawning beams on round_start might fail for untested games, please request support.
  8. Possibly other bugs, please report. I tested as much as I can over the years.



Installation:
  1. Click "Get Plugin" and put the .smx file into your servers \addons\sourcemod\plugins\ folder.
  2. For custom particles (not L4D/2) download the .zip and extract the \materials\ and \particles\ folders to your servers main game folder.
  1. Optionally: download presets from post #2 below and extract to your servers \addons\sourcemod\data\neon\presets\ folder.
  2. (Tested on: L4D, L4D2, CS:GO, TF2)

Attached Files
File Type: zip neon_beams.zip (111.9 KB)

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

×
×
  • Dodaj nową pozycję...