AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [TF2][PSM] Medic's MvM Shield (v1.2.3, 2015-09-24) (https://forums.alliedmods.net/showthread.php?t=245063)

Wolvan 07-27-2014 22:22

[TF2][PSM] Medic's MvM Shield (v1.2.3, 2015-09-24)
 
17 Attachment(s)
If you guys are running my Plugin on a server, I would love to know the IP and check it!

The Webcompiler won't compile due to me including PermissionsSM Include files, just download the MedicMvMShield_compiled.smx

This works well with my other Plugins, ReviveMarkers! and PermissionsSM

Would love for you guys to add some suggestions I can add to the Plugin, it seems kinda bare to me ^^'

About
This Plugin allows you to spawn Medic's MvM Shield in normal Multiplayer. You can either type medicshield_shield/medicshield_shield2 into the console/chat or you can also use Attack3 (Default: Mouse3) to deploy the shield. It will stay for 10 seconds but will disappear if you switch your weapon away from the medigun.

Features
1.) Easy to use: Just drag the .smx file into your plugins folder and you're set
2.) Small: Not cluttered with unecessary code
3.) Works: Charge to 75% Ubercharge (default, changeable), press Mouse3 and run around with a shield
4.) PermissionsSM Support! Easy Permission Management for your server
5.) Integration into other Plugins: Currently only Adminmenu! Any Plugins I should hook into?
6.) Configurable (ConVars):
I.) Choose between Time-based or Ubercharge-based Cooldown
II.) Both, required charge and Cooldown Time are configurable
III.) Disable the Plugin for everyone or Admins only
IV.) Allow only 1 team to deploy shields

Commands
medicshield_shield - Spawn a level 1 shield if no cooldown.
medicshield_shield2 - Spawn a level 2 shield if no cooldown.
medicshield_info - Show Plugin&Config Info

Permission Nodes [PermissionsSM]
MedicMvMShield.shield.lvl1 - Allow Level 1 Shield deploy
MedicMvMShield.shield.lvl2 - Allow Level 2 Shield deploy
MedicMvMShield.teamOnlyOverride - Allow Shield deploying even if only the other team would be allowed to
MedicMvMShield.Admin - Allow deploying the shield with admin-only mode on

Override Strings
You need to enable Override Strings using revivemarkers_use_override_string
medicshield_shield - Give access to level 1 shield
medicshield_shield2 - Give access to level 2 shield
medicshield_teamonlyoverride - Override One Team Only
medicshield_admin - Use admin functionality

ConVars
medicshield_enable_plugin (1) - Enable or disable the Plugin.
medicshield_recharge_mode (1) - Change Recharge Mode (0 - Time-based recharge, 1 - Ubercharge based recharge).
medicshield_recharge_delay (60) - Change recharge time in seconds if medicshield_recharge_mode is 0
medicshield_required_charge (0.75) - Required charge to deploy a shield if medicshield_recharge_mode is 1.
medicshield_admin_only (0) - Enable or disable admin-only mode.
medicshield_recharge_on_death (1) - Enable or disable recharging the shield on death (only works with time-based recharge)
medicshield_team (0) - Allow only one team to use the shield. 0 - Both teams, 1 - RED, 2 - BLU
medicshield_use_override_strings (0) - Use Override Strings for Permissions
medicshield_version (1.1) - Just an ordinary version ConVar

Installation instructions
1.) Download .smx file below and put it in your plugins folder
2.) Load it with sm plugins load MedicMvMShield or by restarting your server

Dependencies
None

Plugins that use MedicMvMShield
None

Bugs
None so far :)

Planned Features
- Build a metrics System (+SM Extension) and hook this Plugin into it
- Add Forward calls and Natives (if people want/need them)
- Add ConVars to enable shield only for 1 team
Anything else you guys might wanna see being added?

For Developers
Forwards
OnMedicShieldSpawn - Happens when the Shield gets deployed via command or key. Return Plugin_Handled or Plugin_Stop to prevent Shield spawning
OnMedicShieldReady - Gets called when the shield has recharged and the Plugin is about to notify the player. Return Plugin_Handled or Plugin_Stop to prevent notification

