Quote:
Originally Posted by ExtraSpeeed
sm_tf2jail_microphonecheck_enable "0"
I can't help with colors because i have 5.4.0. You can change it in cfg file.
|
I've tried changing cvars but these were mostly uneffective.
Also I've fixed most of the issues. Colors - by switching code used to remove color with code that adds colors for warden/rebels/freeday. Makes no sense but it worked.
Problems with people being unable to talk were fixed in the latest TF2Jail, I was just dumb and forgot to "sv_alltalk 1".
Also I would like you to help me with TF2Jail LR plugins. Here's one of them - simple enough but it works.
Code:
#pragma semicolon 1
#include <sourcemod>
#include <tf2jail>
/**
* Called when a last request is about to be executed.
*
* @param Handler String or text called by the Handler in the Last Request configuration file. (Use this to differentiate your custom LRs)
* @noreturn
**/
public TF2Jail_OnLastRequestExecute(const String:Handler[])
{
if (StrEqual(Handler, "LR_RapidRocketsDayHP"))
{
ServerCommand("sm_setclass @all \"Soldier\" ");
ServerCommand("sm_hp @all \"100000\"");
CreateTimer(0.1, GiveWeapon);
}
}
public Action:GiveWeapon(Handle:timer)
{
ServerCommand("sm_gi @all 18 1 50 8 0 0 tf_weapon_rocketlauncher \"2 ; 100.0\" \"4 ; 91.0\" \"6 ; 0.25\" \"110 ; 500.0\" \"26 ; 250.0\" \"31 ; 10.0\" \"107 ; 3.0\" \"97 ; 0.4\" \"134 ; 4.0\" ");
}
Of course we all hate using ServerCommand and although it works, I would like to use some proper code. TF2_SetPlayerClass() instead of sm_setclass, TF2_RegeneratePlayer()/SetEntityHealth() (?) instead of sm_hp... But I'm not sure how to implement targetting the "client" as you're supposed to do.
Could anyone help me?