• Print

Author Topic: N00b question about walking speed and physgun  (Read 4732 times)

0 Members and 1 Guest are viewing this topic.

Offline CrazySwede

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
N00b question about walking speed and physgun
« on: April 05, 2008, 05:08:14 am »
I own a RP server and I have encountered 2 problems.

How do I modify how fast you walk and run?

And when I use my physgun it doesn't grab the things, as if they were not my own stuff. I only
see the blue laser change color as if it grabbed the stuff but I can no lift them or something like that.

I have checked this up if it was a client issue and it was not. There is something about my server because
other players can't use physgun even on their own things as well.

P.S - Sry about my bad English!

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: N00b question about walking speed and physgun
« Reply #1 on: April 05, 2008, 10:09:53 am »
For walk speed, look at the following function from sandbox and use this function directly or the functions it calls:
Code: Lua
  1.  /*---------------------------------------------------------
  2.     Name: gamemode:SetPlayerSpeed( )
  3.     Desc: Sets the player's run/walk speed
  4. ---------------------------------------------------------*/
  5. function GM:SetPlayerSpeed( ply, walk, run )
  6.  
  7.         ply:SetWalkSpeed( walk )
  8.         ply:SetRunSpeed( run )
  9.          
  10. end

If your physgun isn't working, you are denying all props to be movable.
Experiencing God's grace one day at a time.

  • Print