Welcome, Guest. Please login or register.
Did you miss your activation email?
November 24, 2024, 12:55:29 PM
Home Help Login Register
News: Trouble in Terrorist Town? Site here, forum here.

Zombie Master  |  Other  |  Trouble in Terrorist Town  |  Topic: Changing Player's Run Speed in TTT
Pages: [1]
Author Topic: Changing Player's Run Speed in TTT  (Read 3345 times)
Furious
Poster

Posts: 2


« on: July 13, 2011, 12:44:00 AM »

If I wanted to allow an addon to change a player's run speed how would I go about doing this?  From what I can tell I would want to change (in terrortown/gamemode)

   -- Change some gmod defaults
  ply:SetCanZoom(false)
  ply:SetJumpPower(160)
  ply:SetSpeed(false)
  ply:SetCrouchedWalkSpeed(0.3)


but I also don't know much about lua, and can't tell if TTT has locked the player speed somewhere else.  Also would I want to do ply:SetRunSpeed or ply:SetWalkSpeed in my addon?

Thanks in advance for any help you guys can give.
Bad King Urgrain
Administrator
*****
Posts: 12276



« Reply #1 on: July 13, 2011, 07:16:24 PM »

The only place TTT sets a player's speed is in player_ext.lua, around line 207.
Furious
Poster

Posts: 2


« Reply #2 on: July 14, 2011, 08:13:00 AM »

Cool, thanks for the reply.  Got everything the way I wanted it working.
Pages: [1]
Zombie Master  |  Other  |  Trouble in Terrorist Town  |  Topic: Changing Player's Run Speed in TTT « previous next »
Jump to:  


Login with username, password and session length

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines
Page created in 0.011 seconds with 17 queries.