I tried changing bounds of tf_movement_player_Stun_time and verified that it was set to 0. I was still knocked to 3rd person and could not move.
Now I'm modding what I've posted so far to actually give a weapon for melee instead of depriving him of his oh-so-beloved bat.
Well with my ineperience, and bl4nk's pure awesome, I was able to mangle his givenameditem plugin so that whenever a player spawns, the plugin executes a servercommand.
I do it this way because I couldn't get the call_startfunction to pass the arguments correctly :'(
Feel free to look over what is 98% bl4nk's code in attachment. My addition was:
Code:
public Action:event_PlayerSpawn(Handle:event, const String:name[], bool:dontBroadcast)
{
if (GetConVarInt(cvarSandmanEnable) == 1)
return Plugin_Continue;
new client = GetClientOfUserId(GetEventInt(event, "userid"));
new userid = GetClientUserId(client);
new String:weapString[32];
GetConVarString(cvarWeap, weapString, sizeof(weapString));
decl String:classString[32];
GetConVarString(cvarClass, classString, sizeof(classString));
new TFClassType:class = TF2_GetClass(classString);
if (TF2_GetPlayerClass(client) == class)
{
ServerCommand("sm_givenameditem %s %s", userid, weapString);
}
return Plugin_Continue;
}