This is continuation of «spells.sp» from here https://forums.alliedmods.net/showthread.php?t=228982
Description:
Allows players to use cool stuff. See list bellow. Plugin was designed for fun and MvM servers. Canteen charges work for 15 seconds - it's hardcoded at this moment. After connection to server or usage of the effect player must wait to use it again - this specified by cvar's below (by default wait time is 60 seconds for any effect - recommend to change it).
List of effects:
Code:
Spells:
transpose - Transpose
fireball - Fireball
bats - Bats
lightning - Lightning
skeleton - Skeleton
monoculus - Monoculus
meteors - Meteor Shower
Canteen:
uber - Uber Charge
crit - Critical Charge
regen - Refill Ammo and Health
cloak - Cloak
base - Teleport to the Base
speed - Speed-up
heal - Add Health
Build:
sentry1 - Build Sentry Level 1
sentry2 - Build Sentry Level 2
sentry3 - Build Sentry Level 3
sentrymini - Build Sentry Mini
disp - Build Dispenser
killaim - Destroy Building at Aim
killbuild - Destroy All Buildings
Console commands:
Code:
sm_spell or sm_spells - show spells menu
sm_canteen - show canteen menu
sm_build - show building menu
sm_effect or sm_effects - show main menu with commands from above
You can use effect with console:
will build a sentry - all above commands work same in case if argument specified. For instant list of effects write in chat
Access control:
These commands NOT exist, they just used to access control. By default effects available for anyone, if You want to change it - add to your «/addons/sourcemod/configs/admin_overrides.cfg» following lines
Code:
"sm_effects_access" "a" // access to effects only for players with "a" access flag
"sm_effects_admin" "c" // players who has access to this command considered as admins
"sm_effects_premium" "a" // players who has access to this command considered as premium
Console variables:
Add this to your server configuration file.
Negative value (-1) will disable effect
Code:
sm_waitmult_admin 0.5 // wait time multiplier for admins (those, who has access to sm_effects_admin command)
sm_waitmult_premium 0.75 // wait time multiplier for premium players (those, who has access to sm_effects_premium command)
sm_buildlimit 1 // how many building player can build
// Delay for spells
sm_spelldelay_fireball 10
sm_spelldelay_bats 12
sm_spelldelay_transpose 1
sm_spelldelay_lightning 45
sm_spelldelay_monoculus 240
sm_spelldelay_meteors 180
sm_spelldelay_skeleton 55
// Delay for canteen
sm_chargedelay_uber 60
sm_chargedelay_crit 75
sm_chargedelay_regen 100
sm_chargedelay_cloak 15
sm_chargedelay_base 25
sm_chargedelay_heal 520
sm_chargedelay_speed 35
// Delay for buildings
sm_builddelay_sentry1 15
sm_builddelay_sentry2 30
sm_builddelay_sentry3 60
sm_builddelay_sentrymini 20
sm_builddelay_disp 10
sm_builddelay_killaim 1
sm_builddelay_killbuild 1
Development:
Latest version available here
https://bitbucket.org/avi9526/spells/src but it may not work properly.
Known issues:
Canteen, spells and building, unfortunately, doesn't work properly as default ones…
Cloak was reported to crash server - in this case you can disable it with
Code:
sm_chargedelay_cloak -1
Changelog:
Code:
2.1.2 - Access control. Particle decoration for some effects.
2.0.6 - Posted as separated plugin