Show Posts
|
Pages: [1]
|
1
|
Other / Trouble in Terrorist Town / Re: Coding help
|
on: January 31, 2011, 04:09:04 PM
|
One simple option is replacing the function: -- In an AddCSLua'd client script...
local function MyHealthToString(health) -- code here end
local function ReplaceHealthToString() util.HealthToString = MyHealthToString end hook.Add("Initialize", "bla", ReplaceHealthToString)
Of course, your pasted code will error because it is using "if x = y" instead of "if x == y". Thank you for your help and if x = y is how it initialy was in the util file but i guess ur rite. Also being a new coder, I dont know what AddCSLua is or where to put the changed code. Sorry for being such a noob :P
|
|
|
2
|
Other / Trouble in Terrorist Town / Coding help
|
on: January 31, 2011, 04:27:20 AM
|
Hey guys, me again working on the same thing after stopping for a while and I was wanting to taking it a step further and making it work without changing the actual base files. How would i change the health status eg. "Healthy" "Wounded" "Hurt" etc. without screwing with the util.lua file? Here is how it looks in the util.lua file at the moment. Please try to help me, thank you. local function HealthToString(health) if makeup = 0 or makeup = nil then if health > 90 then return "Healthy", healthcolors.healthy elseif health > 70 then return "Hurt", healthcolors.hurt elseif health > 45 then return "Wounded", healthcolors.wounded elseif health > 20 then return "Badly Wounded", healthcolors.badwound else return "Near Death", healthcolors.death end elseif makeup = 100 then return "Healthy", healthcolors.healthy elseif makeup = 80 then return "Hurt", healthcolors.hurt elseif makeup = 69 then return "Wounded", healthcolors.wounded elseif makeup = 44 then return "Badly Wounded", healthcolors.badwound elseif makeup = 19 then return "Near Death", healthcolors.death end end
|
|
|
5
|
Other / Trouble in Terrorist Town / Re: HUGE balance [split from main thread]
|
on: December 30, 2010, 03:51:21 PM
|
Here's a quick video of the HUGE in action. no it's not my video [youtube]http://www.youtube.com/watch?v=SvxFDN5yvks[/youtube]
This could be blamed on hitboxes. For example, i walked up to a guy with shotgun, and at point blank range shot at his face, he lost no hp. What can u say, shit happens. Also, i find huge usefull when you are really close to somebody. And yes, peircing would be awesome
|
|
|
6
|
Other / Trouble in Terrorist Town / Re: Knife Balance?
|
on: December 30, 2010, 04:21:48 AM
|
I love deep breakdown of posts going down in here XD. On topic though, I'm sure that this was mentioned a couple thousand times here, but the knives throwing arc is horrible, and dont go saying, "lurn2aim" or something because, u know that it sucks 2 but won't admit it...
|
|
|
9
|
Other / Trouble in Terrorist Town / Re: Detective Equipment- Camera
|
on: December 29, 2010, 08:21:09 PM
|
All this really does is allow detectives to find traitors faster.
What happens with the Decoy? And extending the time the DNA can be scanned for is OP. Some traitors hide behind other people to make it seem like its scanning for them, and a traitor can evade suspicion even when a detective has his DNA, there are far too maky things being changed and I just dislike this idea overall
|
|
|
10
|
Other / Trouble in Terrorist Town / Re: Detective Equipment- Camera
|
on: December 29, 2010, 06:15:14 PM
|
Bro, these ideas you're posting like the killswitch and the camera, they are way OP, it has to be balanced. If this item was added, rounds would end as soon as they start. TTT really needs balance right now. So before you post anything else, make sure that it wont bring an overhaul of power to either Detectives or Innocents
|
|
|
11
|
Other / Trouble in Terrorist Town / Custom Equipment Help
|
on: December 27, 2010, 10:25:45 PM
|
Alright so i created a custom piece of traitor equipment. It has no model and is similar to the disguiser. I have the actual makeupkit.lua file in the gamemode folder and I edited the equip_items_shd.lua file in accordance, I followed all instructions left in the comments. When I make a game and open the traitor menu, everything but it appears, and it gets pretty frustrating. Someone please help and tell me if i have to create anything else or to edit anything. I noticed that I never defined makeupkit.lua as EQUIP_MAKEUP where would I be able to do that? Someone please help me out. Thanks in advance.
|
|
|
13
|
Other / Trouble in Terrorist Town / Re: Traitor Equipment Idea: Makeup Kit
|
on: December 24, 2010, 03:03:42 AM
|
sry for the bump, but i noticed that you would have to screw with the targetid file in order to make this happen, I already have an idea of how to do it and actually messed around with the targetid file, to correspond that idea, but i came across a few problems. The fist one is that i don't know how to make the damn thing! (how i did it is sort of like the radio, you click on the status u want displayed) How do i make the window appear in the traitor menu? How do I make those buttons? How do i do anything with it. A tutorial for coding those types of equipments would be greatly appreciated. Second, I think it will be really, really hard to make the status change along with your health. Again, any tutorials would be awesome, whether its a specific tutorial or a lua for dummies tutorial. thanks in advance
|
|
|
|
|