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

[TF2] TF2Jail (Jailbreak for TF2)


Post New Thread Reply   
 
Thread Tools Display Modes
kamild1996
Senior Member
Join Date: May 2011
Old 09-08-2015 , 15:46   Re: [TF2] TF2Jail (Jailbreak for TF2) (5.5.4 - Last Updated: August 28th, 2015)
Reply With Quote #621

Quote:
Originally Posted by ExtraSpeeed View Post
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?
kamild1996 is offline
J Triggs
New Member
Join Date: Sep 2015
Old 09-09-2015 , 20:29   Re: [TF2] TF2Jail (Jailbreak for TF2) (5.5.4 - Last Updated: August 28th, 2015)
Reply With Quote #622

Quote:
Originally Posted by kamild1996 View Post
-snip-
There is an LR config (addons/sourcemod/configs/tf2jail/lastrequests.cfg), you don't need to make plugins for these things.

Also, you said you fixed your colors, but don't know why it worked?
What your supposed to do for colors is edit "RoleRenderers" (addons/sourcemod/configs/tf2jail/rolerenderers.cfg) and the one color in the TF2Jail config (cfg/sourcemod/TF2Jail.cfg), the rolerenderers changes will set that role to that color when need be. The TF2Jail config color will set the reset color (255, 255, 255, 255), if this color is set to (256, 256, 256, 256) then this will cause players to go invisible, 255... is white. TF2 doesn't support white like this on players (maybe other entities haven't bothered checking) so this will reset the players color.
__________________
J Triggs is offline
kamild1996
Senior Member
Join Date: May 2011
Old 09-10-2015 , 03:05   Re: [TF2] TF2Jail (Jailbreak for TF2) (5.5.4 - Last Updated: August 28th, 2015)
Reply With Quote #623

Quote:
Originally Posted by J Triggs View Post
There is an LR config (addons/sourcemod/configs/tf2jail/lastrequests.cfg), you don't need to make plugins for these things.

Also, you said you fixed your colors, but don't know why it worked?
What your supposed to do for colors is edit "RoleRenderers" (addons/sourcemod/configs/tf2jail/rolerenderers.cfg) and the one color in the TF2Jail config (cfg/sourcemod/TF2Jail.cfg), the rolerenderers changes will set that role to that color when need be. The TF2Jail config color will set the reset color (255, 255, 255, 255), if this color is set to (256, 256, 256, 256) then this will cause players to go invisible, 255... is white. TF2 doesn't support white like this on players (maybe other entities haven't bothered checking) so this will reset the players color.
When those commands get executed all at once, they do not work properly - you can see that I've slightly delayed the sm_gi command because of that. Also this plugin might get a little bit more advanced after some time, when I'll decide to eg. give specific weapons only to specific classes. That's why I want to switch over to plugins now instead of "executecmd".
Also regarding colors, what was happening is that instead of setting the color to black, it wasnt setting any color at all. And when I wanted to remove the color, it changed target's color to black... Changing the colors in the config could probably work (I've completely forgot about that lol) but it's working now so I'm not going to mess with that anymore (maybe when I decide to do another upgrade...).

PS: There are weird logic problems in the entire plugin, not sure what's happening with them... Of course it's not just colors.

Last edited by kamild1996; 09-10-2015 at 13:12.
kamild1996 is offline
NickischLP
Senior Member
Join Date: Jun 2013
Location: Germany
Old 09-12-2015 , 08:26   Re: [TF2] TF2Jail (Jailbreak for TF2) (5.5.4 - Last Updated: August 28th, 2015)
Reply With Quote #624

My wardmodel has no walking animation.

How to fix that?

Greetings

NickischLP
__________________
NickischLP is offline
Send a message via Skype™ to NickischLP
kVNPanda
AlliedModders Donor
Join Date: Mar 2014
Location: Europe?
Old 09-16-2015 , 07:52   Re: [TF2] TF2Jail (Jailbreak for TF2) (5.5.4 - Last Updated: August 28th, 2015)
Reply With Quote #625

Quote:
Originally Posted by ExtraSpeeed View Post
sm_tf2jail_microphonecheck_enable "0"
I can't help with colors because i have 5.4.0. You can change it in cfg file.
setting sm_tf2jail_microphonecheck_enable to 0 didnt help in my case, mutes are still buggy.
any other solution for that? or might it be even better to jump back to 5.4.0?

thanks.
__________________

kVNPanda is offline
Drixevel
AlliedModders Donor
Join Date: Sep 2009
Location: Somewhere headbangin'
Old 09-16-2015 , 09:28   Re: [TF2] TF2Jail (Jailbreak for TF2) (5.5.4 - Last Updated: August 28th, 2015)
Reply With Quote #626

Quote:
Originally Posted by kVNPanda View Post
setting sm_tf2jail_microphonecheck_enable to 0 didnt help in my case, mutes are still buggy.
any other solution for that? or might it be even better to jump back to 5.4.0?

thanks.
Add me on Steam please, thanks.
Drixevel is offline
ExtraSpeeed
Member
Join Date: Mar 2015
Location: Russia, Moscow
Old 09-17-2015 , 10:03   Re: [TF2] TF2Jail (Jailbreak for TF2) (5.5.4 - Last Updated: August 28th, 2015)
Reply With Quote #627

Quote:
Originally Posted by kVNPanda View Post
setting sm_tf2jail_microphonecheck_enable to 0 didnt help in my case, mutes are still buggy.
any other solution for that? or might it be even better to jump back to 5.4.0?

thanks.
On my server muted doesn't work. Dead can talk. I many things changed, but not helped
__________________
ExtraSpeeed is offline
Send a message via Skype™ to ExtraSpeeed
ExtraSpeeed
Member
Join Date: Mar 2015
Location: Russia, Moscow
Old 09-17-2015 , 10:06   Re: [TF2] TF2Jail (Jailbreak for TF2) (5.5.4 - Last Updated: August 28th, 2015)
Reply With Quote #628

Quote:
Originally Posted by NickischLP View Post
My wardmodel has no walking animation.

How to fix that?

Greetings

NickischLP
On my server, too. I think any thing in the code of the plugin, namely addtodownload, or all the same in TF2 animation differently is issued.
You can see in the example, the model manager plugin, it all works, i.e. the model is animated. The matter in issue.
__________________
ExtraSpeeed is offline
Send a message via Skype™ to ExtraSpeeed
XaxaXoxo
Senior Member
Join Date: Feb 2011
Old 09-17-2015 , 10:15   Re: [TF2] TF2Jail (Jailbreak for TF2) (5.5.4 - Last Updated: August 28th, 2015)
Reply With Quote #629

Animation
Code:
SetEntProp(client, Prop_Send, "m_bUseClassAnimations", 1);
XaxaXoxo is offline
ExtraSpeeed
Member
Join Date: Mar 2015
Location: Russia, Moscow
Old 09-17-2015 , 10:30   Re: [TF2] TF2Jail (Jailbreak for TF2) (5.5.4 - Last Updated: August 28th, 2015)
Reply With Quote #630

Quote:
Originally Posted by XaxaXoxo View Post
Animation
Code:
SetEntProp(client, Prop_Send, "m_bUseClassAnimations", 1);
thx
__________________
ExtraSpeeed is offline
Send a message via Skype™ to ExtraSpeeed
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 19:05.


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