Need to increase walking speed while holding M9 TTT
3 replies, posted
Here is my code for the M9
[CODE]if SERVER then
AddCSLuaFile( "shared.lua" )
end
SWEP.HoldType = "pistol"
if CLIENT then
SWEP.PrintName = "M9"
SWEP.Author = "TTT"
SWEP.Slot = 1
SWEP.SlotPos = 1
SWEP.Icon = "VGUI/ttt/icon_pistol"
end
SWEP.Base = "weapon_tttbase"
SWEP.Spawnable = true
SWEP.AdminSpawnable = true
SWEP.Kind = WEAPON_PISTOL
SWEP.Primary.Ammo = "Pistol"
SWEP.Primary.Recoil = 1
SWEP.Primary.Damage = 10
SWEP.Primary.Delay = 0.35
SWEP.Primary.Cone = 0.02
SWEP.Primary.ClipSize = 7
SWEP.Primary.ClipMax = 80
SWEP.Primary.DefaultClip = 7
SWEP.Primary.Automatic = false
SWEP.HeadshotMultiplier = 15
SWEP.AutoSpawnable = false
SWEP.AmmoEnt = "item_ammo_pistol_ttt"
SWEP.Primary.Sound = Sound( "Weapon_FiveSeven.Single" )
SWEP.ViewModel = "models/weapons/beretta_M9.mdl"
SWEP.WorldModel = "models/weapons/w_pist_fiveseven.mdl"
[/CODE]
I want to alter it to allow a player using it to run at a different speed (Default speed it 220 I want the player holding this to run at around 270)
Does anyone know how to go about this?
TTT overrides that, use the hook "TTTPlayerSpeed" or something like that. Check the ttt website
I've tried using that hook with no great success here [url]http://facepunch.com/showthread.php?t=1380125[/url]
I was hopping there would be some precedent with other weapons I could draw off of.
I'd like to make players run faster with certain melee weapons equipped so they would be able to overtake people for a backstab.
Sorry, you need to Log In to post a reply to this thread.