Raised This Month: $51 Target: $400
 12% 

[TF2] Effects (spells & canteen & buildings)


Post New Thread Reply   
 
Thread Tools Display Modes
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:
    3 
    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 - 3150 views - 56.9 KB)

    Last edited by avi9526; 04-19-2014 at 14:06. Reason: new version
    avi9526 is offline
    avi9526
    Senior Member
    Join Date: Apr 2013
    Location: Ukraine
    Old 11-27-2013 , 14:46   Re: [TF2] Effects (spells & canteen & buildings)
    Reply With Quote #2

    New test version 2.0.7 - not posting in main message because testing
    Trying to use particles as decoration for some effects.
    TODO & FIX:
    1) Incorrect handling of particles can make problems (previous test versions have removed weapons etc … when try remove particle entity)
    2) Eye light particles can be attached only to player classes that has 2 eyes (has attachement parts called "righteye" and "lefteye")
    Pyro seems also can have eye light being attached to his mask, but I don't know how this attachment part called.
    3) Robot models don't have "righteye" and "lefteye" attachment parts.

    Screen shots:

    team color eye light for crit charge


    building appear

    building disappear

    same crit charge decoration on scout

    uber charge - green eye light decoration
    Attached Files
    File Type: sp Get Plugin or Get Source (effects.sp - 1347 views - 57.9 KB)
    __________________

    Last edited by avi9526; 11-27-2013 at 14:47.
    avi9526 is offline
    StayOx
    SourceMod Donor
    Join Date: Jun 2012
    Location: Gliese 581g
    Old 12-01-2013 , 19:49   Re: [TF2] Effects (spells & canteen & buildings)
    Reply With Quote #3

    This plugin is very fun, good job
    StayOx is offline
    avi9526
    Senior Member
    Join Date: Apr 2013
    Location: Ukraine
    Old 12-16-2013 , 16:03   Re: [TF2] Effects (spells & canteen & buildings)
    Reply With Quote #4

    Guys, when you install this mod on your server - please, notify other admins and players about it. Cause I joined some server from Poland, start «raping» players with this mod and get banned for hax… lol

    PS
    It was 2 most awesome minutes in all my TF2 gameplay )
    __________________

    Last edited by avi9526; 12-16-2013 at 16:05.
    avi9526 is offline
    StayOx
    SourceMod Donor
    Join Date: Jun 2012
    Location: Gliese 581g
    Old 12-17-2013 , 00:36   Re: [TF2] Effects (spells & canteen & buildings)
    Reply With Quote #5

    Quote:
    Originally Posted by avi9526 View Post
    Guys, when you install this mod on your server - please, notify other admins and players about it. Cause I joined some server from Poland, start «raping» players with this mod and get banned for hax… lol

    PS
    It was 2 most awesome minutes in all my TF2 gameplay )
    banned by Steam VAC?!!
    StayOx is offline
    napalm00
    Veteran Member
    Join Date: Jun 2011
    Location: Italy, sadly
    Old 12-17-2013 , 00:59   Re: [TF2] Effects (spells & canteen & buildings)
    Reply With Quote #6

    Quote:
    Originally Posted by StayOx View Post
    banned by Steam VAC?!!
    Yes and Gabe personally burnt his house down and murdered his family.
    __________________
    napalm00 is offline
    StayOx
    SourceMod Donor
    Join Date: Jun 2012
    Location: Gliese 581g
    Old 12-17-2013 , 01:21   Re: [TF2] Effects (spells & canteen & buildings)
    Reply With Quote #7

    Quote:
    Originally Posted by napalm00 View Post
    Yes and Gabe personally burnt his house down and murdered his family.
    Spoiler


    Last edited by StayOx; 03-31-2014 at 03:28.
    StayOx is offline
    avi9526
    Senior Member
    Join Date: Apr 2013
    Location: Ukraine
    Old 12-17-2013 , 04:23   Re: [TF2] Effects (spells & canteen & buildings)
    Reply With Quote #8

    Quote:
    Originally Posted by StayOx View Post
    banned by Steam VAC?!!
    no, by admin, which didn't know this mod was installed on his server)
    __________________
    avi9526 is offline
    StayOx
    SourceMod Donor
    Join Date: Jun 2012
    Location: Gliese 581g
    Old 12-17-2013 , 08:47   Re: [TF2] Effects (spells & canteen & buildings)
    Reply With Quote #9

    Quote:
    Originally Posted by avi9526 View Post
    no, by admin, which didn't know this mod was installed on his server)
    ah ok, actually I can not tell whether it is possible to get banned by vac because of a plugin, so my noob question, There are some pretty crazy plugins eg: #1 and #2 out there xD
    StayOx is offline
    avi9526
    Senior Member
    Join Date: Apr 2013
    Location: Ukraine
    Old 12-27-2013 , 16:18   Re: [TF2] Effects (spells & canteen & buildings)
    Reply With Quote #10

    Mr.Orion, huge thanks for this. But there is still one big problem - how to detect which attachment part currently available, and also hook player model change (if player used !robot or etc)…
    __________________
    avi9526 is offline
    Reply



    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 05:50.


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