Welcome, Guest. Please login or register.
Did you miss your activation email?
September 19, 2024, 03:12:53 PM
Home Help Login Register
News: Trouble in Terrorist Town? Site here, forum here.

  Show Posts
Pages: [1]
1  Other / Trouble in Terrorist Town / Re: TTT Icon Issue on: February 29, 2012, 10:16:06 PM
-sigh-
To fix the "downloading icon but not actually downloading it" problem, you need to do the following:
It seems as if you have a fastdl enabled, if so then it doesn't take items out of the addons folder.
To make it download, place the icons inside materials/vgui/ttt or whatever spot instead of addons.

That worked for me.
2  Other / Trouble in Terrorist Town / Re: Death Screams and Player Models on: February 23, 2012, 10:30:21 PM
I think he would already know the scenarios before asking, no need to write it all out next time.
3  Other / Trouble in Terrorist Town / Re: [map] ttt_cyberia_a1 on: February 22, 2012, 10:58:19 PM
Looks epic man!
My friends were looking for a decent "rave" map;)
Loving it.
4  Other / Trouble in Terrorist Town / Re: [Untitled Gaming] Vanilla TTT - 24/7 on: February 22, 2012, 02:08:24 AM
Well, since no one else here is answering questions you asked...
I think you should have anywhere from 16-24 slots (depending on your liking) for your server.
You don't want too many, because then you'll have rdm everywhere.

I made the mistake of making my TTT server 32 slots. Whenever it was full, I had many cases of rdm every round.
Also; add a loadingurl for your server. It's boring these days without them and you can add up a rules page to look at when loading. You don't need to buy a website to do this. Some places have it to where you can have your own page for free with no ads, but you have to code the page yourself.
5  Other / Trouble in Terrorist Town / Re: Rearm scripts refuse to work on: February 17, 2012, 11:18:17 PM
Hey Charrax, I met you and said I saw you on facepunch while playing your server.
Creepy huh?
Anyway, I had this problem for a LONG time and finally figured that
you need to download the newest version of TTT from the website and upload to your server.
6  Other / Trouble in Terrorist Town / Re: Annoying Custom Weapon Error on: February 12, 2012, 01:51:35 PM
I wanted to see the error in this lua, even though I could use a working one at any moment.
I know BKU has a ak47 on his website in the custom weapons section, but again.
I'm sorry I 'stole' a code from pastebin that's nearly the same as any other ak47.
In advance, I do not see this going anywhere, and I apologize for any inconvenience.
7  Other / Trouble in Terrorist Town / Re: Annoying Custom Weapon Error on: February 11, 2012, 11:48:27 PM
I actually have no clue how to steal from caches, and never intend to.
I got this from pastebin and just wanted to fix it up.
I see otherwise now, thanks though.

EDIT: if I stole from a cache, don't you think it would have worked?
8  Other / Trouble in Terrorist Town / Annoying Custom Weapon Error on: February 11, 2012, 10:01:55 PM
I get an error every time I add in this ak47:

if SERVER then
AddCSLuaFile( "shared.lua" )
end

if CLIENT then
  SWEP.PrintName = "AK47"
  SWEP.Slot      = 2 -- add 1 to get the slot number key

  SWEP.ViewModelFOV  = 72
  SWEP.ViewModelFlip = true
end

SWEP.CanBuy = {ROLE_INNOCENT, ROLE_DETECTIVE, ROLE_TRAITOR}
SWEP.Base = "weapon_tttbase"

SWEP.LimitedStock = false
SWEP.NoSights = false
SWEP.IsSilent = false
SWEP.AllowDelete = false
SWEP.AllowDrop = true

SWEP.HoldType = "ar2"

SWEP.Primary.Delay       = 0.08
SWEP.Primary.Recoil      = 1.9
SWEP.Primary.Automatic   = true
SWEP.Primary.Damage      = 13
SWEP.Primary.Cone        = 0.025
SWEP.Primary.Ammo        = "smg1"
SWEP.Primary.ClipSize    = 30
SWEP.Primary.ClipMax     = 60
SWEP.Primary.DefaultClip = 30
SWEP.Primary.Sound       = Sound( "Weapon_AK47.Single" )

