Welcome, Guest. Please login or register.
Did you miss your activation email?
September 19, 2024, 11:50:11 PM
Home Help Login Register
News: Zombie Master 2 discussion

  Show Posts
Pages: [1] 2
1  Other / Trouble in Terrorist Town / Re: Small question.. on: January 24, 2011, 03:10:43 PM
Exactly the same error occurs when the line 'local ply = activator' is removed.

Looking at the health station code, I also see this at the top:

function ENT:UseOverride(activator)
  if ValidEntity(activator) and activator:IsPlayer() and activator:IsActive() then
  self:GiveHealth(activator)
  end

Maybe this helps? :P
2  Other / Trouble in Terrorist Town / Re: Small question.. on: January 23, 2011, 10:16:49 PM
Using just activator gives:

attempt to index local 'ply' (a nil value)(Hook: KeyRelease)

Do I need to define what activator is before hand?
3  Other / Trouble in Terrorist Town / Re: Small question.. on: January 23, 2011, 03:02:42 PM
Most of the code is just the health station copied over. I altered some bits but I think this is what you're after:

function ENT:GiveHealth(dmginfo, ply, activator)
local dmginfo = DamageInfo()
dmginfo:SetDamage(50)
dmginfo:SetDamageType(DMG_BULLET)
dmginfo:SetAttacker(self:GetOwner())
dmginfo:SetInflictor(self.Entity)
dmginfo:SetDamageForce(Vector(0, 0, 1000))

local ply = activator()
ply:TakeDamageInfo( dmginfo )

self:EmitSound(failsound)
self:TakeDamage(25, self:GetOwner())
self:SetStoredHealth(math.min(self:GetStoredHealth() - 25))
end

I'm not worried about the values in the dmginfo for now. As you can see I tried local ply = activator() but it didn't work. Basically nil value so I'm guessing I would have to add something else into the code.
4  Other / Trouble in Terrorist Town / Small question.. on: January 22, 2011, 10:49:13 PM
Making a pain station for a ttt server so I thought someone might be able to give a quick answer to this. After reading BKU's thread, I daren't pm him this so... using ply:TakeDamageInfo(dmginfo) what would 'ply' need to be for it to damage the playing using the pain station. E.G. I had set ply as

local ply = self:GetOwner()

Obviously this doesn't work since when someone uses it, it damages the traitor who planted the pain station. For the life of me I cannot think of what I would put even though it looks so simple.

I know this seems like a bit of a weird question, and I'll give more info if you don't understand what I'm saying. Any help is appreciated, cheers.
5  Other / Trouble in Terrorist Town / Re: Trouble in Terrorist Town - a GMod gamemode on: December 21, 2010, 08:09:06 PM
Found a bit of an issue with the hanging bodies. When a body is hung and is swinging from the rope, the server can suffer quite an increase in latency, or lag. I watched for a round as a body was swinging from the rope. The pings before-hand were normal, during the swinging all the pings were in their hundreds then once it stopped swinging and were stationary the pings began to drop again. I thought maybe it was a coincidence. The moment someone threw a discombobulator at all the bodies, they all fell and ofcourse the server started lagging again.

I have it set so only traitors can hang bodies too.

I'm wondering if perhaps this happened before bodies were able to be hung anyway. The time it takes for a body to fall to the floor and become stationary makes any fluctuations unnoticable or unrelatable. Although when bodies have been picked up with magneto sticks nothing seems to happen.


Can you think of anything that might be causing this increase in lag?
6  Other / Trouble in Terrorist Town / Re: Trouble in Terrorist Town - a GMod gamemode on: November 08, 2010, 01:46:09 PM
If anything it will just draw the eye to it. If people just start purposely ignoring a colour in the chat box, then they're just being bad at the game :/
7  Other / Trouble in Terrorist Town / Re: Trouble in Terrorist Town - a GMod gamemode on: November 07, 2010, 11:14:46 PM
Is it possible that the chat can be more noticeable for radio commands like "<name> is a traitor!" ? Such as making it a different colour. Countless times I've spammed someone is a traitor and nobody notices it because it's just spammed away with the rest of the chat. Atleast adding some colour might draw the eye to it some what.

Also perhaps a "<name> is innocent" bind? Sometimes people say someone is the traitor, but then realise they're wrong. Just a thought.
8  Other / Trouble in Terrorist Town / Re: new gmod update broke metamod source on: October 09, 2010, 09:09:07 PM
Well like I say, the server still runs v14 and it hasn't been updated at all which is why it still works with SM. And the problem is there's 12 servers that are linked to sourcebans, 10 of those being css servers but still the valve update broke SM even on there. So removing SM isn't really a possibility for me.
9  Other / Trouble in Terrorist Town / Re: new gmod update broke metamod source on: October 09, 2010, 01:05:06 PM
I don't think it's necessarily the ttt mod crashing it. I think it's the gmod update in general. I just tried a second server with ttt v15 and gmod update 102 and 103, both times it would crash the server on entry. Both times if I took the metamod.vdf file out it wouldn't crash :/

