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

  Show Posts
Pages: [1]
1  Other / Trouble in Terrorist Town / Re: Rescricting times map played? on: February 15, 2011, 09:53:02 PM
Thanks, I was looking for this.  I'll give it a try and post here if I have troubles. :D
2  Other / Trouble in Terrorist Town / Re: Making Melee Weapon... on: November 13, 2010, 05:26:50 PM
I would like to see a TTT mod where you can only use either all Melee.... or Melee + Bows/Darts/Crossbows


ummmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm................................... ok.  Any thoughts on subject of this thread? 
3  Other / Trouble in Terrorist Town / Re: Making Melee Weapon... on: November 13, 2010, 12:03:01 AM
I have another question for ALL. :-) at the moment when my machete is thrown it flys in the air rotaing sideways.  This direction(from what I can guess in the code) is "Right".  Sample:
function ENT:HitPlayer(other, tr)

Quote
  local range_dmg = math.max(self.Damage, self.StartPos:Distance(self:GetPos()) / 3)

  if other:Health() < range_dmg + 5 then
      self:KillPlayer(other, tr)
  elseif SERVER then
      local dmg = DamageInfo()
      dmg:SetDamage(range_dmg)
      dmg:SetAttacker(self:GetOwner())
      dmg:SetInflictor(self.Entity)
      dmg:SetDamageForce(self:EyeAngles():Forward())
      dmg:SetDamagePosition(self:GetPos())
      dmg:SetDamageType(DMG_SLASH)

      local ang = Angle(-28,0,0) + tr.Normal:Angle()
      ang:RotateAroundAxis(ang:Right(), -90)
      other:DispatchTraceAttack(dmg, self:GetPos() + ang:Forward() * 3, other:GetPos())

      if not self.Weaponised then
        self:BecomeWeapon()
      end
  end
end


Note the "ang:RotateAroundAxis".  I want it to flip end over end so I figured "Front" would work... but it didnt... anyone know how to change htis?
4  Other / Trouble in Terrorist Town / Re: Suicide Bomb on: November 12, 2010, 04:28:41 PM
After long deliberation, I decided to release my suicide bomb to the public.
...
Enjoy.


Link: http://www.garrysmod.org/downloads/?a=view&id=112633



Hi Madmax... I love this one.  I use it more then C4 now.  We did do a couple things to it... the arming time was too long as a jihad style device conceptually so we changed it to 5 seconds, how ever because it could go through walls the time they are allowed to hold it before the BOOM was too long, so that was shorted to 10 seconds. Example: one problem we had was on roy_the_ship, people would charge deep in the ship so the sound wasnt heard and run to the level just below the deck where there were people and boom, everyone above was dead.

We are thinking about going even shorter on the time allowed to hold it(the arming sound sometimes still doesnt get heard at a 10 second running distance from a group). But we ultimatly love it as a concept and are using it. THANKS
5  Other / Trouble in Terrorist Town / Re: Making Melee Weapon... on: November 12, 2010, 04:12:11 PM
I've come a long way as a nub since yesterday.  The knife turned Machete is working with full damage and kewl new icon. Because of its strangth I added new values that make sense to limit how its used and did it in a logical way, like it takes more time to pull out and put away(how are you going to whip out a mackete as quick as a knife?) and to throw it takes more time to swing(how could you throw something that big as quickly as a knife)?. But now I want more.  :D

I want it to look like a machete when held now.  I downloaded a Machete Model and am trying to figure out where it goes so that people that join our TTT server download it and get it.  Any help would be great. Where do these materials, sound, and model folders go to get downloaded?  What string of text do I use to force the download just paste the "if SERVER then" statement with added parameters??

Oh and thank you Manmax for the help.
6  Other / Trouble in Terrorist Town / Making Melee Weapon... on: November 11, 2010, 04:26:22 PM
First off, I'm completely noob to making items.  I do use Google and find some things there so dont give me useless posts about Google, if you google it and find it great, tell me what google search words you used so I can learn what ever terms I'm not familiar with.

Everyone that we play with on our server loves one hit knifes.  But every time we fix the knife to 100dmg it get overwritten by TTT update.  So we decided to make a new knife-like weapon that was custom and wouldnt get overwritten. I'm following the TTT guide: http://ttt.badking.net/custom-weapon-guide.

I'm a little lost on a couple things.  What guies do you know of that help with making custom weapons in GMod. Here are just a couolpe of the examples I have come across in the shared.lua file alone:

Quote
SWEP.AmmoEnt = "item_ammo_<name>"
What do I do here for what is basically a knife with no ammo pickup?

Quote
SWEP.Primary.Delay       = 0.2
SWEP.Primary.Recoil      = 0
SWEP.Primary.Automatic   = true
SWEP.Primary.Damage      = 20
SWEP.Primary.Cone        = 0.1
SWEP.Primary.Ammo        = "none"
SWEP.Primary.ClipSize    = 1
SWEP.Primary.ClipMax     = 0
SWEP.Primary.DefaultClip = 45
SWEP.Primary.Sound       = Sound( "Weapon_AK47.Single" )
What do I do for this code

...and other questions.  Any help or guides would be great(please dont send links to the LUA manual, only post if you really want to help). I just want to learn about lua through working on these custom weapons right now.  thank you

EDIT: Just wanted to add a note that I'm useing the TTT knife lua to start with, but still want to know the above if anyone has some great tutorials.  thanks
Pages: [1]


Login with username, password and session length

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