Update (10/August/2017) - v1.8.0:
I have "rewrote" the plugin to be compatible with the newest SourceMod stable/dev builds (as of today) and I have removed the dependency of alongub/zipcore's bhop timers.
Instead, I have implemented support for my own bhoptimer instead:
https://github.com/shavitush/bhoptimer - version 1.5b or above (get the latest GitHub commits) is required.
Changes in v1.8.0 (FINAL VERSION):
* Made the plugin compatible with the newest versions of SourceMod.
- Removed checkpoints, as they now exist in my bhoptimer's misc plugin.
- Removed the hit bug fixer. Use Tengu's plugin instead:
https://github.com/tengulawl/scripti...r/boost-fix.sp - it works much better.
- Removed !tpto as it exists in my bhoptimer's misc plugin.
+ Added better support for partnerships - your timer cannot start without your partner starting it, and your timer finishes at the same time it does for your partner.
* Fixed a memory leak.
* Changed chat prints to be done from my bhoptimer. Configure like so:
https://github.com/shavitush/bhoptim...tion:-Messages
---
This plugin is a complete remake of the original Trikz plugin for CS:S by johan123jo, inspired by CrazyTrikz that was originally made for ES.
Requirements:
SourceMod 1.8+
Latest version of
shavit's simple bhoptimer.
[CS:S] Flashbang tools (newest gamedata
here)
Optional requirements:
SteamTools to change the game description. (Download an 0.8.3 release)
CollisionHook to make partners only block themselves with their bodies/flashbangs.
Features:
Game description changing.
Auto flashbang giver.
Auto flashbang switcher.
Trikz menu.
Partners system.
Flashbangs can only hit your partner.
Players can't start their timer without a partner. (Finishing also does it for your client)
Partners must have the same styles to start their timer.
Block toggler.
sv_enableboost/sv_enablebunnyhopping 1 forcer.
Only partners can block you. (depends if the cvar is on 1, which is the default)
Kill a flashbang once it hits somebody. (disabled by default)
Commands:
Code:
sm cmds trikz_redux
[SM] Listing commands for: Trikz (Redux)
[Name] [Type] [Help]
sm_af console Toggle auto flash
sm_as console Toggle auto switch
sm_autoflash console Toggle auto flash
sm_autoswitch console Toggle auto switch
sm_bl console Toggle blocking
sm_block console Toggle blocking
sm_f console Obtain a Flashbang
sm_flash console Obtain a Flashbang
sm_flashbang console Obtain a Flashbang
sm_ghost console Toggle blocking
sm_giveflash console Obtain a Flashbang
sm_mate console Select your Trikz partner.
sm_menu console Trikz menu
sm_nomate console Disable your partnership.
sm_p console Select your Trikz partner.
sm_partner console Select your Trikz partner.
sm_respawn console Respawn yourself
sm_switch console Toggle blocking
sm_t console Trikz menu
sm_trikz console Trikz menu
sm_unp console Disable your partnership.
sm_unpartner console Disable your partnership.
- Commands can be used on chat too with ! or / instead of the sm_ as a prefix as default.
Convars:
Code:
// ConVars for plugin "trikz_redux.smx"
// Trikz (Redux) is enabled?
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_trikzredux_enabled "1"
// If SteamTools' installed, what should be the new game description?
// The original is Counter-Strike: Source.
// Hint: Change to 0 or "none" if you want it to remain the same.
// -
// Default: "CS:S Trikz"
sm_trikzredux_overwrite "CS:S Trikz"
// Require players to have a partner in order to set their solidity to blocking?
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_trikzredux_partnerblock "1"
// Kill a flashbang once it hits someone?
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_trikzredux_killflash "1"
Developers' API:
This plugin comes with an API to use with other plugins, currently, it only supports the partners system.
Code:
/**
* Check if the client has a partner.
*
* @param client Client index.
* @error Throw error if client is invalid.
* @return True if the client has a partner, else false.
*/
native bool Trikz_HasPartner(int client);
/**
* Get the client's current Trikz partner.
*
* @param client Client index.
* @error Throw error if client is invalid.
* @return Trikz partner, or -1 if none.
*/
native int Trikz_FindPartner(int client);
You can request features to be added to the API!
Example of using the API:
Code:
#include <sourcemod>
#undef REQUIRE_PLUGIN
#include <trikz>
#pragma semicolon 1
public void OnPluginStart()
{
RegConsoleCmd("partnerinfo", PartnerInfo);
}
public Action PartnerInfo(int client, int args)
{
PrintToConsole(client, "Partner info:");
PrintToConsole(client, "Has a partner? %s", Trikz_HasPartner(client)? "Yes":"No");
if(Trikz_HasPartner(client))
{
PrintToConsole(client, "Partner name: %N", Trikz_FindPartner(client));
}
return Plugin_Handled;
}
Servers using this plugin:
http://www.gametracker.com/search/?s...l&sort=&order=
Installation:
1. Install the requirements, and the optional requirements if you want to.
2. Download trikz_redux.smx and place it in addons/sourcemod/plugins.
3. Download trikz_redux.phrases.txt and place it in addons/sourcemod/translations.
4. Restart your server or manually load the plugin and viola
Translations:
Currently, this plugin has an English translation only. If you'd like to translate it to your language, I'd like if you do so and attach the file with the new language.
How to translate:
http://wiki.alliedmods.net/Translati...29#File_Format
Changelog:
Code:
Changes in v1.8.0 (FINAL VERSION):
* Made the plugin compatible with the newest versions of SourceMod.
- Removed checkpoints, as they now exist in my bhoptimer's misc plugin.
- Removed the hit bug fixer. Use mev's plugin instead: https://forums.alliedmods.net/showthread.php?p=2250515 - it works much better.
- Removed !tpto as it exists in my bhoptimer's misc plugin.
+ Added better support for partnerships - your timer cannot start without your partner starting it, and your timer finishes at the same time it does for your partner.
* Fixed a memory leak.
* Changed chat prints to be done from my bhoptimer. Configure like so: https://github.com/shavitush/bhoptimer/wiki/2.3.-Configuration:-Messages
v1.7.3 (06 April 2014) -
Fixed a possible crash.
v1.7.2 (31 January 2014) -
Hotfix for Timer 2.0 users. AGAIN
v1.7.1 (31 January 2014) -
Hotfix for Timer 2.0 users.
v1.7.0 (29 January 2014) -
Probably fixed the "ultra flash" bug.
Added a cvar to kill a flashbang once it hits somebody.
v1.6.1 (26 November 2013) -
Fixed a bug with the "sm_trikzredux_partnerblock" cvar.
v1.6.0 (25 November 2013) -
Error fixes.
Hit bug fixer minor update.
Added new cvar "sm_trikzredux_partnerblock".
v1.5.9 (04 November 2013) -
Error fix.
v1.5.8 (03 November 2013) -
Hit fixer improvements: Added some security checks.
v1.5.7 (02 November 2013) -
Hit fixer improvements:
x2+ should work all the times now.
Fixed "megaflash" bug. (MLs turned to ML+MH sometimes)
v1.5.6 (28 October 2013) -
Now SteamTools is no longer required for this plugin to run.
v1.5.5 (26 October 2013) -
Improved the flash hit bug fixer: (Thanks backwards)
Now it's realistic as a real flashboost.
All types of flashboosts are now supported to be fixed. (Before that update, only MH [mega high] was supported, now ML [mega long], 180s, leetstyle boost and some more are supported too)
v1.5.4 (22 October 2013) -
Public release.
Credits:
johan123jo for the original Trikz plugin for SourceMod and a function that I used and helped me.
m20072, ofir753 and xNos for helping me during beta tests of this plugin.
databomb/dataviruset for SM_Hosties 2, I used the code that checks if a player is too close to a wall from them.