I also have any autobans relating to ttt off, since the ban system is done through sourcebans.
10  Other / Trouble in Terrorist Town / Re: new gmod update broke metamod source on: October 09, 2010, 12:46:24 AM
Only thing I know of is to remove the metamod.vdf file in the addons folder. Granted it will stop sourcemod working at all, but it will fix the server crashing.

Personally I'm keeping it at V14 since admin still works, but the end scoreboard doesn't so I'm waiting on the coders to fix sourcemod.
11  Other / Trouble in Terrorist Town / Re: ULX not working with TTT? on: October 08, 2010, 08:55:51 AM
I run ulx on my listen server for testing stuff with ttt as well. Doesn't seem to cause a problem for me.
12  Other / Trouble in Terrorist Town / Re: Trouble in Terrorist Town - a GMod gamemode on: September 26, 2010, 12:06:09 PM
Perhaps :P Yeah I was the detective trying to destroy my health station so no traitors could use it, but I could still crowbar it, just not shoot it. Never noticed it until now.
13  Other / Trouble in Terrorist Town / Re: Trouble in Terrorist Town - a GMod gamemode on: September 25, 2010, 10:34:56 PM
Latest word is that the error happens if the server isn't fully updated. Note that there was a gmod v101 release shortly after v100.


Thank you for pointing that out. I was told the server was updated, which indeed it was, but only to 100. I just never noticed since it didn't say so on the gmod home page.

The tab errors look to have been fixed by updated to v 101 so :thumbsup: lol.

As a side note, I've noticed you can't destroy a health station with guns now, only a crowbar? Is that intentional?
14  Other / Trouble in Terrorist Town / Re: Trouble in Terrorist Town - a GMod gamemode on: September 23, 2010, 06:25:54 PM
Hmmm well the voice battery made me wonder if that was what was causing it. So I removed the commands/cvars for that in the cfg, and sure enough it fixed the mic errors. Just for test purposes I removed the lua file that has the scoreboard colours in, but the error still occurs when you hold up tab, so I guess I'll need to wait for another gmod update to fix that.
15  Other / Trouble in Terrorist Town / Re: Trouble in Terrorist Town - a GMod gamemode on: September 23, 2010, 05:23:55 PM
Well the errors were only occuring after a gmod update. And as something extra, the error:

[terrortown\gamemode\cl_voice.lua:550] attempt to call method 'IsAdmin' (a nil value)(Hook: Tick)

only occurs during the round phase. The beginning of the round, the end of the round, and when you're dead or spectate doesn't bring this error up when you talk on the mic.

The error for tab I'm not sure what's causing that.
16  Other / Trouble in Terrorist Town / Re: Trouble in Terrorist Town - a GMod gamemode on: September 23, 2010, 04:37:21 PM
[terrortown\gamemode\vgui\sb_row.lua:63] attempt to call method 'IsAdmin' (a nil value)(Hook: TTTScoreboardColorForPlayer)
TTTScoreboardColorForPlayer hook returned something that isn't a color!

When you press tab.

[terrortown\gamemode\cl_voice.lua:550] attempt to call method 'IsAdmin' (a nil value)(Hook: Tick)

When you press your key to talk on the mic.

Both get spammed if you hold them up on your screen. Right now I'm assuming it's to do with my name being a different colour on the tab, but on the mic others are reporting the same error.
17  Other / Trouble in Terrorist Town / Re: Your custom TTT Packs on: August 28, 2010, 11:56:03 AM
I meant like small addons. I Saw a server where, a detective would have a deerstalker, and would have new weapons, which arent normally included,  On different servers!


You can add custom weapons, but you'll need to refer to BKU's custom weps making tutorial to make it compatible with ttt. There are specific things you need to alter in the (I'm guessing) shared.lua file so they can be bought or spawn with them or whatever. I haven't done this myself for my server but I'm sure that's how weapons go. As for other addons... what are you looking for? Admin addons?
18  Other / Trouble in Terrorist Town / Re: Small question on: August 28, 2010, 11:45:13 AM
Well I mentioned using tortoise svn to download addons for a server, and a member in the community just stated garry had his own version which was somehow 'better' and I couldn't find it.

Also with the previous update (96) garry was testing an update to fix the linux binaries and was 'throwing' them at the svn and I wanted to know what it was, so I could try myself.

As for the ttt svn, the latest version is always here so I've never had a need for it unless for whatever reason it wasn't on this website.

Thank you for all the info bku. Very helpful :)
19  Other / Trouble in Terrorist Town / Small question on: August 27, 2010, 06:40:20 PM
Someone in my community mentioned that garrysmod has its own svn download now, or that garrys released his own svn similar to tortoise. Is this true? If so where can I download it?

I'm assuming TTT comes with the download aswell.

Thanks to all who reply.
20  Other / Trouble in Terrorist Town / Re: Trouble in Terrorist Town - a GMod gamemode on: August 05, 2010, 07:54:09 PM
I've always thought the guns on gmod were a bit odd. Shooting someone in the head with a deagle makes them 'hurt' and shooting someone in the head point blank with a shotgun is 'wounded'. Doesn't make sense, but I guess it's just one of those things you have to put up with. Not that the lag helps either >.>
Pages: [1] 2


Login with username, password and session length

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