Special thanks / Credits
- abrandnewday for creating the Shield Spawn Code I am using. Check out his version!
- Pelipoika for the Ubercharge based cooldown

Servers with my Plugin
The FunForBattle Servers
Spoiler


http://cache.www.gametracker.com/ser...5/b_560x95.png

Media
NONE SO FAR ;_;
If you have any kind of media related to this, I'd love to add it here.

Changelog
Spoiler

Research 07-28-2014 02:59

Re: [TF2] Medic's MvM Shield (v1.0, 2014-07-28)
 
cool. now I can use mouse3 for shield(not using sm_shield2). using one button is more easy for new players.

can you add 'Kill the shield if you switch from your Medigun to your primary/melee' and 'if medic current using primary weapon or melee weapon, shield can't activate(I mean, medic shooting syringe gun or swing bonesaw, he can't start activate shield)'?

romeoschifferling 07-28-2014 05:02

Re: [TF2] Medic's MvM Shield (v1.0, 2014-07-28)
 
but ehm where is the download link?

Wolvan 07-28-2014 07:02

Re: [TF2] Medic's MvM Shield (v1.0, 2014-07-28)
 
Quote:

Originally Posted by Research (Post 2174930)
cool. now I can use mouse3 for shield(not using sm_shield2). using one button is more easy for new players.

can you add 'Kill the shield if you switch from your Medigun to your primary/melee' and 'if medic current using primary weapon or melee weapon, shield can't activate(I mean, medic shooting syringe gun or swing bonesaw, he can't start activate shield)'?

The stuff you asked for is actually already in.

Quote:

Originally Posted by romeoschifferling (Post 2174956)
but ehm where is the download link?

OMFG I'm sorry ;_;. It was 4AM when I created this post, I didn't pay enough attention! Downloadlink is now up, grab it while it's hot

Research 07-28-2014 08:48

Re: [TF2] Medic's MvM Shield (v1.0, 2014-07-28)
 
oh I miss it :s Thanks!

romeoschifferling 07-28-2014 14:44

Re: [TF2] Medic's MvM Shield (v1.0, 2014-07-28)
 
Quote:

Originally Posted by Wolvan (Post 2175017)
OMFG I'm sorry ;_;. It was 4AM when I created this post, I didn't pay enough attention! Downloadlink is now up, grab it while it's hot

that's fine ;D i will test this out right now!

Wolvan 07-28-2014 14:47

Re: [TF2] Medic's MvM Shield (v1.0, 2014-07-28)
 
Quote:

Originally Posted by romeoschifferling (Post 2175266)
that's fine ;D i will test this out right now!

Can't wait for your feedback!

Can't wait for Anyone's Feedback & Feature Suggestions, so go ahead, post them please!

romeoschifferling 07-28-2014 19:06

Re: [TF2] Medic's MvM Shield (v1.0, 2014-07-28)
 
Quote:

Originally Posted by Wolvan (Post 2175267)
Can't wait for your feedback!

Can't wait for Anyone's Feedback & Feature Suggestions, so go ahead, post them please!

This really works!, but somehow the cvars and stuff don't.
I do love the admin menu extention it all works for as far as i saw.
This also works with all the other mediguns, (i'm not sure if it should)
But other then that awesome plugin!
Thanks for sharing it!

Wolvan 07-28-2014 19:08

Re: [TF2] Medic's MvM Shield (v1.0, 2014-07-28)
 
Quote:

Originally Posted by romeoschifferling (Post 2175416)
This really works!, but somehow the cvars and stuff don't.
I do love the admin menu extention it all works for as far as i saw.
This also works with all the other mediguns, (i'm not sure if it should)
But other then that awesome plugin!
Thanks for sharing it!

What do you mean the CVars don't work? And the Admin Menu uses the CVars, so if that works, the CVars itself should as well. what's the problem exactly?

Research 07-28-2014 22:25

Re: [TF2] Medic's MvM Shield (v1.0, 2014-07-28)
 
Request - Cvar: Only RED or Only BLU


All times are GMT -4. The time now is 05:04.

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