SWEP.IronSightsPos = Vector( 6.05, -5, 2.4 )
SWEP.IronSightsAng = Vector( 2.2, -0.1, 0 )

SWEP.ViewModel  = "models/weapons/v_rif_ak47.mdl"
SWEP.WorldModel = "models/weapons/w_rif_ak47.mdl"
SWEP.Kind = WEAPON_HEAVY
SWEP.WeaponID = AMMO_AK47
SWEP.AutoSpawnable = true
SWEP.AmmoEnt = "item_ammo_smg1_ttt"
SWEP.InLoadoutFor = nil
SWEP.AllowDrop = true
SWEP.IsSilent = false
SWEP.NoSights = false

if CLIENT then
SWEP.EquipMenuData = {
     type = "Weapon",
 model="models/weapons/v_rif_ak47.mdl",
     desc = "An AK47. Pew Pew."
  };
  SWEP.Icon = "vgui/ttt/icon_lks_ak47"
end

Help would be appreciated. When I add it the gun it works, but it error's out the Traitor's menu, making the menu blank.
9  Other / Trouble in Terrorist Town / Re: Golden Gun Error on: February 08, 2012, 08:56:37 PM
That worked!
Thanks man :) amazing.
10  Other / Trouble in Terrorist Town / Re: Golden Gun Error on: February 08, 2012, 11:33:19 AM
Indeed, if he shoots an innocent or detective, the owner "person who shot the gun" dies.
Here's the large portion if you need it.

function SWEP:Deploy()
  //self.Weapon:SetMaterial("models/deagle_skin1.vtf")
  self.Weapon:SendWeaponAnim(ACT_VM_DRAW)
  return true
end


function SWEP:PrimaryAttack()
if not self:CanPrimaryAttack() then return end

self.Weapon:SetNextPrimaryFire( CurTime() + self.Primary.Delay )




local trace = util.GetPlayerTrace(self.Owner)
local tr = util.TraceLine(trace)

if tr.Entity:IsPlayer() then
if tr.Entity:IsRole(ROLE_TRAITOR) then

bullet = {}
bullet.Num    = 1
bullet.Src    = self.Owner:GetShootPos()
bullet.Dir    = self.Owner:GetAimVector()
bullet.Spread = Vector(0, 0, 0)
bullet.Tracer = 0
bullet.Force  = 3000
bullet.Damage = 4000
self.Owner:FireBullets(bullet)
self.Weapon:SendWeaponAnim(ACT_VM_PRIMARYATTACK)
self:TakePrimaryAmmo(1)
self.Weapon:EmitSound(Sound( "Weapon_Deagle.Single"  ))


end



if tr.Entity:IsRole(ROLE_INNOCENT) or tr.Entity:IsRole(ROLE_DETECTIVE) then
self.Owner:Kill()
self.Weapon:EmitSound(Sound( "Weapon_Deagle.Single"  ))
self:TakePrimaryAmmo(1)
end
end

self.Weapon:SendWeaponAnim(ACT_VM_PRIMARYATTACK)
self:TakePrimaryAmmo(1)
self.Owner:EmitSound(Sound( "Weapon_Deagle.Single"  ))

end
11  Other / Trouble in Terrorist Town / Golden Gun Error on: February 08, 2012, 02:24:09 AM
I get this error for the golden gun shared.lua
"[weapons\weapon_ttt_goldengun\shared.lua:113] attempt to call method 'Kill' (a nil value)"
Here's that part of the code:

if tr.Entity:IsRole(ROLE_INNOCENT) or tr.Entity:IsRole(ROLE_DETECTIVE) then
self.Owner:Kill()
self.Weapon:EmitSound(Sound( "Weapon_Deagle.Single"  ))
self:TakePrimaryAmmo(1)
end
end

