Custom Animations using GM:TranslateActivity

Is this possible? Whenever I just try to use it by simple returning the act it puts in to start with, it makes the entire maps walls disappear which just can’t be looked at.

My code is not done whatsoever now, but the plan is to be able to use the listed animations at certain situations. Right now, it was just here for testing reasons:


CustomActs = {}
	CustomActs[1] = ACT_HL2MP_RUN_FAST
	CustomActs[2] = ACT_HL2MP_RUN_CHARGING
	CustomActs[3] = ACT_HL2MP_RUN_PROTECTED

function GM:TranslateActivity(ply, act)

	--if ply:Team() != TEAM_TEST then return act end
	return act
	
	print(tostring(act))

end

Is there an alternative? Or can this be fixes? Is it at all possible to change a players animations to the ones listed above?