AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [TF2] Add/Remove Condition (https://forums.alliedmods.net/showthread.php?t=326582)

Teamkiller324 08-06-2020 22:57

[TF2] Add/Remove Condition
 
[TF2] Add/Remove Conditon

Description
Add and remove conditions on targets
This supports the other Team Fortress 2 variants aswell.

Commands
1. sm_addcond <target> <condition number id> <time/seconds- Add a condition to the specified target. Optionally in seconds
3. sm_removecond <target> <condition number id> - Remove a condition from the specified target

ConVars
1. sm_addcond_chat - Determine if only the client or everyone can see the condition outputs. Default: 1

Plans
1. Merge sm_addcond and sm_addcond2 into one. Planned Version 2.2.0 (Done)
2. Fix sm_removecond not working properly. Planned Version 2.2.0 (Done)
3. Clean up the code and work on a include for the plugin. Planned Verison 2.2.0 (Done)
4. Add translation support.

TF2 Condition list can be found here

Dependencies
You will need sm_addcond.inc file to compile the plugin, found inside the scripting folder in the zip you downloaded.

Changelog
Quote:


Version 2.2.0 - February 22nd, 2021
+ Cleaned up & updated the code.
+ Fixed sm_addcond & sm_removecond to work properly.
- Removed command sm_addcond2.
+ Merged sm_addcond and sm_addcond2 into one command.
+ Updated to now require sm_addcond include file to compile.

Version 2.1.0 - August 8th, 2020
+ Updated plugin to new syntax & declarations
+ Cleaned up code
+ Added condition 128 to the condition list

Version 2.0.3
+ Added a error message that if you remove condition on a target that doesn't have the condition you specify, it will now show a error message

Version 2.0.2
+ Fixed addcond chat announce
+ Fixed some more dumb errors in the code

Version 2.0.1
+ Fixed a dumb error in the code

Version 2.0
+ Loads of changes.
+ Fixed targetting leading to chat spam.
+ Cleaned up the code
+ Added ability to pick @random in target to pick a random target for the specific condition
+ Corrected some of the condition descriptions

Version 1.1
+ Fixed targetting replying back "this may only work ingame" as if you were server console

Version 1.0
+ Initial Release


GitHub Repository | Latest Version


All times are GMT -4. The time now is 21:01.

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