Raised This Month: $ Target: $400
 0% 

[TF2] Effects (spells & canteen & buildings)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
avi9526
Senior Member
Join Date: Apr 2013
Location: Ukraine
Plugin ID:
3977
Plugin Version:
2.1.2
Plugin Category:
Fun Stuff
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
    7 
    Plugin Description:
    Combine cool stuff like halloween spells, mvm canteen and sentry/dispenser building to one menu
    Old 11-24-2013 , 11:25   [TF2] Effects (spells & canteen & buildings)
    Reply With Quote #1

    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:
    Code:
    sm_spell sentry1
    will build a sentry - all above commands work same in case if argument specified. For instant list of effects write in chat
    Code:
    !spells help
    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
    Attached Files
    File Type: sp Get Plugin or Get Source (effects.sp - 3192 views - 56.9 KB)

    Last edited by avi9526; 04-19-2014 at 14:06. Reason: new version
    avi9526 is offline
     



    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 12:17.


    Powered by vBulletin®
    Copyright ©2000 - 2024, vBulletin Solutions, Inc.
    Theme made by Freecode