RSSy MYGO.pl Opublikowano Styczeń 1, 2021 o 02:41 RSSy Udostępnij Opublikowano Styczeń 1, 2021 o 02:41 L4D2 ONLY Description This plugin applies a random glow to some items to make it easier to identify in the map. I used to run this plugin to find places that spawn items. The current version doesn't support much customization related to the type of the entities affected by this. (I may add in the future) Currently support the following entities:All weapons (weapon_*) All upgrade boxes (upgrade_*) All projectiles (*_projectile) All dead bodies (survivor_death_model) All projectiles (*_projectile) All mounted guns (m_heat) All carryables (m_isCarryable) FeaturesAllow configuring the glow color for all items (random or specific). Allow configuring the glow type for all items. Allow configuring the glow flashing for all items. Allow configuring the min distance to glow. Allow configuring the max distance to glow. Allow configuring the glow flashing for all items. Allow configuring the glow brightness for all items (not accurate). Allow to ignore scavenge gascans. Cvars A configuration file named "l4d2_random_item_glow.cfg" will automatically be created for you upon the first run in the "\cfg\sourcemod\" folder. PHP Code: // Item glow color. // Use "random" for random colors. // Use three values between 0-255 separated by spaces ("<0-255> <0-255> <0-255>"), to apply a specific color. // - // Default: "random" l4d2_random_item_glow_color "random" // Enables/Disables the plugin. // 0 = Disable, 1 = Enable. // - // Default: "1" // Minimum: "0.000000" // Maximum: "1.000000" l4d2_random_item_glow_enable "1" // Add a flashing effect on glowing entities. // 0 = OFF, 1 = ON. // - // Default: "0" // Minimum: "0.000000" // Maximum: "1.000000" l4d2_random_item_glow_flashing "0" // Glow type. 0 = OFF, 1 = OnUse (doesn't works well), 2 = OnLookAt (doesn't works well), 3 = Constant (better results). // - // Default: "3" // Minimum: "0.000000" // Maximum: "3.000000" l4d2_random_item_glow_type "3" // Maximum distance that the client can be away from the entity to start glowing. 0 = No maximum distance. // - // Default: "0" // Minimum: "0.000000" l4d2_random_item_max_distance "0" // Algorithm value to detect the glow min brightness for a random glow (not accurate). // - // Default: "0.5" // Minimum: "0.000000" // Maximum: "1.000000" l4d2_random_item_min_brightness "0.5" // Minimum distance that the client must be from the entity to start glowing. 0 = No minimum distance. // - // Default: "0" // Minimum: "0.000000" l4d2_random_item_min_distance "0" // Apply glow to scavenge gascans. // 0 = OFF, 1 = ON. // - // Default: "0" // Minimum: "0.000000" // Maximum: "1.000000" l4d2_random_item_scavenge_gascan "0" Admin Commands sm_entglowrefresh => Refresh the glow color of glowing entities. (z flag required) sm_entglowinfo => Outputs to the chat the glow info about the entity at your crosshair. (z flag required) sm_print_cvars_l4d2_random_item_glow => Print the plugin related cvars and their respective values to the console. (z flag required) Change Log Spoiler 1.0.0 (31-December-2020) - Initial release. Notes The glow brightness algorithm maybe need a better calculation. It is used to minimize the amount of entities with weak glows that you almost can't see. On weapon drop the plugin applies a glow again since the game removes glow from equipped entities. To Do Add specific entitiy glow settings. Post Reply Any feedback, bug reports, fixes, improvements, translations or suggestions for the plugin are welcome. Installation Put the "l4d2_random_item_glow.smx" file (click Get Plugin) in your "\addons\sourcemod\plugins\" folder. Attached Files Get Plugin or Get Source (l4d2_random_glow_item.sp - 21.1 KB) Wyświetl pełny artykuł Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
Rekomendowane odpowiedzi