Welcome, Guest. Please login or register.
Did you miss your activation email?
November 22, 2024, 06:18:05 PM
Home Help Login Register
News: Zombie Master 2 discussion

  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
3  Other / Trouble in Terrorist Town / Re: Custom Equipment Help on: December 31, 2010, 12:53:39 AM
the whowhatnow?
4  Other / Trouble in Terrorist Town / Re: HUGE balance [split from main thread] on: December 30, 2010, 05:52:16 PM
shot 50 bullets and got a kill. and almost killed detective. With a kill and an almost kill i think 50 bullets is enough to blame for hitboxes
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...
7  Other / Trouble in Terrorist Town / Re: Detective Equipment- Camera on: December 30, 2010, 02:59:56 AM
Sorry for advertising my own thread on this one but i rly need some help. Plus its not like any important conversations are going on in here. http://www.zombiemaster.org/smf/index.php?topic=10563.0
8  Other / Trouble in Terrorist Town / Re: Detective Equipment- Camera on: December 29, 2010, 09:17:47 PM
Imagine if the camara was introduced along with the killswitch


omfg...
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.
12  Other / Trouble in Terrorist Town / Re: Weapon and Ammo Checks [Warning: Big Post!] on: December 27, 2010, 03:30:45 AM
Or ZM if I remember correctly..


I never played ZM but u can do it for sure in Zombie Panic : Source
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
14  Other / Trouble in Terrorist Town / Re: Newb Detectives on: November 24, 2010, 10:51:23 PM
Or, to solve this, you can change the default position of the checkbox to on?? (Auto-Scan by default)
15  Other / Trouble in Terrorist Town / Re: ttt_lot on: November 24, 2010, 10:46:48 PM
This is a very, very, very sexy looking map. Very sexy.
16  Other / Trouble in Terrorist Town / Re: Knife balance discussion on: October 16, 2010, 09:45:18 PM
Faster teleport
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.