self.Weapon:SendWeaponAnim(ACT_VM_PRIMARYATTACK)
self:TakePrimaryAmmo(1)
self.Owner:EmitSound(Sound( "Weapon_Deagle.Single"  ))

end

Help would be much appreciated, thanks in advance guys :)
12  Other / Trouble in Terrorist Town / Spawning after preparing on: January 25, 2012, 12:49:45 AM
Hello all, I've been having trouble with people not spawning on time.
On the first three maps, everyone spawns when the preparation phase starts.
Some maps after that, no one spawns until the next round starts, and the people alive prior to that are still alive for the preparation.
It's a weird glitch, I'd like some advice! It's very annoying when you die having to sit through the preparation phase.
Thanks in advance all. :)

I don't have ttt_spawn_wave_interval enabled at all.
13  Other / Trouble in Terrorist Town / Re: How Do I turn off Admin Highlights? on: July 03, 2011, 05:12:01 PM
Do you have a custom sb_row color setting? Check there and see if it gives you colored names based on rank
14  Other / Trouble in Terrorist Town / Re: 'Ghost' Players (since update) on: July 03, 2011, 04:48:29 PM
Oh lord.. I get this problem a lot on CSS as well as GMOD. I joined a server, 16/24 and not a single player was on, except for 1 specatator.
I don't know what the problem is, I just right-click, refresh, and it tells me who's in there.
But yes, I'd also like an answer.
15  Other / Trouble in Terrorist Town / Re: Trouble in Terrorist Town Help (Music) on: July 02, 2011, 08:34:53 PM
That hurt man...that really hurt. Do you enjoy talking down to others? :(

Haha, no I do not. I didn't mean AT ALL to sound rude.
16  Other / Trouble in Terrorist Town / Re: Trouble in Terrorist Town Help (Music) on: July 01, 2011, 12:48:47 AM
Resolved on another thread, didn't get hardly any help here....
17  Other / Trouble in Terrorist Town / Re: Trouble in Terrorist Town Help (Music) on: June 29, 2011, 10:10:44 PM

resource.AddFile("sound/ttt/blow.mp3")

local music = {
Sound("ttt/blow.mp3"),

};

local function PlayMusic(wintype)
if wintype == WIN_INNOCENT then
BroadcastLua([[surface.PlaySound(]]..music[math.random(1, table.GetLastValue)]

elseif wintype == WIN_TRAITOR then
BroadcastLua([[surface.PlaySound(]]..music[math.random(1, table.GetLastValue)]

elseif wintype == WIN_TIMELIMIT then
BroadcastLua([[surface.PlaySound(]]..music[math.random(1, table.GetLastValue)]
end
end
hook.Add("TTTEndRound", "MyMusic", PlayMusic)


I tried this, and It didn't work. :(
18  Other / Trouble in Terrorist Town / Trouble in Terrorist Town Help (Music) on: June 29, 2011, 04:14:40 PM
Hello everyone,
I recently made a TTT server a while back, and I'd like to add music at the end of rounds. I read through some posts on this website, and managed to get one working. Here it is:

resource.AddFile("sound/ttt/traitor_win.mp3")
resource.AddFile("sound/ttt/inno_win.mp3")
resource.AddFile("sound/ttt/time_win.mp3")

local function PlayMusic(wintype)
if wintype == WIN_INNOCENT then
BroadcastLua('surface.PlaySound("ttt/inno_win.mp3")')

elseif wintype == WIN_TRAITOR then
BroadcastLua('surface.PlaySound("ttt/traitor_win.mp3") ')

elseif wintype == WIN_TIMELIMIT then
BroadcastLua('surface.PlaySound("ttt/time_win.mp3")')
end
end
hook.Add("TTTEndRound", "MyMusic", PlayMusic)


That one works wonderfully, but I get tired of hearing the same "Traitors Win" and "Innocents Win" all the time. Does anyone know how to make this so it plays a sound from random, no matter who wins? Thanks a bunch C:
Pages: [1]


Login with username, password and session length

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