sm_anomaly // Create an Anomaly where your crosshair is pointing.
sm_anom // Create an Anomaly near you using the random spawn placement system. [Optional arg: number of seconds until spawn].
sm_anomoff // Removes any active anomaly.
CVars:
Saved to l4d_anomaly.cfg in your servers \cfg\sourcemod\ folder.
PHP Code:
// 0=Plugin off, 1=Plugin on.
l4d_anomaly_allow "1"
// How close entities must be to the anomaly before being struck.
l4d_anomaly_damage_distance "200.0"
// 0.0=Off, also disables effects. The amount of damage to deal to Common Infected when being struck.
l4d_anomaly_damage_infected "20"
// 0.0=Off, also disables effects. The amount of damage to deal to Special Infected when being struck.
l4d_anomaly_damage_special "20"
// 0.0=Off, also disables effects. The amount of damage to deal to Survivors when being struck.
l4d_anomaly_damage_survivor "10"
// How often to damage entities within range.
l4d_anomaly_damage_time "1.5"
// 0.0=Off, also disables effects. The amount of damage to deal to Witches when being struck.
l4d_anomaly_damage_witch "50"
// Turn on the plugin in these game modes, separate by commas (no spaces). (Empty = all).
l4d_anomaly_modes ""
// Turn off the plugin in these game modes, separate by commas (no spaces). (Empty = none).
l4d_anomaly_modes_off ""
// Turn on the plugin in these game modes. 0=All, 1=Coop, 2=Survival, 4=Versus, 8=Scavenge. Add numbers together.
l4d_anomaly_modes_tog "0"
// How far can random sparks shoot out. These do not affect players and only visual effect.
l4d_anomaly_random_dist "200.0"
// 0.0=Off. Display random sparks and sound after this many seconds maximum.
l4d_anomaly_random_max "5.0"
// 0.0=Off. Display random sparks and sound after this many seconds minimum.
l4d_anomaly_random_min "2.0"
// 0.0=Off. Automatically spawns anomaly when Survivors pass between this minimum and maximum map flow distance percent.
l4d_anomaly_spawn_max "70.0"
// 0.0=Off. Automatically spawns anomaly when Survivors pass between this minimum and maximum map flow distance percent.
l4d_anomaly_spawn_min "20.0"
// The type of damage to deal to Common Infected.
l4d_anomaly_type_infected "33554432"
// The type of damage to deal to Special Infected.
l4d_anomaly_type_special "16777216"
// The type of damage to deal to Survivors.
l4d_anomaly_type_survivor "16777216"
//The type of damage to deal to Witches.
l4d_anomaly_type_witch "64"
// Anomaly plugin version.
l4d_anomaly_version
Changes:
Code:
1.11 (22-Nov-2023)
- Added command "sm_anomoff" to remove all anomalies. Requested by "kochiurun119".
- Changed command "sm_anom" to allow specifying a time until spawn, this overrides the minimum spawn flow distance. Requested by "kochiurun119".
1.10 (20-Sep-2022)
- Added cvars "l4d_anomaly_type_infected", "l4d_anomaly_type_special", "l4d_anomaly_type_survivor" and "l4d_anomaly_type_witch" to control the damage type.
- Requested by "Sam B".
1.9 (25-Jun-2022)
- Changed the classname of the anomaly to prevent conflicts with other plugins that were expecting an actual "prop_physics" entity.
1.8 (18-Nov-2021)
- Changed forward "L4D_OnGameModeChange" to be compatible with "Left4DHooks" plugin version 1.63 and newer.
- Compatibility support for SourceMod 1.11. Fixed various warnings.
- Removed some old unused code.
1.7 (12-Sep-2021)
- Fixed plugin conflict with those detecting the "tank_rock" entity. Thanks to "sonic155" for reporting.
- Now using the new "Left4DHooks" native and forward: "L4D_GetGameModeType" and "L4D_OnGameModeChange".
- Requires "Left4DHooks" version "1.54" or newer.
1.6 (20-Jun-2021)
- Fixed not deleting the Anomaly when the plugin was toggled off.
1.5 (10-Apr-2021)
- Fixed affecting players who have not spawned and are Special Infected ghosts.
- Fixed damage cvars not applying correctly to Special Infected.
1.4 (15-May-2020)
- Replaced "point_hurt" entity with "SDKHooks_TakeDamage" function.
1.3 (10-May-2020)
- Extra checks to prevent "IsAllowedGameMode" throwing errors.
- Various changes to tidy up code.
1.2 (01-Apr-2020)
- Fixed "IsAllowedGameMode" from throwing errors when the "_tog" cvar was changed before MapStart.
1.1 (05-Mar-2020)
- Now spawns in the same place for both Versus teams.
1.0 (04-Mar-2020)
- Initial release.
I shot a video to show the anomalies to my players. Maybe it is useful to you as a demo. If I broke the rules with my link, just say, I will delete it.
I shot a video to show the anomalies to my players. Maybe it is useful to you as a demo. If I broke the rules with my link, just say, I will delete it.
Very cool thank you! I will add link to the first post.
L4D1: Requires adding the Tesla particles. See this post by Dragokas for the download. No source changes required.
Installation:
Click "Get Plugin" and put the .smx file into your servers \addons\sourcemod\plugins\ folder.
Hi Silvers, this looks great - another great plugin! I've installed Left 4 DHooks Direct plugin but I'm a little confused about where stuff goe's in tesla-particle.zip
I put these 4 files into my Server and L4D client folders \left4dead\materials\particle
In principle, there is another option, I hope this works. If the electric ball does not appear immediately when loading the card, but when passing through ...
На русском
В принципе есть еже одна возможность, надеюсь что это сработает. Если аномалия возникает не сразу при загрузке карты, а при ее прохождении, то есть, опять таки случайно, то можно обойтись просто сообщением что была обнаружена аномалия, будьте осторожны.