Advertisement
Guest User

Untitled

a guest
May 6th, 2016
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. hook.Add("Move", "SCPsMove", function(player, moveData)
  2. if (team.GetName(player:Team()) == "SCP-173") then
  3. moveData:SetMaxSpeed(0);
  4. elseif (team.GetName(player:Team()) == "SCP-106") then
  5. if (player:GetMoveType() != MOVETYPE_NOCLIP) then
  6. moveData:SetMaxSpeed(50);
  7. else
  8. local velocity = Get106Vel(player);
  9.  
  10. if (velocity != Vector(0, 0, 0)) then
  11. moveData:SetOrigin(moveData:GetOrigin() + (velocity * FrameTime()))
  12. moveData:SetVelocity(velocity);
  13.  
  14. return true;
  15. end;
  16. end;
  17. end;
  18. end);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement